Fun python 3.2 one-liner

Lie Ryan lie.1296 at gmail.com
Fri Apr 8 16:27:12 CEST 2011


On 04/06/11 01:07, Steven D'Aprano wrote:
> On Tue, 05 Apr 2011 15:38:28 +0200, Daniel Fetchinson wrote:

> Personally, I find that the discipline of keeping to 80 characters is 
> good for me. It reduces the temptation of writing obfuscated Python one-
> liners when two lines would be better. The *only* time it is a burden is 
> when I write doc strings, and even then, only a small one.

Unless the editor I'm using has an 80-char autowrapping or a 80-char
guiding lines, I tend to wrap docstring in ~40-60 char.



More information about the Python-list mailing list