-
-
Notifications
You must be signed in to change notification settings - Fork 29.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-35283: Add a deprecated warning for the threading.Thread.isAlive #11454
Conversation
Hi, Can you take a look, please? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@eamanu Done thanks! |
fd44c33
to
b9c06ba
Compare
@vstinner Hi, Could you review this PR, please? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please document the deprecation at https://docs.python.org/dev/whatsnew/3.8.html#deprecated : Doc/whatsnew/3.8.rst file.
Strange. I cannot see isAlive() is https://docs.python.org/dev/library/threading.html Should we document it... just to say that it's deprecated?
I believe |
b7002e5
to
2bca0ae
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test_threading.test_old_threading_api() currently fails with -Werror:
vstinner@apu$ ./python -W error -m test -v test_threading -m test_old_threading_api
ERROR: test_old_threading_api (test.test_threading.ThreadTests)
You have to move the isAlive() call inside something like:
with self.assertWarnsRegex(DeprecationWarning, 'should be'):
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 |
35eb53b
to
8a17926
Compare
@vstinner |
I have made the requested changes; please review again |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but can you please enhance the documentation formatting as requested? So I can merge your change.
Misc/NEWS.d/next/Library/2019-01-07-17-17-16.bpo-35283.WClosC.rst
Outdated
Show resolved
Hide resolved
@vstinner |
Thanks! I merged your PR. |
Add a deprecated warning for the threading.Thread.isAlive() method. (cherry picked from commit 89669ff)
https://bugs.python.org/issue35283