Back to index

python3.2  3.2.2
Classes | Functions | Variables
xml.dom.minicompat Namespace Reference

Classes

class  NodeList
class  EmptyNodeList

Functions

def defproperty

Variables

list __all__ = ["NodeList", "EmptyNodeList", "StringTypes", "defproperty"]
tuple StringTypes = (str,)

Detailed Description

Python version compatibility support for minidom.

Function Documentation

def xml.dom.minicompat.defproperty (   klass,
  name,
  doc 
)

Definition at line 97 of file minicompat.py.

00097 
00098 def defproperty(klass, name, doc):
00099     get = getattr(klass, ("_get_" + name))
00100     def set(self, value, name=name):
00101         raise xml.dom.NoModificationAllowedErr(
00102             "attempt to modify read-only attribute " + repr(name))
00103     assert not hasattr(klass, "_set_" + name), \
00104            "expected not to find _set_" + name
00105     prop = property(get, set, doc=doc)
00106     setattr(klass, name, prop)

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

Definition at line 39 of file minicompat.py.

Definition at line 43 of file minicompat.py.