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 barry, bru, eli.bendersky, ethan.furman, serhiy.storchaka
Date 2015-03-11.17:03:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1426093431.73.0.594070728246.issue23640@psf.upfronthosting.co.za>
In-reply-to
Content
Not all classmethods are constructors.

I see two solutions:

1) Override from_bytes() in IntEnum and every int subclass that needs this.

2) Change int.from_bytes() to call __new__.
History
Date User Action Args
2015-03-11 17:03:51serhiy.storchakasetrecipients: + serhiy.storchaka, barry, eli.bendersky, ethan.furman, bru
2015-03-11 17:03:51serhiy.storchakasetmessageid: <1426093431.73.0.594070728246.issue23640@psf.upfronthosting.co.za>
2015-03-11 17:03:51serhiy.storchakalinkissue23640 messages
2015-03-11 17:03:51serhiy.storchakacreate