[Python-Dev] PEP 461 - Adding % and {} formatting to bytes
Terry Reedy
tjreedy at udel.edu
Fri Jan 17 21:16:48 CET 2014
On 1/17/2014 10:15 AM, Mark Lawrence wrote:
> For both options 1 and 2 surely you cannot be suggesting that after
> people have written 2.x code to use format() as %f formatting is to be
> deprecated,
I will not be for at least a decade.
>they now have to change the code back to the way they may
> well have written it in the first place?
I would suggest that people simply .encode the result if bytes are
needed in 3.x as well as 2.x. Polyglot code will likely have a 'py3'
boolean already to make the encoding conditional.
--
Terry Jan Reedy
More information about the Python-Dev
mailing list