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.
Created on 2016年05月12日 08:03 by serhiy.storchaka, last changed 2022年04月11日 14:58 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| bytes_fromhex.patch | serhiy.storchaka, 2016年05月12日 10:09 | review | ||
| Messages (4) | |||
|---|---|---|---|
| msg265375 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2016年05月12日 08:03 | |
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 |
|||
| msg265387 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2016年05月12日 10:09 | |
Here is a patch. |
|||
| msg269026 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2016年06月21日 21:08 | |
Ping. |
|||
| msg269672 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2016年07月01日 14:23 | |
New changeset 62375fd21de8 by Serhiy Storchaka in branch 'default': Issue #27007: The fromhex() class methods of bytes and bytearray subclasses https://hg.python.org/cpython/rev/62375fd21de8 |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:31 | admin | set | github: 71194 |
| 2016年07月01日 14:23:58 | serhiy.storchaka | set | status: open -> closed resolution: fixed stage: patch review -> resolved |
| 2016年07月01日 14:23:16 | python-dev | set | nosy:
+ python-dev messages: + msg269672 |
| 2016年07月01日 14:22:16 | serhiy.storchaka | set | assignee: serhiy.storchaka |
| 2016年06月21日 21:08:54 | serhiy.storchaka | set | messages: + msg269026 |
| 2016年05月12日 10:09:08 | serhiy.storchaka | set | files:
+ bytes_fromhex.patch keywords: + patch messages: + msg265387 stage: patch review |
| 2016年05月12日 08:03:19 | serhiy.storchaka | create | |