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/pyt

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

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

[newbie] using ElementTree, how to add doctype and xml pi

2008-03-19 Thread dave berk
Hi all I have an svg file i'm creating on the fly. How do I add the doctype and xml pi? They're not an element per se, and there is no function to add them. Am I suppose to add them as elements after all? I have something like this: self.svgRoot = ET.Element("svg", xmlns=r'http://www.w3.org/2000