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 martin.panter, ncoghlan, nneonneo, serhiy.storchaka, terry.reedy
Date 2016-12-18.11:42:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:06serhiy.storchakasetrecipients: + serhiy.storchaka, terry.reedy, ncoghlan, nneonneo, martin.panter
2016-12-18 11:42:06serhiy.storchakasetmessageid: <>
2016-12-18 11:42:06serhiy.storchakalinkissue28927 messages
2016-12-18 11:42:06serhiy.storchakacreate