new division in Pythonwin

Mike Meyer mwm at mired.org
Wed Jul 13 04:08:27 CEST 2005


"Jive Dadson" <notareal at address.com> writes:

> I like to use Pythonwin as my desktop calculator.  It's bothersome
> to have to type in "from __future__ import division" into the
> interactive window every time I open it.  I've tried various ways to
> attempt to get it to import new division at startup, but no luck.  I
> can get it to execute a file, but apparently it does so in an
> environment that gets discarded, rather than in the environment of
> the interactive window.  So the "from __future__" statement has no
> effect.
>
> Any suggestions?

I'm not familiar with Pythonwin, but would expect it to honor the
PYTHONSTARTUP environment variable. That's how I get various things
loaded into my interactive pythons.

       <mike
-- 
Mike Meyer <mwm at mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.



More information about the Python-list mailing list