Kent Johnson wrote:
On Sat, Feb 20, 2010 at 12:50 PM, Alan Harris-Reid
<aharrisr...@googlemail.com> wrote:
Hi,

I am having trouble understanding how superclass calls work.  Here's some
code...

class ParentClass():
  def __init__(self):
      do something here

You should inherit object to use super():
class ParentClass(object):

Kent

Hi Kent, thanks for the reply,

Sorry, left out 'object' from my example.  The actual code already reads
class ParentClass(object):

Alan

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to