A bit fun with Python

Steve Holden sholden at holdenweb.com
Tue Mar 25 04:15:06 CET 2003


"Ulrich Petri" <ulope at gmx.de> wrote in message
news:b5nvo6$2aio1s$1 at ID-67890.news.dfncis.de...
> a little riddle:
>
> how does this script:
> ------------------
> re.fork("this works")
> print sys.compile
> ------------------
> produce that output:
>
> ------------------
> this works
> posix
> ------------------
>
> ;)
>

The same way that
----------------
print "Somebody's name"
----------------
produces
----------------
Steve Holden
----------------

just-playing-myself-ly y'rs -  steve
--
Steve Holden                                  http://www.holdenweb.com/
Python Web Programming                 http://pydish.holdenweb.com/pwp/
Register for PyCon Tuesday March 25  at GWU's Cafritz Conference Center







More information about the Python-list mailing list