Re: [Tutor] What on earth is happening here ???

2012-07-25 Thread Jerry Hill
On Wed, Jul 25, 2012 at 11:11 AM, Lipska TheCat lipskathe...@yahoo.co.uk wrote: def getDOMDocument(self): This defines the method getDOMDocument(). def getDOMDocument(self, namespaceUri=__defaultNamespaceUri): This defines the method getDOMDocument(), replacing the previous

Re: [Tutor] What on earth is happening here ???

2012-07-25 Thread Prasad, Ramit
I have a class The point of this class is to provide an uncluttered interface to Document Creation from xml.dom.minidom import getDOMImplementation class NpDOMDocumentFactory: A DOM Document Factory convenience class # make these private by convention

Re: [Tutor] What on earth is happening here ???

2012-07-25 Thread Alan Gauld
On 25/07/12 16:11, Lipska TheCat wrote: from xml.dom.minidom import getDOMImplementation I'd probably start by saying that I suspect elemtTree will be easier to use than minidom, but if you must class NpDOMDocumentFactory: # make these private by convention

Re: [Tutor] What on earth is happening here ???

2012-07-25 Thread Steven D'Aprano
Alan Gauld wrote: def getDOMDocument(self): def getDOMDocument(self, namespaceUri=__defaultNamespaceUri): def getDOMDocument(self, namespaceUri=__defaultNamespaceUri, qualifiedName=__defaultQualifiedName): def getDOMDocument(self,