[issue23640] int.from_bytes() is broken for subclasses

R. David Murray report at bugs.python.org
Wed May 11 20:13:18 EDT 2016


R. David Murray added the comment:

No, they do not return instances of the derived type, they return instances of the base type.  This is an intentional design decision that has been discussed elsewhere (including, I think, somewhere in this tracker).

----------
nosy: +r.david.murray

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23640>
_______________________________________


More information about the Python-bugs-list mailing list