MCPcopy Index your code
hub / github.com/python/cpython / _explain_to

Method _explain_to

Lib/mailbox.py:1600–1605  ·  view source on GitHub ↗

Copy format-specific state to message insofar as possible.

(self, message)

Source from the content-addressed store, hash-verified

1598 self.__dict__[name] = message.__dict__[name]
1599
1600 def _explain_to(self, message):
1601 """Copy format-specific state to message insofar as possible."""
1602 if isinstance(message, Message):
1603 return # There's nothing format-specific to explain.
1604 else:
1605 raise TypeError('Cannot convert to specified type')
1606
1607
1608class MaildirMessage(Message):

Callers 2

__init__Method · 0.45
test_explain_toMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_explain_toMethod · 0.36