Accessing attributes

Jeff Rollin jeffrey.rollin at
Tue Jun 12 11:35:41 CEST 2007

Hi there.

I'm working with the Python Tutorial "Byte of Python" at

I have created the attached file, but when I execute:


I get the error message:

(Initializing Calamity Jane)
Traceback (most recent call last):
  File "/home/jef/bin/", line 49, in <module>
AttributeError: class Person has no attribute 'how_many'

Where am I going wrong?

Many TIA for any help.

-------------- next part --------------
A non-text attachment was scrubbed...
Type: application/x-python
Size: 1402 bytes
Desc: not available
URL: <>

More information about the Python-list mailing list