[New-bugs-announce] [issue2681] octal literals beginning with 8 don't raise a SyntaxError
Lukas Meuser
report at bugs.python.org
Thu Apr 24 18:31:23 CEST 2008
New submission from Lukas Meuser <lukas-pydev at quittenbrod.de>:
Octal literals containing an 8 or a 9 should raise a SyntaxError, but 8 ist
accepted as the first character of such a literal (e.g., 0o8 or 0o876, but
not 0o678). Those literals evaluate to 0.0.
The fix for this is trivial, a patch against current SVN (r62479) is
attached.
----------
components: Interpreter Core
files: octal_literals.diff
keywords: patch
messages: 65729
nosy: lukas.meuser
severity: normal
status: open
title: octal literals beginning with 8 don't raise a SyntaxError
type: behavior
versions: Python 3.0
Added file: http://bugs.python.org/file10085/octal_literals.diff
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2681>
__________________________________
More information about the New-bugs-announce
mailing list