MCPcopy Index your code
hub / github.com/pywebio/PyWebIO / Setter

Class Setter

pywebio/utils.py:33–43  ·  view source on GitHub ↗

可以在对象属性上保存数据。 访问数据对象不存在的属性时会返回None而不是抛出异常。

Source from the content-addressed store, hash-verified

31
32
33class Setter:
34 """
35 可以在对象属性上保存数据。
36 访问数据对象不存在的属性时会返回None而不是抛出异常。
37 """
38
39 def __getattribute__(self, name):
40 try:
41 return super().__getattribute__(name)
42 except AttributeError:
43 return None
44
45
46class ObjectDictProxy:

Callers 1

inputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…