Finding attributes in a list
James Stroud
jstroud at mbi.ucla.edu
Sun Apr 3 00:59:16 EST 2005
On Saturday 02 April 2005 09:51 pm, James Stroud wrote:
> where team could be initialized by a tuple:
>
> class Team(list):
> def __init__(self, azip):
> for azip in alist:
> self.data.append(Player(atup))
Sorry, this should read:
where team could be initialized by a list of tuples:
class Team(list):
def __init__(self, azip):
for atup in azip:
self.data.append(Player(atup))
--
James Stroud, Ph.D.
UCLA-DOE Institute for Genomics and Proteomics
Box 951570
Los Angeles, CA 90095
http://www.jamesstroud.com/
More information about the Python-list
mailing list