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/2010-June/100933.html below:

[Python-Dev] UserDict in 2.7

[Python-Dev] UserDict in 2.7 [Python-Dev] UserDict in 2.7Greg Ewing greg.ewing at canterbury.ac.nz
Wed Jun 23 01:03:06 CEST 2010
Benjamin Peterson wrote:

> IIRC this was because UserDict tries to be a MutableMapping but abcs
> require new style classes.

Are there any use cases for UserList and UserDict in new
code, now that list and dict can be subclassed?

If not, I don't think it would be a big problem if they
were left out of the ABC ecosystem. No worse than what
happens to any other existing user-defined class that
predates ABCs -- if people want them to inherit from
ABCs, they have to update their code. In this case, the
update would consist of changing subclasses to inherit
from list or dict instead.

-- 
Greg
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