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

Method keys

Lib/email/message.py:474–482  ·  view source on GitHub ↗

Return a list of all the message's header field names. These will be sorted in the order they appeared in the original message, or were added to the message, and may contain duplicates. Any fields deleted and re-inserted are always appended to the header list.

(self)

Source from the content-addressed store, hash-verified

472 yield field
473
474 def keys(self):
475 """Return a list of all the message's header field names.
476
477 These will be sorted in the order they appeared in the original
478 message, or were added to the message, and may contain duplicates.
479 Any fields deleted and re-inserted are always appended to the header
480 list.
481 """
482 return [k for k, v in self._headers]
483
484 def values(self):
485 """Return a list of all the message's header values.

Callers 1

test_replace_headerMethod · 0.95

Calls

no outgoing calls

Tested by 1

test_replace_headerMethod · 0.76