Accessing attributes

Jeff Rollin jeffrey.rollin at gmail.com
Tue Jun 12 05:35:41 EDT 2007


Hi there.

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

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

% objvar.py

I get the error message:

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

Where am I going wrong?

Many TIA for any help.

Jeff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: objvar.py
Type: application/x-python
Size: 1402 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20070612/96c43861/attachment.bin>


More information about the Python-list mailing list