Python for MS-DOS (was: Re: RS232 support for DOS on 486?)

Cyril Slobin slobin at ice.ru
Tue Jun 12 23:42:20 EDT 2001


Oleg Broytmann <phd at phd.fep.ru> wrote in message news:<mailman.992383820.25484.python-list at python.org>...

>    Do you know you can put this into init.py (I hope your Python executes
> init.py upon interactive startup) and have history load/save automatically?

> import rlcompleter, readline

Unsafe. I have three different python executables floating around, one
of them haven't readline at all and one have old-styled readline. So my
startup.py have a lot of try/except's to catch all the possible cases.

> histfile="%s/.python-history" % os.environ["HOME"]

Unportable. Use os.path.join instead;



More information about the Python-list mailing list