Home
last modified time | relevance | path

Searched refs:Morsel (Results 1 – 8 of 8) sorted by relevance

/third_party/python/Lib/test/
Dtest_http_cookies.py238 morsel = cookies.Morsel()
242 self.assertEqual(morsel.keys(), cookies.Morsel._reserved.keys())
247 M = cookies.Morsel()
262 M = cookies.Morsel()
293 morsel = cookies.Morsel()
309 morsel_a = cookies.Morsel()
312 morsel_b = cookies.Morsel()
324 morsel_b = cookies.Morsel()
330 morsel_b = cookies.Morsel()
338 self.assertFalse(cookies.Morsel() == 1)
[all …]
Dtest_genericalias.py25 from http.cookies import Morsel
84 Morsel]
/third_party/python/Doc/library/
Dhttp.cookies.rst27 in Cookie name (as :attr:`~Morsel.key`).
49 are :class:`Morsel` instances. Note that upon setting a key to a value, the
50 value is first converted to a :class:`Morsel` containing the key and the value.
99 *header* are sent to each :class:`Morsel`'s :meth:`output` method. *sep* is used
115 found there as :class:`Morsel`\ s. If it is a dictionary, it is equivalent to::
123 Morsel Objects
127 .. class:: Morsel
155 :meth:`~Morsel.__eq__` now takes :attr:`~Morsel.key` and :attr:`~Morsel.value`
159 Attributes :attr:`~Morsel.key`, :attr:`~Morsel.value` and
160 :attr:`~Morsel.coded_value` are read-only. Use :meth:`~Morsel.set` for
[all …]
/third_party/python/Lib/http/
Dcookies.py254 class Morsel(dict): class
322 if not isinstance(morsel, Morsel):
332 morsel = Morsel()
487 M = self.get(key, Morsel())
493 if isinstance(value, Morsel):
568 elif key.lower() in Morsel._reserved:
573 if key.lower() in Morsel._flags:
/third_party/python/Misc/NEWS.d/
D3.5.0a3.rst359 Updated the implementation of the http.cookies.Morsel class. Setting
363 a Morsel, not a dict. repr() now contains all attributes. Optimized
/third_party/python/Doc/whatsnew/
D3.5.rst2304 Directly assigning values to the :attr:`~http.cookies.Morsel.key`,
2305 :attr:`~http.cookies.Morsel.value` and
2306 :attr:`~http.cookies.Morsel.coded_value` of :class:`http.cookies.Morsel`
2307 objects is deprecated. Use the :meth:`~http.cookies.Morsel.set` method
2309 :meth:`~http.cookies.Morsel.set` is deprecated, and is now ignored.
2458 * The :class:`http.cookies.Morsel` dict-like interface has been made self
2459 consistent: morsel comparison now takes the :attr:`~http.cookies.Morsel.key`
2460 and :attr:`~http.cookies.Morsel.value` into account,
2461 :meth:`~http.cookies.Morsel.copy` now results in a
2462 :class:`~http.cookies.Morsel` instance rather than a :class:`dict`, and
[all …]
D3.7.rst2289 * Attributes :attr:`~http.cookies.Morsel.key`,
2290 :attr:`~http.cookies.Morsel.value` and
2291 :attr:`~http.cookies.Morsel.coded_value` of class
2292 :class:`http.cookies.Morsel` are now read-only.
2294 Use the :meth:`~http.cookies.Morsel.set` method for setting them.
D2.6.rst1903 * The :mod:`Cookie` module's :class:`Morsel` objects now support an