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

Method add_sequence

Lib/mailbox.py:1852–1858  ·  view source on GitHub ↗

Add sequence to list of sequences including the message.

(self, sequence)

Source from the content-addressed store, hash-verified

1850 self._sequences = list(sequences)
1851
1852 def add_sequence(self, sequence):
1853 """Add sequence to list of sequences including the message."""
1854 if isinstance(sequence, str):
1855 if not sequence in self._sequences:
1856 self._sequences.append(sequence)
1857 else:
1858 raise TypeError('sequence type must be str: %s' % type(sequence))
1859
1860 def remove_sequence(self, sequence):
1861 """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 1

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