Message265375
| 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: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 |
|