This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: I suggest to add documentation about "method" parameter of urllib.request.Request class
Type: enhancement Stage: resolved
Components: Documentation, Library (Lib) Versions: Python 3.7
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: docs@python Nosy List: Mariatta, docs@python, harobed
Priority: normal Keywords:

Created on 2018-08-26 20:49 by harobed, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (3)
msg324134 - (view) Author: harobed (harobed) Date: 2018-08-26 20:49
Hi,

I see "method=None" parameter in urllib.request.Request constructor (https://github.com/python/cpython/blob/master/Lib/urllib/request.py#L327) but I don't see "method" parameter in documentation: https://docs.python.org/3.2/library/urllib.request.html#urllib.request.Request

I suggest to add documentation about "method".

Best regards,
Stéphane
msg324135 - (view) Author: Mariatta (Mariatta) * (Python committer) Date: 2018-08-26 21:05
method is added in Python 3.3. You're referencing documentation of Python 3.2.

The documentation is correct for later Python versions: https://docs.python.org/3.7/library/urllib.request.html#urllib.request.Request
msg324155 - (view) Author: harobed (harobed) Date: 2018-08-27 08:39
👍 Mariatta Wijaya

Thanks.

Sorry for my bad issue.
History
Date User Action Args
2022-04-11 14:59:05adminsetgithub: 78692
2018-08-27 08:39:46harobedsetmessages: + msg324155
2018-08-26 21:05:59Mariattasetstatus: open -> closed

nosy: + Mariatta
messages: + msg324135

resolution: not a bug
stage: resolved
2018-08-26 20:49:49harobedcreate