Author scoder
Recipients djhoulihan, scoder, serhiy.storchaka, xtreak
Date 2018-12-22.07:42:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1545464526.85.0.98272194251.issue35559@roundup.psfhosted.org>
In-reply-to
Content
One regex related code pattern that I generally like is to assign bound methods to good names and use those. In this case, I would write

_has_non_base16_digits = re.compile(b'[^0-9A-F]').search
...
if _has_non_base16_digits(s):
    raise ...
History
Date User Action Args
2018-12-22 07:42:08scodersetrecipients: + scoder, serhiy.storchaka, xtreak, djhoulihan
2018-12-22 07:42:06scodersetmessageid: <1545464526.85.0.98272194251.issue35559@roundup.psfhosted.org>
2018-12-22 07:42:06scoderlinkissue35559 messages
2018-12-22 07:42:06scodercreate