[OT] Interactive Python programming in ... cat?

Roy Smith roy at panix.com
Sat Jul 17 04:26:13 CEST 2004


In article <mailman.514.1090030853.5135.python-list at python.org>,
 "Eli Stevens (WG.c)" <listsub at wickedgrey.com> wrote:

> Jacek Generowicz wrote:
> >  You really use ed, don't you ? :-)
> 
> Real Men(tm) don't use ed, they use cat.
> 
>      # cat > hello.py
>      prn^D
> 
>      # cat > hello.py
>      print "Hello, Wolr^D
> 
>      # cat > hello.py
>      print "Hello, World!"
>      ^D
> 
> I've actually done this, but not for files that long.  ;)

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



More information about the Python-list mailing list