[issue8529] subclassing builtin class (str, unicode, list...) needs to override __getslice__
Florent Xicluna
report at bugs.python.org
Mon Apr 26 00:17:30 CEST 2010
Florent Xicluna <florent.xicluna at gmail.com> added the comment:
OK, but it yields Python 3 DeprecationWarning in the subclass.
And there's no workaround to get rid of the deprecation.
If it is the correct behaviour, maybe some words could be added about subclassing builtin types:
http://docs.python.org/reference/datamodel.html#additional-methods-for-emulation-of-sequence-types
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8529>
_______________________________________
More information about the Python-bugs-list
mailing list