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 <1463040199.11.0.588158577385.issue27007@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2016-05-12 08:03:19serhiy.storchakasetrecipients: + serhiy.storchaka, georg.brandl
2016-05-12 08:03:19serhiy.storchakasetmessageid: <1463040199.11.0.588158577385.issue27007@psf.upfronthosting.co.za>
2016-05-12 08:03:18serhiy.storchakalinkissue27007 messages
2016-05-12 08:03:18serhiy.storchakacreate