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 <rep...@bugs.python.org> <http://bugs.python.org/issue20052> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com