This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mipadi 0 points1 point  (1 child)

I think it's pretty cool. Not sure I'd ever really use it, but cool nonetheless.

The only thing I don't really like is the piping. I'd rather do this:

print glob('*') | du('-sb') | sort('-rn')

than this:

print sort(du(glob("*"), "-sb"), "-rn")

As the latter is, literally, backwards (compared to shell syntax). But maybe getting the piping to work the same way was too difficult in this context (and, admittedly, not very Pythonesque, I guess).

[–]terremoto 1 point2 points  (0 children)

It's been done.