What is Python good for?
maxm
maxm at normik.dk
Thu Sep 13 04:36:48 EDT 2001
"Ignacio Vazquez-Abrams" <ignacio at openservices.net> wrote in message
> Here's something that came up recently that if it doesn't make you go
> "ooh-ahh", then it will make you go "whoa":
> >>> def a():
> ... return 'abc'
> ...
> >>> def b():
> ... return 123
> ...
> >>> a.func_code=b.func_code
wouldn't a = b satisfy your need for whoas here ?
> >>> a()
> 123
regards Max M
More information about the Python-list
mailing list