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

Method _superdir

scapy/packet.py:566–578  ·  view source on GitHub ↗

Return a list of slots and methods, including those from subclasses.

(self)

Source from the content-addressed store, hash-verified

564 return object.__delattr__(self, attr)
565
566 def _superdir(self):
567 # type: () -> Set[str]
568 """
569 Return a list of slots and methods, including those from subclasses.
570 """
571 attrs = set() # type: Set[str]
572 cls = self.__class__
573 if hasattr(cls, '__all_slots__'):
574 attrs.update(cls.__all_slots__)
575 for bcls in cls.__mro__:
576 if hasattr(bcls, '__dict__'):
577 attrs.update(bcls.__dict__)
578 return attrs
579
580 def __dir__(self):
581 # type: () -> List[str]

Callers 1

__dir__Method · 0.95

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected