Def generating a function to be ran in another context

Terry Reedy tjreedy at udel.edu
Wed Mar 5 16:17:32 EST 2008


"Marcelo de Moraes Serpa" <celoserpa at gmail.com> wrote in message 
news:1e5bcefd0803051218q1e73cea2m600ea73098171431 at mail.gmail.com...
| I'd like a certain function to generate a method for another class and 
this
| new method to be called in the context of the "new" class. Is it possible
| with Python?

Yes.

(Assuming I understand your question correctly.)






More information about the Python-list mailing list