[Edu-sig] How do I import from __future__ at startup?
Guido van Rossum
gvanrossum at gmail.com
Sun Feb 27 23:59:38 CET 2005
> I want division always to be imported from __future__ at startup.
> from __future__ import division
> in a file sitecustomize.py doesn't work (which I think is
> counterintuitive). Do I have to use PYTHONSTARTUP variable? Is there any
> way at all?
> I searched google and python.org but didn't find a quick answer to this.
> Perhaps somebody can help me out?
$ python -Qnew
Python 2.3.4 (#2, Aug 6 2004, 10:37:58)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Edu-sig