Skip to content

Conversation

@miss-islington
Copy link
Contributor

Set BaseProcess.__init__(..., kwargs=None) and initialize kwargs with
dict(kwargs) if kwargs else {}. This avoids a shared mutable default and
matches threading.Thread behavior.

Co-authored-by: Dmitrii Chuprov [email protected]

  • DummyProcess kwargs=None (which threading.Thread accepts properly)
    (cherry picked from commit 5a15e73)

Co-authored-by: Denis Sergeev [email protected]
Co-authored-by: Gregory P. Smith [email protected]

…eProcess and DummyProcess to use None (pythonGH-138814)

* pythongh-138813: Default `BaseProcess` `kwargs` to `None` (pythonGH-138814)

Set `BaseProcess.__init__(..., kwargs=None)` and initialize `kwargs` with
`dict(kwargs) if kwargs else {}`. This avoids a shared mutable default and
matches threading.Thread behavior.

Co-authored-by: Dmitrii Chuprov <[email protected]>

* DummyProcess kwargs=None (which threading.Thread accepts properly)
(cherry picked from commit 5a15e73)

Co-authored-by: Denis Sergeev <[email protected]>
Co-authored-by: Gregory P. Smith <[email protected]>
@python-cla-bot
Copy link

python-cla-bot bot commented Sep 17, 2025

All commit authors signed the Contributor License Agreement.

CLA signed

@gpshead
Copy link
Member

gpshead commented Sep 17, 2025

more of a cleanup than a bugfix, i'll not backport this far.

@gpshead gpshead closed this Sep 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants