[Python-Dev] PEP 8 updates/clarifications, function/method style

Barry Warsaw barry at python.org
Wed Dec 14 21:07:57 CET 2005


On Wed, 2005-12-14 at 09:08 -0800, Michael Chermside wrote:
> Wolfgang writes:
> > We need a clear style for function and method names
> > now std lib uses "foo_bar" sometimes "foobar"
> > and sometimes "fooBar".
> 
> Personally, I prefer "fooBar". But I try not to use it in python
> code... I try to always use "foo_bar" because that's what PEP 8 says.
> 
> I believe recall the conversation that preceded putting that into
> PEP 8, and the impetus for that particular decision was input from
> non-native English speakers (particularly those not coming from a
> European alphabet) that it was far easier to read with underscore
> separation rather than capWords.

Correct, which is one reason I feel strongly that we should keep the
current recommendation of lower_case_words.

-Barry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: This is a digitally signed message part
Url : http://mail.python.org/pipermail/python-dev/attachments/20051214/b3f7dce2/attachment-0001.pgp


More information about the Python-Dev mailing list