changeset: 95300:a70ca6f35327 user: R David Murray date: Mon Mar 30 11:48:50 2015 -0400 files: Doc/library/http.cookies.rst Doc/whatsnew/3.5.rst description: #2211: Fix typo, address missed review comment. diff -r 536c4f4acae1 -r a70ca6f35327 Doc/library/http.cookies.rst --- a/Doc/library/http.cookies.rst Mon Mar 30 10:15:22 2015 -0400 +++ b/Doc/library/http.cookies.rst Mon Mar 30 11:48:50 2015 -0400 @@ -228,6 +228,12 @@ return a Morsel object instead of a dict. +.. method:: Morsel.setdefault(key, value=None) + + Raise an error if key is not a valid :rfc:`2109` attribute, otherwise + behave the same as :meth:`dict.setdefault`. + + .. _cookie-example: Example diff -r 536c4f4acae1 -r a70ca6f35327 Doc/whatsnew/3.5.rst --- a/Doc/whatsnew/3.5.rst Mon Mar 30 10:15:22 2015 -0400 +++ b/Doc/whatsnew/3.5.rst Mon Mar 30 11:48:50 2015 -0400 @@ -679,8 +679,8 @@ consistent: morsel comparison now takes the :attr:`~http.cookies.Morsel.key` and :attr:`~http.cookies.Morsel.value` into account, :meth:`~http.cookies.Morsel.copy` now results in a - :class:`~http.cookies.Morsel` instance rather than a *dict*, and - :meth:`~http.cookies.Morsel.update` will no raise an exception if any of the + :class:`~http.cookies.Morsel` instance rather than a :class:`dict`, and + :meth:`~http.cookies.Morsel.update` will now raise an exception if any of the keys in the update dictionary are invalid. In addition, the undocumented *LegalChars* parameter of :func:`~http.cookies.Morsel.set` is deprecated and is now ignored. (:issue:`2211`)