[Tutor] Questions on 'records and structs' from tutorial...

montana montana@buc99.bsd.st
Sun Jan 19 21:37:02 2003


Section 9.7 of:

http://www.python.org/doc/current/tut/node11.html

talks of creating data types similar to Pascal's record or C's struct.  I tried the example but when I entered:

class Employee:
	pass

john = Employee()

i got the following error:
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
NameError: name 'Employee' is not defined


Can someone please explain what I'm doing wrong here?

Thanks.
SA
:)