Re: Adding method at runtime - problem with self

2006-03-06 Thread bruno at modulix
[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

Re: Adding method at runtime - problem with self

2006-03-06 Thread marek . rocki
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

Re: Adding method at runtime - problem with self

2006-03-05 Thread Bruno Desthuilliers
[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

Re: Adding method at runtime - problem with self

2006-03-05 Thread Jay Parlar
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

Re: Adding method at runtime - problem with self

2006-03-05 Thread Schüle Daniel
[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

Adding method at runtime - problem with self

2006-03-05 Thread marek . rocki
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.