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 chris.jerdonek
Recipients chris.jerdonek, ezio.melotti
Date 2012-09-26.19:41:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1348688461.13.0.427927679227.issue16055@psf.upfronthosting.co.za>
In-reply-to
Content
The following error text is incorrect in at least one way:

>>> int(base=1000, x='1')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: int() arg 2 must be >= 2 and <= 36

The *base* argument can also be 0.  Secondly, the text should probably say "base arg" instead of "arg 2" since 1000 is not in position 2.

The 2.7 code does not have the second issue:

>>> int(base=1000, x='1')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: int() base must be >= 2 and <= 36
History
Date User Action Args
2012-09-26 19:41:01chris.jerdoneksetrecipients: + chris.jerdonek, ezio.melotti
2012-09-26 19:41:01chris.jerdoneksetmessageid: <1348688461.13.0.427927679227.issue16055@psf.upfronthosting.co.za>
2012-09-26 19:41:00chris.jerdoneklinkissue16055 messages
2012-09-26 19:41:00chris.jerdonekcreate