Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-33441: Make the sigset_t converter available in other modules. #6720

Merged
merged 2 commits into from
May 8, 2018

Conversation

serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented May 7, 2018

  • Expose the sigset_t converter via private API _Py_Sigset_Converter().
  • Use Argument Clinic for parsing sigset_t in signalmodule.c.
  • Raise ValueError instead OverflowError for integers out of the C long range.

Based on patch by @pablogsal.

https://bugs.python.org/issue33441

* Expose the sigset_t converter via private API _Py_Sigset_Converter().
* Use Argument Clinic for parsing sigset_t in signalmodule.c.
* Raise ValueError instead OverflowError for integers out of
  the C long range.

Based on patch by Pablo Galindo Salgado.
long signum;
int overflow;

sigemptyset(mask);
Copy link
Member

Choose a reason for hiding this comment

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

Should we check the return value of this?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch! Thanks.

@serhiy-storchaka serhiy-storchaka merged commit d54cfb1 into python:master May 8, 2018
@serhiy-storchaka serhiy-storchaka deleted the sigset-converter branch May 8, 2018 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news type-feature A feature request or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants