[Tutor] TRULY NEWBIE - MENTOR NEEDED
Danny Yoo
dyoo at hkn.eecs.berkeley.edu
Tue Nov 22 23:46:14 CET 2005
On Tue, 22 Nov 2005, mike donato wrote:
> Greetings, I am new student to programming and am experimenting with
> PYTHON. From what I have read, seems to be a very versatile language.
> In the following excercise I am getting an error
>
> class String(str, Object):
[class definition cut]
>
> Traceback (most recent call last):
> File "<pyshell#0>", line 11, in -toplevel-
> class String(str, Object):
> NameError: name 'Object' is not defined
Hi Mike,
The error is true: Python doesn't know of any class named 'Object'. What
you may be looking for is the 'object' class (lowercase 'o').
Good luck!
More information about the Tutor
mailing list