Is PEP-8 a Code or More of a Guideline?

Christophe chris.cavalaria at free.fr
Thu May 31 09:18:18 EDT 2007


Joe Riopel a écrit :
>> Each requires exactly the same number of key strokes when I do the
>> math. (Too lazy to explain further...)
> 
> foo_bar
> f, o, o, shift + underscore, b, a, r = 8
> fooBar
> f, o, o, shift + b, a, r = 7

f, o, o, _, b, a, r = 7
f, o, o, shift + b, a, r = 8

Also the shift+b is much more work than 2 keypresses IMHO. On the other 
hand, the underscore is done by pressing the 8 key without any other 
modifier which is very easy and accessible. Yeap, french layout rules 
for that naming convention :)



More information about the Python-list mailing list