Visitar URL original
Using empty dict as default parameter value · Issue #96486 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20250606234022/https://github.com/python/cpython/issues/96486
Skip to content

Using empty dict as default parameter value #96486

Closed
@zpz

Description

@zpz

I just saw multiprocessing.process.BaseProcess.__init__ has a default arg value kwargs={}. I believe this has not caused any issue and probably will never in normal uses of this class. But I think this is a code pattern that we should avoid?

Proposed alternative: kwargs=None.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions