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 r.david.murray
Recipients eric.smith, r.david.murray, socketpair
Date 2016年10月07日.15:44:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1475855060.2.0.379490801446.issue28385@psf.upfronthosting.co.za>
In-reply-to
Content
Bytes don't support formatting codes, so they are passed through to object, which doesn't support any formatting codes, and produces the error message you see. Since all other built in types reject invalid codes with a message that mentions their type, I think bytes should too. This would change the message to:
 ValueError: Unknown format code 's' for object of type 'bytes'
Would that have lessened your confusion sufficiently?
History
Date User Action Args
2016年10月07日 15:44:20r.david.murraysetrecipients: + r.david.murray, eric.smith, socketpair
2016年10月07日 15:44:20r.david.murraysetmessageid: <1475855060.2.0.379490801446.issue28385@psf.upfronthosting.co.za>
2016年10月07日 15:44:20r.david.murraylinkissue28385 messages
2016年10月07日 15:44:20r.david.murraycreate

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