In <[email protected]> Cathy James 
<[email protected]> writes:

> b) I would like to append to my list, but my line dogs.dogAppend() is
> giving a TypeError:

> for i in enumerate (self.dogAppend()):
> TypeError: 'list' object is not callable

>     def dogAppend(self):
>         self.dogAppend = []

You have a method and a list that are both called dogAppend.  Try naming
one of them something different.

-- 
John Gordon                   A is for Amy, who fell down the stairs
[email protected]              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to