Adding method at runtime - problem with self

marek.rocki at wp.pl marek.rocki at wp.pl
Mon Mar 6 05:07:36 EST 2006


Thank you all for your responses. That's exactly what I needed to know
- how to bind a function to an object so that it would comply with
standard calling syntax.

This is largely a theoretical issue; I just wanted to improve my
understanding of Python's OOP model. Using such features in real life
code would probably be classified either as excessive magic or bad
design. Oh well, at least now I can be an informed participant of
language holy wars :-)

Marek




More information about the Python-list mailing list