[Python-ideas] Statement local functions and classes (aka PEP 3150 is dead, say 'Hi!' to PEP 403)
Paul Moore
p.f.moore at gmail.com
Thu Oct 13 15:38:30 CEST 2011
On 13 October 2011 13:06, Nick Coghlan <ncoghlan at 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.
More information about the Python-ideas
mailing list