open() and EOFError

Anssi Saari as at sci.fi
Thu Jul 10 21:40:21 CEST 2014


Roy Smith <roy at panix.com> writes:

> I once knew a guy who linked /dev/tty.c to /dev/tty, then he could do 
> "cc /dev/tty.c" and type a C program in to the compiler from the 
> terminal.

I thought some old C compilers took input from stdin without that kind
of trickery? Oh, looks like modern gcc does it too, as long as the
language is specified with -x.



More information about the Python-list mailing list