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

Method add_sequence

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

Add sequence to list of sequences including the message.

(self, sequence)

Source from the content-addressed store, hash-verified

1769 self._sequences = list(sequences)
1770
1771 def add_sequence(self, sequence):
1772 """Add sequence to list of sequences including the message."""
1773 if isinstance(sequence, str):
1774 if not sequence in self._sequences:
1775 self._sequences.append(sequence)
1776 else:
1777 raise TypeError('sequence type must be str: %s' % type(sequence))
1778
1779 def remove_sequence(self, sequence):
1780 """Remove sequence from the list of sequences including the message."""

Callers 5

get_messageMethod · 0.95
_explain_toMethod · 0.80
_explain_toMethod · 0.80
_explain_toMethod · 0.80
_explain_toMethod · 0.80

Calls 2

typeClass · 0.50
appendMethod · 0.45

Tested by

no test coverage detected