Instance

Jeroen Ruigrok van der Werven asmodai at in-nomine.org
Thu Jul 17 03:48:38 EDT 2008


-On [20080717 09:01], karthikbalaguru (karthikbalaguru79 at gmail.com) wrote:
>AttributeError : Classroom instance has no attribute 'desk_offset'

You are using a Classroom instance and probably assigning something to the
instance's variable/attribute 'desk_offset'. Except that the class Classroom
has no self.desk_offset.

So in your class definition you would need to add something to __init__()
like:

self.desk_offset = None # or 0 or...

-- 
Jeroen Ruigrok van der Werven <asmodai(-at-)in-nomine.org> / asmodai
イェルーン ラウフロック ヴァン デル ウェルヴェン
http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B
A frightened mental vortex we will be, a Sun we seek, a Sun we flee...



More information about the Python-list mailing list