Author terry.reedy
Recipients martin.panter, ncoghlan, nneonneo, terry.reedy
Date 2016-12-16.23:27:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1481930858.91.0.31710987169.issue28927@psf.upfronthosting.co.za>
In-reply-to
Content
I am a bit dubious about this.  There is a tradeoff here between convenience and bug detection.  The patch is not strictly necessary.

>>> bytes.fromhex('ab\ncd'.replace('\n', ''))
b'\xab\xcd'

Bytes (and bytearray) .fromhex already ignores spaces.  Not ignoring newlines, by default, may have been intentional.  Nick, you wrote the doc entry for 'fromhex'.  Do you know anything about the design intention?
History
Date User Action Args
2016-12-16 23:27:38terry.reedysetrecipients: + terry.reedy, ncoghlan, nneonneo, martin.panter
2016-12-16 23:27:38terry.reedysetmessageid: <1481930858.91.0.31710987169.issue28927@psf.upfronthosting.co.za>
2016-12-16 23:27:38terry.reedylinkissue28927 messages
2016-12-16 23:27:38terry.reedycreate