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 VeloxAmbitum
Recipients VeloxAmbitum
Date 2013-12-22.23:29:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1387754999.65.0.50719623287.issue20052@psf.upfronthosting.co.za>
In-reply-to
Content
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()
History
Date User Action Args
2013-12-22 23:29:59VeloxAmbitumsetrecipients: + VeloxAmbitum
2013-12-22 23:29:59VeloxAmbitumsetmessageid: <1387754999.65.0.50719623287.issue20052@psf.upfronthosting.co.za>
2013-12-22 23:29:59VeloxAmbitumlinkissue20052 messages
2013-12-22 23:29:59VeloxAmbitumcreate