Is PEP-8 a Code or More of a Guideline?
Sergei Organov
osv at javad.com
Mon May 28 11:45:17 EDT 2007
Roy Smith <roy at panix.com> writes:
[...]
> On the other hand, I'm convinced that words_with_underscores, is easier to
> read. This is especially true when abbreviations creep into variable
> names. It's certainly easier to parse ip_address as compared to IPAddress.
> Same with snmp_manager vs SNMPManager.
Well, you don't capitalize abbreviations like that in a classic
CamelCase, I believe. Those names ought to be SnmpManager and
IpAddress. Though there is still problem with digits, e.g., Crc24Accum.
-- Sergei.
More information about the Python-list
mailing list