MCPcopy Create free account
hub / github.com/ELMERIKH/PyinMemoryPE / __setattr__

Method __setattr__

pythonmemorymodule/pefile.py:1942–1950  ·  view source on GitHub ↗
(self, name, val)

Source from the content-addressed store, hash-verified

1940 return ret
1941
1942 def __setattr__(self, name, val):
1943 if name == "Flags":
1944 set_flags(self, val, unwind_info_flags)
1945 elif "UNW_FLAG_" in name and hasattr(self, name):
1946 if val:
1947 self.__dict__["Flags"] |= UNWIND_INFO_FLAGS[name]
1948 else:
1949 self.__dict__["Flags"] ^= UNWIND_INFO_FLAGS[name]
1950 self.__dict__[name] = val
1951
1952 def sizeof(self):
1953 return self._full_size

Callers

nothing calls this directly

Calls 1

set_flagsFunction · 0.85

Tested by

no test coverage detected