Statespressions? (Re: Draft Pep (was: Re: Let's Talk About Lambda Functions!))
J.Jacob
joost_jacob at hotmail.com
Thu Aug 8 08:09:33 EDT 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()
> hello
>
> Ducking-for-cover-ly yrs,
You can always tell the pioneers by the arrows in their backs.
More information about the Python-list
mailing list