MCPcopy Index your code
hub / github.com/secdev/scapy / __setattr__

Method __setattr__

scapy/ansmachine.py:105–111  ·  view source on GitHub ↗
(self, attr, val)

Source from the content-addressed store, hash-verified

103 raise AttributeError(attr)
104
105 def __setattr__(self, attr, val):
106 # type: (str, Any) -> None
107 mode = self.__dict__.get("mode", 0)
108 if mode == 0:
109 self.__dict__[attr] = val
110 else:
111 [self.optam1, self.optam2][mode - 1][attr] = val
112
113 def parse_options(self):
114 # type: () -> None

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected