MCPcopy Create free account
hub / github.com/scanny/python-pptx / __eq__

Method __eq__

src/pptx/table.py:175–183  ·  view source on GitHub ↗

|True| if this object proxies the same element as `other`. Equality for proxy objects is defined as referring to the same XML element, whether or not they are the same proxy object instance.

(self, other: object)

Source from the content-addressed store, hash-verified

173 self._tc = tc
174
175 def __eq__(self, other: object) -> bool:
176 """|True| if this object proxies the same element as `other`.
177
178 Equality for proxy objects is defined as referring to the same XML element, whether or not
179 they are the same proxy object instance.
180 """
181 if not isinstance(other, type(self)):
182 return False
183 return self._tc is other._tc
184
185 def __ne__(self, other: object) -> bool:
186 if not isinstance(other, type(self)):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected