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

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to