Searched refs:BaseHeader (Results 1 – 6 of 6) sorted by relevance
/external/python/cpython3/Doc/library/ |
D | email.headerregistry.rst | 27 :class:`.HeaderRegistry` and have :class:`.BaseHeader` as their last base 42 .. class:: BaseHeader(name, value) 44 *name* and *value* are passed to ``BaseHeader`` from the 70 ``name``. A value of ``None`` means unlimited. The ``BaseHeader`` value 74 ``BaseHeader`` also provides the following method, which is called by the 88 ``BaseHeader`` by itself cannot be used to create a header object. It 90 produce the header object. Specifically, ``BaseHeader`` requires that 105 ``BaseHeader``'s ``__new__`` then creates the header instance, and calls its 108 ``BaseHeader`` itself. Such an ``init`` method should look like this:: 116 ``kw`` (and ``args``) passed to the ``BaseHeader`` ``init`` method. [all …]
|
D | email.message.rst | 201 instance of a subclass of :class:`email.headerregistry.BaseHeader`. 381 the :attr:`~email.headerregistry.BaseHeader.params` attribute of the
|
D | email.policy.rst | 449 :attr:`~email.headerregistry.BaseHeader.max_count` attribute of the
|
/external/python/cpython3/Lib/test/test_email/ |
D | test_headerregistry.py | 20 self.assertIsInstance(h, headerregistry.BaseHeader) 28 self.assertIsInstance(h, headerregistry.BaseHeader) 47 self.assertIsInstance(h, headerregistry.BaseHeader) 53 self.assertIsInstance(h, headerregistry.BaseHeader) 59 self.assertIsInstance(h, headerregistry.BaseHeader) 67 self.assertIsInstance(h1, headerregistry.BaseHeader) 69 self.assertIsInstance(h2, headerregistry.BaseHeader)
|
D | test_policy.py | 201 self.assertIsInstance(h, headerregistry.BaseHeader)
|
/external/python/cpython3/Lib/email/ |
D | headerregistry.py | 161 class BaseHeader(str): class 551 def __init__(self, base_class=BaseHeader, default_class=UnstructuredHeader,
|