python 3.3 repr

Robin Becker robin at
Fri Nov 15 13:16:52 CET 2013

On 15/11/2013 11:38, Ned Batchelder wrote:
> In Python3, repr() will return a Unicode string, and will preserve existing Unicode characters in its arguments.  This has been controversial.  To get the Python 2 behavior of a pure-ascii representation, there is the new builtin ascii(), and a corresponding %a format string.
> --Ned.

thanks for this, edoesn't make the split across python2 - 3 any easier.
Robin Becker

More information about the Python-list mailing list