Re: [Tutor] Python Book recomandation!

2010-07-15 Thread Guilherme P. de Freitas
dvise most beginners to learn Python 3. -- Guilherme P. de Freitas http://www.gpfreitas.com ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Keeping a list of attributes of a certain type

2010-01-15 Thread Guilherme P. de Freitas
bers" list. Otherwise, (b) is better. Right? In my application, I will do many more lookups on the members list than adding/removing members (this sounds weird, feels like I'm Dr. Frankenstein), so I will go with (b). Thanks again for all the suggestions, Guilherme -- Guilherme P.

Re: [Tutor] Keeping a list of attributes of a certain type

2010-01-15 Thread Guilherme P. de Freitas
Thanks everybody for all the suggestions and ideas. I still did not have time to look them all over, but I will. Thanks again! Best, Guilherme On Thu, Jan 14, 2010 at 4:52 AM, Alan Gauld wrote: > > "Guilherme P. de Freitas" wrote > >> Here is my problem. I have two cl

Re: [Tutor] Keeping a list of attributes of a certain type

2010-01-13 Thread Guilherme P. de Freitas
) else: object.__delattr__(self, obj) john = Body() john.arm = Member() print(john.members) del john.arm print(john.members) On Wed, Jan 13, 2010 at 6:24 PM, Guilherme P. de Freitas wrote: > Hi everybody, > > Here is my problem. I have two classes, 'Body' and

[Tutor] Keeping a list of attributes of a certain type

2010-01-13 Thread Guilherme P. de Freitas
deleted. I need any instance of 'Body' to keep an up-to-date list of all its attributes that belong to the class 'Member'. How do I do this? Best, Guilherme -- Guilherme P. de Freitas http://www.gpfreitas.com ___ Tutor maillist -