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 gpshead enabled auto-merge (squash) October 8, 2025 00:13
@gpshead gpshead merged commit 6b26e62 into python:3.14 Oct 8, 2025
46 checks passed
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