Statespressions? (Re: Draft Pep (was: Re: Let's Talk About Lambda Functions!))
joost_jacob at hotmail.com
Thu Aug 8 14:09:33 CEST 2002
tanzer at swing.co.at (Christian Tanzer) wrote:
> Now that's easy:
> >>> def test() :
> ... print "hello"
> >>> x = new.function (test.func code, globals (), "'case a'")
> >>> x
> <function 'case a' at 0x822ae24>
> >>> x()
> Ducking-for-cover-ly yrs,
You can always tell the pioneers by the arrows in their backs.
More information about the Python-list