(self, value, name=name)
| 101 | def defproperty(klass, name, doc): |
| 102 | get = getattr(klass, ("_get_" + name)) |
| 103 | def set(self, value, name=name): |
| 104 | raise xml.dom.NoModificationAllowedErr( |
| 105 | "attempt to modify read-only attribute " + repr(name)) |
| 106 | assert not hasattr(klass, "_set_" + name), \ |
| 107 | "expected not to find _set_" + name |
| 108 | prop = property(get, set, doc=doc) |
no outgoing calls