[Python-3000] Will standard library modules comply with PEP 8?
Benji York
benji at benjiyork.com
Tue Aug 28 15:51:31 CEST 2007
Blake Winton wrote:
> Raymond Hettinger wrote:
>>> On Aug 27, 2007, at 6:16 PM, john.m.camara at comcast.net wrote:
>>>> I would like to see PEP 8 remove the "as necessary to improve
>>>> readability" in the function and method naming conventions. That
>>>> way methods like StringIO.getvalue() can be renamed to
>>>> StringIO.get_value().
>> Gratuitous breakage -- for nothing. This is idiotic, pedantic,
> > and counterproductive. (No offense intended, I'm talking about
> > the suggestion, not the suggestor).
>> Ask ten of your programmer friends to write down "result equals
> > object dot get value" and see if more than one in ten uses an
>> underscore (no stacking the deck with Cobol programmers).
>
> Sure, but given the rise of Java, how many of them will spell it with a
> capital 'V'? ;)
>
> On the one hand, I really like consistency in my programming languages.
> On the other hand, a foolish consistency is the hobgoblin of little minds.
I call quote misapplication. Having predictable identifier names isn't
"foolish". Having to divine what is and is not "necessary to improve
readability" isn't either, but is perhaps suboptimal.
--
Benji York
http://benjiyork.com
More information about the Python-3000
mailing list