In Python I can define a class 'foo' in the following ways:
class foo:
pass
or
class foo(object):
pass
What is the difference? I have tried to use the function issubclass(foo, object) to see if it returns True for both class definitions. It does not.
IDLE 2.6.3 >>> class foo: pass >>> issubclass(foo, object) False >>> class foo(object): pass >>> issubclass(foo, object) True
Thanks.