2010/6/22 Raymond Hettinger <raymond.hettinger at gmail.com>: > > On Jun 22, 2010, at 5:48 AM, Benjamin Peterson wrote: > >> 2010/6/22 Raymond Hettinger <raymond.hettinger at gmail.com>: >>> There's an entry in whatsnew for 2.7 to the effect of "The UserDict class is >>> now a new-style class". >>> I had thought there was a conscious decision to not change any existing >>> classes from old-style to new-style. IIRC, Martin had championed this idea >>> and had rejected all of proposals to make existing classes inherit from >>> object. >> >> IIRC this was because UserDict tries to be a MutableMapping but abcs >> require new style classes. > > ISTM, this change should be reverted to the way it was in 2.6. > > The registration was already working fine: Actually I believe it was an error that it could. There was a typo in abc.py which prevented it from raising errors when non new-style class objects were passed in. -- Regards, Benjamin
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