MCPcopy Index your code
hub / github.com/RustPython/RustPython / _explain_to

Method _explain_to

Lib/mailbox.py:1593–1598  ·  view source on GitHub ↗

Copy format-specific state to message insofar as possible.

(self, message)

Source from the content-addressed store, hash-verified

1591 self.__dict__[name] = message.__dict__[name]
1592
1593 def _explain_to(self, message):
1594 """Copy format-specific state to message insofar as possible."""
1595 if isinstance(message, Message):
1596 return # There's nothing format-specific to explain.
1597 else:
1598 raise TypeError('Cannot convert to specified type')
1599
1600
1601class MaildirMessage(Message):

Callers 2

__init__Method · 0.45
test_explain_toMethod · 0.45

Calls 1

isinstanceFunction · 0.85

Tested by 1

test_explain_toMethod · 0.36