homepage

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 Arfrever, chris.jerdonek, docs@python, eric.smith
Date 2012年09月18日.19:39:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1347997166.28.0.368742707257.issue15952@psf.upfronthosting.co.za>
In-reply-to
Content
Here is a proposed patch.
One note on the patch. I feel the second sentence of the note is worth adding because value.__format__() departs from what PEP 3101 says:
"Note for Python 2.x: The 'format_spec' argument will be either
a string object or a unicode object, depending on the type of the
original format string. The __format__ method should test the type
of the specifiers parameter to determine whether to return a string or
unicode object. It is the responsibility of the __format__ method
to return an object of the proper type."
The extra sentence will help in heading off and when responding to issues about value.__format__() that are similar to issue 15951.
History
Date User Action Args
2012年09月18日 19:39:26chris.jerdoneksetrecipients: + chris.jerdonek, eric.smith, Arfrever, docs@python
2012年09月18日 19:39:26chris.jerdoneksetmessageid: <1347997166.28.0.368742707257.issue15952@psf.upfronthosting.co.za>
2012年09月18日 19:39:25chris.jerdoneklinkissue15952 messages
2012年09月18日 19:39:24chris.jerdonekcreate

AltStyle によって変換されたページ (->オリジナル) /