Re: Regarding __slots__ and other stuff: A couple of questions

2008-03-27 Thread dave berk
Didn't see your answer, Gabriel. Thanks, now I understand it even better. On 3/27/08, dave berk <[EMAIL PROTECTED]> wrote: > > sorry, forget all I wrote: I should have read this more thoroughly, it > explained it all > > http://www.cafepy.com/article/python_attributes_and_methods/python_attributes

Re: Regarding __slots__ and other stuff: A couple of questions

2008-03-27 Thread dave berk
sorry, forget all I wrote: I should have read this more thoroughly, it explained it all http://www.cafepy.com/article/python_attributes_and_methods/python_attributes_and_methods.htm Descriptors only wor

Re: Regarding __slots__ and other stuff: A couple of questions

2008-03-27 Thread Gabriel Genellina
En Thu, 27 Mar 2008 11:27:42 -0300, dave berk <[EMAIL PROTECTED]> escribió: > *first:* > Why doesn't this works? > class C(object): > ... __slots__ = ['foo', 'bar'] > ... class_attr = 'class attribute' > ... c = C() c.foo = 'foo' c.bar = 'bar' c.bar, c.foo > ('bar', 'fo

Regarding __slots__ and other stuff: A couple of questions

2008-03-27 Thread dave berk
I'm new to Python. I'm trying to understand the type/class/object(instance) model. I have read here: http://www.cafepy.com/article/python_types_and_objects/python_types_and_objects.html and here: http://www.cafepy.com/article/python_attributes_and_methods/python_attributes_and_methods.html as well