bpo-38615: Add timeout parameter for IMAP4 and IMAP4_SSL constructor#17203
bpo-38615: Add timeout parameter for IMAP4 and IMAP4_SSL constructor#17203vstinner merged 12 commits intopython:masterfrom
Conversation
ericvsmith
left a comment
There was a problem hiding this comment.
Thanks for the patch. See my notes about using a default value of None. Also, tests are needed.
Misc/NEWS.d/next/Library/2019-11-17-17-32-35.bpo-38615.OVyaNX.rst
Outdated
Show resolved
Hide resolved
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
|
I have made the requested changes; please review again
Since the PR affected constructor but the document talk about commands, |
|
Thanks for making the requested changes! @ericvsmith: please review the changes made to this pull request. |
ericvsmith
left a comment
There was a problem hiding this comment.
We'll need to find some way for testing the actual functionality of timing out. Maybe poplib or smtplib or something similar has some code that can be used?
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
|
I have made the requested changes; please review again
|
|
Thanks for making the requested changes! @ericvsmith: please review the changes made to this pull request. |
|
@ericvsmith @python/email-team if you don't mind, Can I get the review for this PR? |
|
@maxking Would you like to take a look at this PR if you don`t mind? |
|
Thanks for making the requested changes! @maxking, @vstinner, @ericvsmith: please review the changes made to this pull request. |
vstinner
left a comment
There was a problem hiding this comment.
LGTM. Thanks for the update (reject timeout=0).
|
Hum, 2 tests failed on the macOS :-( @corona10: Can you have a look? |
Co-Authored-By: Victor Stinner <vstinner@python.org>
|
I am able to reproduce in my local machine. I will take look at it. |
|
@vstinner I have made the requested changes; please review again This is a potential issue.
|
|
Thanks for making the requested changes! @vstinner, @ericvsmith, @maxking: please review the changes made to this pull request. |
…ythonGH-17203) imaplib.IMAP4 and imaplib.IMAP4_SSL now have an optional *timeout* parameter for their constructors. Also, the imaplib.IMAP4.open() method now has an optional *timeout* parameter with this change. The overridden methods of imaplib.IMAP4_SSL and imaplib.IMAP4_stream were applied to this change.
https://bugs.python.org/issue38615