classification
Title: Add missing value returned by methods on cookiejar
Type: enhancement Stage: patch review
Components: Documentation Versions: Python 3.10, Python 3.9, Python 3.8, Python 3.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, eamanu
Priority: normal Keywords: patch

Created on 2021-02-14 20:46 by eamanu, last changed 2021-02-14 21:02 by eamanu.

Pull Requests
URL Status Linked Edit
PR 24522 open eamanu, 2021-02-14 20:46
Messages (2)
msg386961 - (view) Author: Emmanuel Arias (eamanu) * Date: 2021-02-14 20:46
Documentation say that return something but don't specific what
value is returned, and that can be confuse.
msg386963 - (view) Author: Emmanuel Arias (eamanu) * Date: 2021-02-14 21:02
Sorry I left nothing of information.

On https://docs.python.org/3/library/http.cookiejar.html?highlight=http%20cookiejar#http.cookiejar.DefaultCookiePolicy.is_blocked and https://docs.python.org/3/library/http.cookiejar.html?highlight=http%20cookiejar#http.cookiejar.DefaultCookiePolicy.is_not_allowed docs mention that is_blocked and is_not_allowed methods "return whether *domain*..." but not mention what is return. So I added looking in the code, that this methods "return ``True`` whether *domain*..." IMO that is more clear.
History
Date User Action Args
2021-02-14 21:02:05eamanusetmessages: + msg386963
2021-02-14 20:46:34eamanusetkeywords: + patch
stage: patch review
pull_requests: + pull_request23314
2021-02-14 20:46:13eamanucreate