importing a method

Chris Curvey ccurvey at gmail.com
Sun Nov 27 19:32:38 EST 2005


why not just have your user subclass "soandso" and override the
definition of "custom"?

from soandso import soandso
class MyClass(soandso):
   def custom(self):
       self.theother = 3

c = MyClass()




More information about the Python-list mailing list