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 vstinner
Recipients ezio.melotti, mrabarnett, pitrou, serhiy.storchaka, vstinner
Date 2014-09-12.07:36:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1410507390.05.0.545596204151.issue22362@psf.upfronthosting.co.za>
In-reply-to
Content
re_octal_escape_overflow_raise.patch: you should write a subfunction to not repeat the error message 3 times.

+            if c > 0o377:

Hum, I never use octal. 255 instead of 0o377 would be less surprising :-p By the way, you should also check for negative numbers.

>>> -3 & 0xff
253

Before, "& 0xff" also converted negative numbers to positive in range 0..255.
History
Date User Action Args
2014-09-12 07:36:30vstinnersetrecipients: + vstinner, pitrou, ezio.melotti, mrabarnett, serhiy.storchaka
2014-09-12 07:36:30vstinnersetmessageid: <1410507390.05.0.545596204151.issue22362@psf.upfronthosting.co.za>
2014-09-12 07:36:30vstinnerlinkissue22362 messages
2014-09-12 07:36:29vstinnercreate