Skip to content

Conversation

@donbarbos
Copy link
Contributor

@donbarbos donbarbos commented Sep 23, 2025

@donbarbos donbarbos marked this pull request as draft September 23, 2025 10:46
@github-actions

This comment has been minimized.

@donbarbos donbarbos marked this pull request as ready for review September 23, 2025 12:16
@github-actions

This comment has been minimized.

setsid: bool = False,
setsigmask: Iterable[int] = (),
setsigdef: Iterable[int] = (),
scheduler: tuple[Any, sched_param] | None = ...,
Copy link
Member

Choose a reason for hiding this comment

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

I think the | None part here is wrong: it must be a tuple if supplied.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Attempting to pass None to scheduler (raises on 3.15 and 3.9):

SystemError: new style getargs format but argument is not a tuple

Copy link
Member

Choose a reason for hiding this comment

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

Attempting to pass None to scheduler (raises on 3.15 and 3.9):

SystemError: new style getargs format but argument is not a tuple

Oh, uh, I think you found a CPython bug there?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, a SystemError indicates a CPython bug.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I opened an issue 👍

Copy link
Member

@JelleZijlstra JelleZijlstra left a comment

Choose a reason for hiding this comment

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

Looks good, noticed some further suggestions

@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@JelleZijlstra JelleZijlstra merged commit 3593e35 into python:main Jan 11, 2026
63 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.

3 participants