MCPcopy Index your code
hub / github.com/RustPython/RustPython / set

Function set

Lib/xml/dom/minicompat.py:103–105  ·  view source on GitHub ↗
(self, value, name=name)

Source from the content-addressed store, hash-verified

101def 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)

Callers 15

_compose_mroFunction · 0.85
__calc_alt_digitsMethod · 0.85
__find_month_formatMethod · 0.85
__find_weekday_formatMethod · 0.85
_convertFunction · 0.85
os.pyFile · 0.85
attr_matchesMethod · 0.85
optimizeFunction · 0.85
pthread_sigmaskFunction · 0.85
installMethod · 0.85
__init__Method · 0.85
__lt__Method · 0.85

Calls 1

reprFunction · 0.85

Tested by 15

test_asciiMethod · 0.68
test_patma_054Method · 0.68
test_patma_148Method · 0.68
test_patma_214Method · 0.68
test_patma_215Method · 0.68
test_patma_216Method · 0.68
test_patma_217Method · 0.68
test_patma_218Method · 0.68
test_patma_219Method · 0.68
test_patma_220Method · 0.68
test_patma_221Method · 0.68
test_copy_setMethod · 0.68