MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _become_message

Method _become_message

tools/python-3.11.9-amd64/Lib/mailbox.py:1512–1517  ·  view source on GitHub ↗

Assume the non-format-specific state of message.

(self, message)

Source from the content-addressed store, hash-verified

1510 raise TypeError('Invalid message type: %s' % type(message))
1511
1512 def _become_message(self, message):
1513 """Assume the non-format-specific state of message."""
1514 type_specific = getattr(message, '_type_specific_attributes', [])
1515 for name in message.__dict__:
1516 if name not in type_specific:
1517 self.__dict__[name] = message.__dict__[name]
1518
1519 def _explain_to(self, message):
1520 """Copy format-specific state to message insofar as possible."""

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected