15.11.13 15:54, Ned Batchelder написав(ла):
No, but I've found that significant programs that run on both 2 and 3 need to 
have some shims to make the code work anyway.  You could do this:

     try:
         repr = ascii
     except NameError:
         pass

and then use repr throughout.

Or rather

    try:
        ascii
    except NameError:
        ascii = repr

and then use ascii throughout.


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

Reply via email to