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

Method add_sequence

Lib/mailbox.py:1845–1851  ·  view source on GitHub ↗

Add sequence to list of sequences including the message.

(self, sequence)

Source from the content-addressed store, hash-verified

1843 self._sequences = list(sequences)
1844
1845 def add_sequence(self, sequence):
1846 """Add sequence to list of sequences including the message."""
1847 if isinstance(sequence, str):
1848 if not sequence in self._sequences:
1849 self._sequences.append(sequence)
1850 else:
1851 raise TypeError('sequence type must be str: %s' % type(sequence))
1852
1853 def remove_sequence(self, sequence):
1854 """Remove sequence from the list of sequences including the message."""

Callers 12

get_messageMethod · 0.95
test_sequencesMethod · 0.95
test_issue2625Method · 0.95
test_sequencesMethod · 0.95
test_mh_to_maildirMethod · 0.95
test_mh_to_mboxmmdfMethod · 0.95
test_mh_to_mhMethod · 0.95
test_mh_to_babylMethod · 0.95
_explain_toMethod · 0.80
_explain_toMethod · 0.80
_explain_toMethod · 0.80
_explain_toMethod · 0.80

Calls 2

isinstanceFunction · 0.85
appendMethod · 0.45

Tested by 7

test_sequencesMethod · 0.76
test_issue2625Method · 0.76
test_sequencesMethod · 0.76
test_mh_to_maildirMethod · 0.76
test_mh_to_mboxmmdfMethod · 0.76
test_mh_to_mhMethod · 0.76
test_mh_to_babylMethod · 0.76