Struct usages in Python

Alex Gusarov alex.m.gusarov at gmail.com
Wed May 28 13:34:53 EDT 2008


>  class Event(object):
>
> Always subclass object, unless you have a very compelling reason not to,
> or you are subclassing something else.
>

I've thought that if I write

class Event:
    pass

, it'll be subclass of object too, I was wrong?

--
Best regards, Alex Gusarov



More information about the Python-list mailing list