[Edu-sig] How do I import from __future__ at startup?
glingl at aon.at
Sun Feb 27 23:40:34 CET 2005
One way to accomplish this is to start Python with
the -Qnew switch:
If you want to run a script with this option,
e.g. the script division.py with this content:
c:\Python24\python -Qnew division.py
(or something similar on a Linux system)
Christian Mascher schrieb:
> Hello all,
> I managed to do this once, but I forgot.
> 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?
> Edu-sig mailing list
> Edu-sig at python.org
Telefon: +43 1 713 33 98
Mobil: +43 664 140 35 27
Autor von "Python für Kids"
More information about the Edu-sig