Paul Rubin a écrit : > Brian Vanderburg II <[EMAIL PROTECTED]> writes: >> I've checked out some ways to get this to work. I want to be able to >> add a new function to an instance of an object. > > Ugh. Avoid that if you can.
Why so ? OO is about objects, not classes, and adding methods on a per-object basis is perfectly legitimate. > But see: > > http://en.wikipedia.org/wiki/Monkey_patch Adding methods on a per-object basis is not monkey patching (as defined in the above article and as usually understood here) and doesn't address the same class (no pun intended) of problems. -- http://mail.python.org/mailman/listinfo/python-list