MCPcopy Index your code
hub / github.com/python/cpython / 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

filter_warnings_by_diffFunction · 0.85
get_ids_from_fileFunction · 0.85
do_checkFunction · 0.85
mainFunction · 0.85
parse_platformsMethod · 0.85
add_eventMethod · 0.85
id_forMethod · 0.85
find_deviceFunction · 0.85
lib_platform_filesFunction · 0.85
lib_non_platform_filesFunction · 0.85
_compose_mroFunction · 0.85
__calc_alt_digitsMethod · 0.85

Calls

no outgoing calls

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