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

Class Address

Lib/email/_header_value_parser.py:325–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323
324
325class Address(TokenList):
326
327 token_type = 'address'
328
329 @property
330 def display_name(self):
331 if self[0].token_type == 'group':
332 return self[0].display_name
333
334 @property
335 def mailboxes(self):
336 if self[0].token_type == 'mailbox':
337 return [self[0]]
338 elif self[0].token_type == 'invalid-mailbox':
339 return []
340 return self[0].mailboxes
341
342 @property
343 def all_mailboxes(self):
344 if self[0].token_type == 'mailbox':
345 return [self[0]]
346 elif self[0].token_type == 'invalid-mailbox':
347 return [self[0]]
348 return self[0].all_mailboxes
349
350class MailboxList(TokenList):
351

Callers 2

get_addressFunction · 0.70
get_address_listFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…