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.08:44:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1482050672.77.0.361734708219.issue28927@psf.upfronthosting.co.za>
In-reply-to
Content
Is it worth to ignore also non-ASCII whitespaces for compatibility with string-to-number convertions and base64 decoder?

>>> float('\xa01.0')
1.0
>>> base64.decodebytes(b'\xa0YWJj')
b'abc'

Note that not all spaces are ignored. They shouldn't break hexadecimal pairs.

>>> bytes.fromhex('a b')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: non-hexadecimal number found in fromhex() arg at position 1
History
Date User Action Args
2016-12-18 08:44:32serhiy.storchakasetrecipients: + serhiy.storchaka, terry.reedy, ncoghlan, nneonneo, martin.panter
2016-12-18 08:44:32serhiy.storchakasetmessageid: <1482050672.77.0.361734708219.issue28927@psf.upfronthosting.co.za>
2016-12-18 08:44:32serhiy.storchakalinkissue28927 messages
2016-12-18 08:44:32serhiy.storchakacreate