List append help
Miki Tebeka
miki.tebeka at zoran.com
Sun Mar 14 02:22:41 EST 2004
Hello Bill,
> Could someone please tell me why the "hireCrew"
> method in the following code leaves me with a list that contains "None"?
> ...
> self.myCrew = self.myCrew.append(argHire)
The return value of list.append is None. However it does add the item to
the list. Try:
self.myCrew.append(argHire)
On a side note, I find this `arg' prefix for an argument irritating :-)
HTH.
Miki
More information about the Python-list
mailing list