Help with dynamic attributes.
Mike Meyer
mwm at mired.org
Mon Jan 9 19:14:48 EST 2006
More information about the Python-list mailing list
Mon Jan 9 19:14:48 EST 2006
- Previous message (by thread): Help with dynamic attributes.
- Next message (by thread): Help with dynamic attributes.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"Mr.Rech" <andrea.riciputi at gmail.com> writes: > Hi all, > I was writing a simple class when I get a strange error message that I > can't > understand. Hopefully someone could help me here. > > My class's init method takes a list of lists as input argument and I'd > like to create > several attributes each one referencing one item of the passed list. Why? You save all of two characters per reference over doing a simple self.x = list(self.lol) <mike -- Mike Meyer <mwm at mired.org> http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
- Previous message (by thread): Help with dynamic attributes.
- Next message (by thread): Help with dynamic attributes.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list