Notice: While JavaScript is not essential for this website, your interaction with the content will be limited. Please turn JavaScript on for the full experience.
...Dictionaries by Value - Griffin This is a small idea that's very important to its proposer, but that IMO attempts to solve a problem that is better solved in some other way, e.g. by teaching newbies the correct algorithm/idiom. I note that the PEP uses sloppy language, e.g. it talks about "sorting a dictionary" while the dictionary itself is never sorted -- the PEP only proposes methods that return the items or keys in sorted order. The PEP also suffers from lack of definiteness: it ...
...Dict.py now defines a DictMixin class which defines all dictionary methods for classes that already have a minimum mapping interface. This greatly simplifies writing classes that need to be substitutable for dictionaries (such as the shelve module). shelve.py now subclasses from UserDict.DictMixin. Now shelve supports all dictionary methods. This eases the transition to persistent storage for scripts originally written with dictionaries in mind. shelve.open and the various classes in shelve....
...dictionaries now inherit from MutableMapping. Created new UserDict class in collections module. This one inherits from and complies with the MutableMapping ABC. Also, moved UserString and UserList to the collections module. The MutableUserString class was removed. Removed UserDict.DictMixin. Replaced all its uses with collections.MutableMapping. Issue #1703: getpass() should flush after writing prompt. Issue #1585: IDLE uses non-existent xrange() function. Issue #1578: Problems in win_getpas...
...Dict_Next(): it is now safe to call PyDict_SetItem() with a key that's already in the dictionary during a PyDict_Next() iteration. This used to fail occasionally when a dictionary resize operation could be triggered that would rehash all the keys. All other modifications to the dictionary are still off-limits during a PyDict_Next() iteration! New extended APIs related to passing compiler variables around. New abstract APIs PyObject_IsInstance(), PyObject_IsSubclass() implement isinstance() and ...
...dictionaries and shelves. The csv module's DictReader and DictWriter classes now accept keyword arguments. This was an omission in the initial implementation. The email package handles some RFC 2231 parameters with missing CHARSET fields better. It also includes a patch to parameter parsing when semicolons appear inside quotes. sets.py now runs under Py2.2. In addition, the argument restrictions for most set methods (but not the operators) have been relaxed to allow any iterable. _strptime.py...
If you didn't find what you need, try your search in the Python language documentation.