email.message.Message.__getitem__()

__getitem__(name)

Return the value of the named header field. name should not include the colon field separator. If the header is missing, None is returned; a KeyError is never raised.

Note that if the named field appears more than once in the message’s headers, exactly which of those field values will be returned is undefined. Use the get_all() method to get the values of all the extant named headers.

doc_python
2016-10-07 17:32:45
Comments
Leave a Comment

Please login to continue.