Sorry, something went wrong.
There was a problem hiding this comment.
Thanks for updating these! It looks like the remaining arguments were also made keyword-only.
Sorry, something went wrong.
|
When you're done making the requested changes, leave the comment: I have made the requested changes; please review again. |
Sorry, something went wrong.
|
I have made the requested changes; please review again. Thanks, updated, and I'd also missed SMTP.starttls so done that one too. I also fixed a bit of formatting whilst these files are being updated. |
Sorry, something went wrong.
|
Thanks for making the requested changes! @hauntsaninja: please review the changes made to this pull request. |
Sorry, something went wrong.
There was a problem hiding this comment.
Left some comments! Good catch on SMTP.starttls (I didn't check for any other errors of omission)
Sorry, something went wrong.
|
|
||
| .. class:: HTTPSConnection(host, port=None, key_file=None, \ | ||
| cert_file=None[, timeout], \ | ||
| .. class:: HTTPSConnection(host, port=None[, timeout], \ |
There was a problem hiding this comment.
Can't leave a suggestion, but this one needs to be made keyword-only
Sorry, something went wrong.
There was a problem hiding this comment.
Updated in 25421ff
Sorry, something went wrong.
|
Btw, subject for a separate discussion, but I've never really liked the [param] syntax for optional parameters, since it's not close to any valid Python syntax. In some complicated signatures it may be necessary, but for the cases in this PR I feel like timeout=... or timeout=<default> or timeout=<unspecified> would be clearer. |
Sorry, something went wrong.
|
Thanks both for the reviews! Btw, subject for a separate discussion, but I've never really liked the [param] syntax for optional parameters, since it's not close to any valid Python syntax. In some complicated signatures it may be necessary, but for the cases in this PR I feel like timeout=... or timeout=<default> or timeout=<unspecified> would be clearer. Yeah, I guess [param] is following the Unix manual page format, and we don't have an unambiguous default compared to the others: def __init__(self, host, port=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT,
source_address=None, blocksize=8192):
|
Sorry, something went wrong.
There was a problem hiding this comment.
Thank you!
Sorry, something went wrong.
In the following modules, these parameters were removed (in #94173) after being deprecated in Python 3.6:
This PR updates the documentation to remove the parameters and note their removal in 3.12.
Preview