Lonnie Princehouse wrote: > Evidently the unbuffered flag not only makes stdin unbuffered, but it > also forces it into binary mode. I didn't realize that when I posted > earlier. > > So the SyntaxErrors arise because the interpreter isn't converting \r\n > into \n because stdin is binary. Not a bug, although it would be nice > to have an "unbuffered text mode" flag too... so if you do this: >>> z = raw_input() zzz Does z contain 'zzz\r'? For me, it just contains 'zzz'. -- Michael Hoffman
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4