raw_input with MSVC Python under cygwin

Gillou nospam at bigfoot.com
Mon Dec 2 15:05:57 EST 2002


mailto:gilles at pilotsystems.net
"John J Lee" <jjl at pobox.com> a écrit dans le message de news:
c177ebeb.0212021051.42148923 at posting.google.com...
> When using the MSVC-compiled Python (any version, I think, but
> certainly 2.2, which is what I'm using now) under cygwin+bash, the
> first time raw_input gets used in a script appears to be ignored.
> I've tried flushing sys.stdin, and that makes no difference.

Same problem with cygwin + Python 2.1.3

I use this as a workaround to make a dummy input when running a MSVC script
with cygwin.

import os
if os.environ.has_key('_'):
    dontcare = raw_input()






More information about the Python-list mailing list