Antoine Pitrou added the comment: > 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 :-) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19331> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com