Message265375
According to the discussion on Python-Dev [1] alternate constructors should return an instance of the subclass (else why invoke it through the subclass). bytes.fromhex() and bytearray.fromhex() are the only exceptions.
I think bytes.fromhex() and bytearray.fromhex() should be changed to match the behavior of all other alternate constructors.
[1] http://comments.gmane.org/gmane.comp.python.devel/157649 |
|
Date |
User |
Action |
Args |
2016-05-12 08:03:19 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, georg.brandl |
2016-05-12 08:03:19 | serhiy.storchaka | set | messageid: <1463040199.11.0.588158577385.issue27007@psf.upfronthosting.co.za> |
2016-05-12 08:03:18 | serhiy.storchaka | link | issue27007 messages |
2016-05-12 08:03:18 | serhiy.storchaka | create | |
|