[Python-Dev] PEP 461 - Adding % and {} formatting to bytes
Glenn Linderman
v+python at g.nevcal.com
Wed Jan 15 02:02:17 CET 2014
More information about the Python-Dev mailing list
Wed Jan 15 02:02:17 CET 2014
- Previous message: [Python-Dev] PEP 461 - Adding % and {} formatting to bytes
- Next message: [Python-Dev] PEP 461 - Adding % and {} formatting to bytes
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 1/14/2014 2:38 PM, Nick Coghlan wrote: > > I think Brett has the right idea: we shouldn't try to accept numbers > for %s in binary interpolation. If we limit it to just buffer > exporters and objects with a __bytes__ method then the problem goes away. > > The numeric codes all exist in Python 2, so the porting requirement to > the common 2/3 subset will be to update the cases of binary > interpolation of a number with %s to use an appropriate numeric > formatting code instead. > +1 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20140114/b1bf2b6c/attachment.html>
- Previous message: [Python-Dev] PEP 461 - Adding % and {} formatting to bytes
- Next message: [Python-Dev] PEP 461 - Adding % and {} formatting to bytes
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list