KEMBAR78
gh-114423: Remove DummyThread from threading._active when thread dies by fabioz · Pull Request #114424 · python/cpython · GitHub
Skip to content

Conversation

@fabioz
Copy link
Contributor

@fabioz fabioz commented Jan 22, 2024

PR to remove dummy thread automatically from threading._active.

I guess with this it could start to implement join and is_active properly, although I'll leave that for future work.

Alternatively I guess it could be implemented closer to C and deal with the internal thread state, but this seems to do the work too.

@bedevere-app
Copy link

bedevere-app bot commented Jan 22, 2024

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@fabioz fabioz force-pushed the release-dummy-thread branch from 37699d2 to 5021537 Compare January 22, 2024 11:26
@bedevere-app
Copy link

bedevere-app bot commented Jan 22, 2024

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@fabioz fabioz force-pushed the release-dummy-thread branch from 6d18536 to 95be658 Compare January 22, 2024 11:36
@bedevere-app
Copy link

bedevere-app bot commented Jan 22, 2024

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

Copy link
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a full review :)

fabioz and others added 8 commits January 22, 2024 09:14
…mMoPH.rst

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: AN Long <aisk@users.noreply.github.com>
@Eclips4 Eclips4 requested a review from gvanrossum January 22, 2024 16:21
Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clever!

I only have several suggestions for tests.

Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Thank you for your contribution @fabioz.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants