[Pythonmac-SIG] Macintosh Native Python Install

Dave Opstad dave.opstad at monotypeimaging.com
Mon Mar 2 21:12:34 CET 2009


REH wrote:

> Hello All,
> 
> Using the Mac Leopard NATIVE installation of the Python 2.5
> interpreter, called out of the Terminal UNIX command line (i.e. NOT
> through the X-code machinery), is it possible to pipe or pass in a
> text file containing Python code?  Or is this literally a type-as-you-
> go-only interpreter?

You can certainly pipe to python on Mac OS X:

$ echo "print 'Hi there!'" | python
Hi there!

Or were you referring to something more elaborate?

Dave



More information about the Pythonmac-SIG mailing list