No one wants to answer !!!

Mike Fletcher mfletch at tpresence.com
Sun Aug 27 02:43:43 EDT 2000


Following might work (seems like the docs say it should, anyway)?

# change sys.stdin mode to binary
try:
	import msvcrt, sys, os
	msvcrt.setmode( sys.stdin.fileno(), os.O_BINARY )
except ImportError:
	# non-win platform, should already be binary
	pass

HTH,
Mike

> -----Original Message-----
...
> "Sindh" <skodela at my-deja.com> wrote
> > Still awaiting for the kind soul who can / will answer this !
...
> > >  So how do yuo set stdin to binary.
...




More information about the Python-list mailing list