[EMAIL PROTECTED] wrote:
> 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 mod
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
[EMAIL PROTECTED] a écrit :
> First of all, please don't flame me immediately.
Granted - we'll do it later then !-)
> I did browse archives
> and didn't see any solution to my problem.
>
> Assume I want to add a method to an object at runtime. Yes, to an
> object, not a class - because changing
On Mar 5, 2006, at 2:30 PM, Marek wrote:
> Assume I want to add a method to an object at runtime. Yes, to an
> object, not a class - because changing a class would have global
> effects and I want to alter a particular object only. The following
> approach fails:
>
> class kla:
> x = 1
>
> de
[EMAIL PROTECTED] wrote:
> First of all, please don't flame me immediately. I did browse archives
> and didn't see any solution to my problem.
>
> Assume I want to add a method to an object at runtime. Yes, to an
> object, not a class - because changing a class would have global
> effects and I wa
First of all, please don't flame me immediately. I did browse archives
and didn't see any solution to my problem.
Assume I want to add a method to an object at runtime. Yes, to an
object, not a class - because changing a class would have global
effects and I want to alter a particular object only.