How do I tell if I'm running in the PyWin interpreter?
Peter Otten
__peter__ at web.de
Sat Jan 28 04:19:49 EST 2006
Charles Krug wrote:
> Is there a way to detect that I'm running the the PyWin interpreter so
> that I can bypass its raw_input behavior?
You could test
if pywin_specific_module in sys.modules:
# use workaraound
Or maybe you can get away with always using sys.stdin.readline() instead of
raw_input()? Look into cmd.py for an example.
Peter
More information about the Python-list
mailing list