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

Class NameAddr

Lib/email/_header_value_parser.py:402–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

400
401
402class NameAddr(TokenList):
403
404 token_type = 'name-addr'
405
406 @property
407 def display_name(self):
408 if len(self) == 1:
409 return None
410 return self[0].display_name
411
412 @property
413 def local_part(self):
414 return self[-1].local_part
415
416 @property
417 def domain(self):
418 return self[-1].domain
419
420 @property
421 def route(self):
422 return self[-1].route
423
424 @property
425 def addr_spec(self):
426 return self[-1].addr_spec
427
428
429class AngleAddr(TokenList):

Callers 1

get_name_addrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…