Not a very helpful article. Far from a general "improve your Python productivty", it's more like "here are some minor random Python features that I think are useful".<p>TLDR:<p>* Use dict and set comprehensions.<p>* Use collections.Counter.<p>* Use json.dumps or the pprint module for pretty printing.<p>* Create simple web services with Python's XML-RPC library.<p>* Use open source libraries...
Despite the negative comments here, it's always good to be reminded of some of nice built-in things.
Reminds me how awesome pythons standard functionality really is.
One single productivity python I'd like to share here is to use 'string foo'.partition(' ') instead of splitting. The reason is the edge cases are better handled with partition: you always get a 3-tuple, no matter what. No need to precheck that the split is here, or to postcheck the length of the splitted list.
After reading a few comments here I'm surprised there's no "Effective Python" book already (given the age of Python itself).<p>In Java and .NET, that's what we try to do everyday: writing idiomatic Java/C# code (style, architecture, patterns, standard libs, etc).