A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2009-March/086636.html below:

[Python-Dev] PEP 372 -- Adding an ordered directory to collections ready for pronouncement

[Python-Dev] PEP 372 -- Adding an ordered directory to collections ready for pronouncementRaymond Hettinger python at rcn.com
Tue Mar 3 00:13:34 CET 2009
> Unfortunately PEP 8 never really took off naming-wise, so we're mostly following
> the "reuse the naming scheme from existing code in the same module" rule, and I
> think there lowercase wins, thanks to defaultdict.

Traditionally, the all lowercase name referred to a C type.  The other classes in
collections are named Counter, UserDict, UserList, UserString, MutableMapping, etc.
Besides, the lowercase/uppercase distinction helps us distinguish functions from classes.
This is the way I've see every Python book do it since the dawn of time.


Raymond


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4