[Tutor] Superclass call problem

Kent Johnson kent37 at tds.net
Sat Feb 20 20:41:37 CET 2010


On Sat, Feb 20, 2010 at 12:50 PM, Alan Harris-Reid
<aharrisreid at 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


More information about the Tutor mailing list