
Oct. 13, 2011
1:38 p.m.
On 13 October 2011 13:06, Nick Coghlan <ncoghlan@gmail.com> wrote:
Actually, here's an interesting example based on quickly firing up a worker thread:
postdef t = threading.Thread(target=def); t.start() def pointless(): """A pointless worker thread that does nothing except serve as an example""" print("Starting") time.sleep(3) print("Ending")
You used 2 statements on the postdef line. That's not in the PEP (the original, I haven't read your revisons yet) and is probably fairly difficult to implement as well. Paul.