This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients georg.brandl, serhiy.storchaka
Date 2016-05-12.08:03:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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.

Date User Action Args
2016-05-12 08:03:19serhiy.storchakasetrecipients: + serhiy.storchaka, georg.brandl
2016-05-12 08:03:19serhiy.storchakasetmessageid: <>
2016-05-12 08:03:18serhiy.storchakalinkissue27007 messages
2016-05-12 08:03:18serhiy.storchakacreate