Lennart Regebro Ralf Schmitt
On 3/20/08, Amaury Forgeot d'Arc <[EMAIL PROTECTED]> wrote: > What about using sys.path_hooks to run 2to3 on the fly at import time? > It would cache its results, of course. I think even that might be overkill; Lennart (and others) are talking about trying to use the same code in both cases, and finding that the only difference is u"..." vs "...". That sounds simple enough that I think it could be done as part of a codec. Instead of of "coding: utf-8", he could use "coding: py2-utf-8", which would delegate to utf-8, and then make this one fairly quick substution. -jJ _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com