[issue20052] input() crashes in 2.7.6
VeloxAmbitum
report at bugs.python.org
Mon Dec 23 00:29:59 CET 2013
New submission from VeloxAmbitum:
Using input(string) to read a number crashes whenever the number is "0*8*" or "0*9*" where * can be any number (i.e., "09", "08", and "0102393" all cause the code to crash).
Crash occurs on Windows 7 x64 running 32 bit Python version 2.7.6 as a Syntax Error:
----------------------------------------------------
Enter a number
>01239123
Traceback (most recent call last):
File "python2.7.6 bug", line 6, in <module>
bug()
File "python2.7.6 bug", line 2, in bug
number = input("Enter a number\n>");
File "<string>", line 1
01239123
^
SyntaxError: invalid token
----------------------------------------------------
Can be reproduced from:
def bug():
number = input("Enter a number\n>");
while True:
print("0*8* or 0*9* causes bug to appear (* is wildcard):\n");
bug()
----------
components: Windows
files: python2.7.6 bug.py
messages: 206835
nosy: VeloxAmbitum
priority: normal
severity: normal
status: open
title: input() crashes in 2.7.6
type: crash
versions: Python 2.7
Added file: http://bugs.python.org/file33255/python2.7.6 bug.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20052>
_______________________________________
More information about the Python-bugs-list
mailing list