Adding method at runtime - problem with self

marek.rocki at marek.rocki at
Mon Mar 6 11:07:36 CET 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 :-)


More information about the Python-list mailing list