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 eric.smith
Recipients berker.peksag, eric.smith, r.david.murray, socketpair
Date 2016年10月08日.13:48:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1475934532.83.0.607374136021.issue28385@psf.upfronthosting.co.za>
In-reply-to
Content
I left a comment on Rietveld, but repeating it here because for me those messages often go to spam:
I think you want to make this more general, by modifying the message for the TypeError that follows. Any type that doesn't provide it's own __format__ should produce an error when using a non-empty format string.
For example:
>>> format({}, 'a')
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
TypeError: non-empty format string passed to object.__format__
Would be better as:
TypeError: non-empty format string passed to __format__ for object of type "class <'dict'>"
(Or some prettier way to print out the type).
History
Date User Action Args
2016年10月08日 13:48:52eric.smithsetrecipients: + eric.smith, r.david.murray, socketpair, berker.peksag
2016年10月08日 13:48:52eric.smithsetmessageid: <1475934532.83.0.607374136021.issue28385@psf.upfronthosting.co.za>
2016年10月08日 13:48:52eric.smithlinkissue28385 messages
2016年10月08日 13:48:52eric.smithcreate

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