Home
last modified time | relevance | path

Searched refs:BaseHeader (Results 1 – 6 of 6) sorted by relevance

/external/python/cpython3/Doc/library/
Demail.headerregistry.rst27 :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 …]
Demail.message.rst201 instance of a subclass of :class:`email.headerregistry.BaseHeader`.
381 the :attr:`~email.headerregistry.BaseHeader.params` attribute of the
Demail.policy.rst449 :attr:`~email.headerregistry.BaseHeader.max_count` attribute of the
/external/python/cpython3/Lib/test/test_email/
Dtest_headerregistry.py20 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)
Dtest_policy.py201 self.assertIsInstance(h, headerregistry.BaseHeader)
/external/python/cpython3/Lib/email/
Dheaderregistry.py161 class BaseHeader(str): class
551 def __init__(self, base_class=BaseHeader, default_class=UnstructuredHeader,