News for hackers. Stuff that matters.
Re:Python command line oneliners by gvalkov on Wednesday February 20, 2013 @07:36AM (#5250065)
This article isn't as much about one-liners as it is about the usefulness of the if __name__ == '__main__' idiom. It's great when a module can be consumed as a library and as a command-line script at the same time.

Unfortunately, Python isn't really that good for writing one-liners, especially those that process input. At one point I was sufficiently unhappy about this, that I tried doing something about it:

    https://github.com/gvalkov/python-oneliner
Re:Python command line oneliners by pgorla on Wednesday February 20, 2013 @07:48AM (#5250106)
It also looks like this was just for self-reference; it's not an article as it is a collection of useful tips.

I write a lot of these to remind myself of tool usage.