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

Terry Carroll carroll@tjc.com
Sun Jan 19 22:24:02 2003


On Sun, 19 Jan 2003, montana wrote:

> 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

Are you sure that's exactly what you typed?  It works fine for me.

You didn't maybe type "employee" instead of "Employee" on one of the
lines?


-- 
Terry Carroll        |
Santa Clara, CA      |   "The parties are advised to chill."
carroll@tjc.com      |       - Mattel, Inc. v. MCA Records, Inc.,
Modell delendus est  |         no. 98-56577 (9th Cir. July 24, 2002)