Closed GoogleCodeExporter closed 9 years ago
The history pipe should of course be
history | py-map "it.split()[0]" | uniq -c | sort -r count | head
Original comment by dmi...@gmail.com
on 27 Jun 2008 at 6:19
CountedObject seems a bit overkill to me; can we just return a list of tuples?
The dictionary should also work on immutable sets, tuples, an integers too, no?
So
the documentation should basically say that only immutable data types can be
used.
Also you should probably change the copyright on the file to yourself and not
my name
since it's a nontrivial patch (> 10 lines).
Thanks for the patch! If you agree with all the above feel free to go ahead
and commit.
Original comment by cgwalt...@gmail.com
on 29 Jun 2008 at 4:06
We can return a list of tuples, but the display is not so good that way - have
a play
and see what you think. I've changed it to a tuple for now. I can always
change it
again later. And I've changed the copyright and doc string.
Sending hotwire/builtin.py
Adding hotwire/builtins/uniq.py
Sending hotwire/test_command.py
Transmitting file data ...
Committed revision 1282.
Original comment by dmi...@gmail.com
on 4 Jul 2008 at 1:24
Original issue reported on code.google.com by
dmi...@gmail.com
on 27 Jun 2008 at 5:44Attachments: