[Python-3000] u'text' as an alias for 'text'?

Amaury Forgeot d'Arc amauryfa at gmail.com
Thu Mar 20 14:28:31 CET 2008


Ralf Schmitt wrote:
>
> On Thu, Mar 20, 2008 at 1:30 PM, Lennart Regebro <regebro at gmail.com> wrote:
> >
> > On Thu, Mar 20, 2008 at 1:16 PM, "Martin v. Löwis" <martin at v.loewis.de>
> wrote:
> > >  However, it *is* common to install Python code before running it.
> >
> > Not every time you make a change in the code.
> >
>
> I also happen to have test code that will not be installed with python
> setup.py install, so I would have to manually convert that.

What about using sys.path_hooks to run 2to3 on the fly at import time?
It would cache its results, of course.

-- 
Amaury Forgeot d'Arc


More information about the Python-3000 mailing list