python 3.3 repr
Robin Becker
robin at reportlab.com
Fri Nov 15 09:52:02 EST 2013
On 15/11/2013 14:40, Serhiy Storchaka wrote:
......
>> and then use repr throughout.
>
> Or rather
>
> try:
> ascii
> except NameError:
> ascii = repr
>
> and then use ascii throughout.
>
>
apparently you can import ascii from future_builtins and the print() function is
available as
from __future__ import print_function
nothing fixes all those %r formats to be %a though :(
--
Robin Becker
More information about the Python-list
mailing list