[docs] [issue27561] Warn against subclassing builtins, and overriding their methods

R. David Murray report at bugs.python.org
Mon Jul 18 16:15:09 EDT 2016

R. David Murray added the comment:

It doesn't just apply to dicts, it applies to all the built in collection types (and possibly to other built in types).  But not to all the methods, which will make the documentation somewhat vague ("you may not be able to successfully override base class methods such as __setitem__...")  Oh, and I suppose it needs to be marked as a CPython implementation detail.


Python tracker <report at bugs.python.org>

More information about the docs mailing list