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 nascheme
Recipients eric.smith, nascheme
Date 2014年01月17日.08:40:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1389948026.83.0.452131241252.issue20284@psf.upfronthosting.co.za>
In-reply-to
Content
I'm attaching v2 of my proposed patch. This one is quite a bit better, IMHO.
- Introduce __ascii__ as a special method, like __str__ but required to exist only if an ASCII-only format exists.
- Extract PyString_Format from Python 2.7 and update it for PyBytes.
- %c only accepts integers, not single character strs, maybe should
 accept length one byte objects.
- add %a, should be useful for debugging
- %s calls __bytes__ or __ascii__, otherwise gives a TypeError, should
 eventually support buffer API
- number formats work as they do in Python 2.
History
Date User Action Args
2014年01月17日 08:40:27naschemesetrecipients: + nascheme, eric.smith
2014年01月17日 08:40:26naschemesetmessageid: <1389948026.83.0.452131241252.issue20284@psf.upfronthosting.co.za>
2014年01月17日 08:40:26naschemelinkissue20284 messages
2014年01月17日 08:40:26naschemecreate

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