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

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Thu May 31 08:29:32 EDT 2007


In <646aw86i.fsf at mail.com>, kc wrote:

> "Joe Riopel" <goon12 at gmail.com> writes:
> 
>> Using camel case instead of the under_score means less typing. I am lazy.
>>
>> fooBar
>> foo_bar
> Each requires exactly the same number of key strokes when I do the
> math. (Too lazy to explain further...)

Let's leave 'foo' and 'ar':

1. B = <Shift> + <B> = 2 key strokes.
2. _b = <Shift> + <-> and <b> = 3 key strokes.

At least on my keyboard + layout.

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list