Message201117
> collections.defaultdict, collections.deque, array.array and many of
> the builtins suggest the rule isn't that simple (although other
> examples like Decimal, Fraction, OrderedDict, Counter and ChainMap
> suggest my guideline is also wrong).
AFAIK, they are simply old enough to predate the rule or its
wide-spread acceptance. There *is* an exception for builtins
(bytearray and memoryview are recent enough), but most recent
types use CamelCase.
The bottom line, though, is that it's unrelated to subclassing,
therefore that particular piece of explanation shouldn't land
in PEP 8 :-) |
|
Date |
User |
Action |
Args |
2013-10-24 12:08:06 | pitrou | set | recipients:
+ pitrou, barry, paul.moore, ncoghlan, r.david.murray, ethan.furman |
2013-10-24 12:08:06 | pitrou | link | issue19331 messages |
2013-10-24 12:08:06 | pitrou | create | |
|