Beginner's scoping question
Steven Bethard
steven.bethard at gmail.com
Thu Nov 11 14:32:41 EST 2004
Premshree Pillai <premshree_python <at> yahoo.co.in> writes:
>
> class C():
>
> is incorrect. Should be
>
> class C:
Or better yet:
class C(object):
...
Unless you're targeting older versions of Python, you probably want to be
creating new-style classes, not old-style classes. Old-style classes are really
only present for backwards-compatibility, and will go away in Python 3000.
Steve
More information about the Python-list
mailing list