Message283551
No, it is not easy to implement. Currently bytes.fromhex() works only with ASCII strings and can just iterate over char*.
If add support of non-ASCII whitespaces, we should add a support of non-ASCII digits, as in float(). This looks excessive.
In case if there is a case for this, we rather would expose _PyUnicode_TransformDecimalAndSpaceToASCII() in Python level.
In general fromhex.patch LGTM, but please add versionchanged directives and document the change in What's New. |
|
Date |
User |
Action |
Args |
2016-12-18 11:42:06 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, terry.reedy, ncoghlan, nneonneo, martin.panter |
2016-12-18 11:42:06 | serhiy.storchaka | set | messageid: <1482061326.8.0.804113314672.issue28927@psf.upfronthosting.co.za> |
2016-12-18 11:42:06 | serhiy.storchaka | link | issue28927 messages |
2016-12-18 11:42:06 | serhiy.storchaka | create | |
|