Re: Using a class as a structure/container

2008-02-07 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : (snip) > Thanks for the information. The reason why I was taking this approach > was more from a user interface perspective. What I have is a file > that contains certain geometric objects, lets call them geo. Each geo > object has 4 possible surfaces: You mean it ha

Re: Using a class as a structure/container

2008-02-06 Thread david . car7
On Feb 6, 2:18 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Wed, 06 Feb 2008 00:59:48 -0200, <[EMAIL PROTECTED]> escribi�: > > > > > Is it appropriate to use a class as a simple container in order to > > access attributes using a series of dot operators?  Is their a more > > Pythonic way

Re: Using a class as a structure/container

2008-02-05 Thread Gabriel Genellina
En Wed, 06 Feb 2008 00:59:48 -0200, <[EMAIL PROTECTED]> escribi�: > Is it appropriate to use a class as a simple container in order to > access attributes using a series of dot operators? Is their a more > Pythonic way of doing this? For instance, I have a "container" class > which is never inst

Re: Using a class as a structure/container

2008-02-05 Thread david . car7
On Feb 5, 9:59 pm, [EMAIL PROTECTED] wrote: > Is it appropriate to use a class as a simple container in order to > access attributes using a series of dot operators?  Is their a more > Pythonic way of doing this?  For instance, I have a "container" class > which is never instantiated directly, but