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 Ariel.Ben-Yehuda, berker.peksag, chris.jerdonek, eric.smith, ezio.melotti, loewis, serhiy.storchaka
Date 2012-09-16.19:06:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I can't yet reproduce on my system, but after looking at the code, I believe the following are closer to the cause:

>>> format(10000, u'n')
>>> int.__format__(10000, u'n')

Incidentally, on my system, the following note in the docs is wrong:

"Note: format(value, format_spec) merely calls value.__format__(format_spec)."

(from )

>>> format(10000, u'n')
>>> 10000.__format__(u'n')
  File "<stdin>", line 1
SyntaxError: invalid syntax
>>> int.__format__(10000, u'n')

Observe also that format() and int.__format__() return different types.
Date User Action Args
2012-09-16 19:06:11chris.jerdoneksetrecipients: + chris.jerdonek, loewis, eric.smith, ezio.melotti, berker.peksag, serhiy.storchaka, Ariel.Ben-Yehuda
2012-09-16 19:06:11chris.jerdoneksetmessageid: <>
2012-09-16 19:06:10chris.jerdoneklinkissue15276 messages
2012-09-16 19:06:10chris.jerdonekcreate