[Tutor] dump class question

johnf jfabiani at yolo.com
Sun Nov 12 21:29:08 CET 2006


Hi,

Is it possible to a single that contains two classes:

Myclass.py file contains:

Class one(object):
  def needsomething(self):
Class two (object):
   def dosomething(self):

I want Class one's methods to access Class two methods?

Class one(object):
  def needsomething(self):
    return dosomething()


Thanks


More information about the Tutor mailing list