On Fri, Jul 20, 2012 at 6:34 AM, John Wong <gokoproj...@gmail.com> wrote: > Here is output: > yeukhon@fermat:~$ python c2.py > abcd12345 > done [now hangs for 10 seconds] > I build things
Side point: I just tried your code on Python 2.6 on Windows, and it produced all three lines of output before waiting the ten seconds. Same in Python 3.3 on Linux (after putting parentheses around the prints, the only 2->3 change needed). Your experience of it delaying the "building" message probably has something to do with output buffering. As to the fundamental, though: I don't know that Python truly supports what you're trying to do. A skim of the docs doesn't show up anything obvious, so I'm hoping that someone else has already tried this and can give an authoritative or empirical answer. ChrisA -- http://mail.python.org/mailman/listinfo/python-list