R
Rim
Hi,
It appears to me the simplest way to add a function to a class outside
of the class declaration is as follows:
.... pass
.... .... print 'hi'
....hi
It works even when the class and the function are in defined in
different modules,
and the call to the method in a third module.
So what problem is the new.instancemethod() trying to solve?
It is ok to point me to a PEP or the like.
Thanks,
- Rim
It appears to me the simplest way to add a function to a class outside
of the class declaration is as follows:
.... pass
.... .... print 'hi'
....hi
It works even when the class and the function are in defined in
different modules,
and the call to the method in a third module.
So what problem is the new.instancemethod() trying to solve?
It is ok to point me to a PEP or the like.
Thanks,
- Rim