Path: csiph.com!usenet.pasdenom.info!goblin1!goblin.stu.neva.ru!feeder2.news.elisa.fi!feeder1.news.elisa.fi!newsfeed2.funet.fi!newsfeeds.funet.fi!news.utu.fi!news.cc.tut.fi!not-for-mail From: Anssi Saari Newsgroups: comp.lang.python Subject: Re: open() and EOFError Date: Thu, 10 Jul 2014 22:40:21 +0300 Lines: 9 Message-ID: References: <53ba11fc$0$29985$c3e8da3$5496439d@news.astraweb.com> <53ba538d$0$2926$c3e8da3$76491128@news.astraweb.com> <20140708102033.13efb3a4@bigbox.christie.dr> NNTP-Posting-Host: coffee.modeemi.fi Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.cc.tut.fi 1405021223 31857 2001:708:310:3430:213:21ff:fe1b:b396 (10 Jul 2014 19:40:23 GMT) X-Complaints-To: abuse@tut.fi NNTP-Posting-Date: Thu, 10 Jul 2014 19:40:23 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) Cancel-Lock: sha1:gax2EcVBN/+XeArcxReF4DN1SBQ= Xref: csiph.com comp.lang.python:74331 Roy Smith 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.