"fork and exit" needed?

Fredrik Lundh fredrik at pythonware.com
Tue Nov 28 12:30:07 CET 2006

Nick Craig-Wood wrote:

> If you run this
>   import os,sys,time
>   print os.getpid()
>   sys.stdout = open(os.devnull, 'w')
>   time.sleep(60)
> It prints its pid.

and not only that, if you run

	print "world",
	print "hello"

it prints "hello world" in the wrong order!


More information about the Python-list mailing list