Skip to content

bpo-24037: Add Argument Clinic converter bool(accept={int}). #485

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

Conversation

serhiy-storchaka
Copy link
Member

It is used for semantical booleans using 'i' format unit. This allows to not repeat the default value for Python and C and will help in converting to bool in future.

@serhiy-storchaka serhiy-storchaka added the type-feature A feature request or enhancement label Mar 5, 2017
@mention-bot
Copy link

@serhiy-storchaka, thanks for your PR! By analyzing the history of the files in this pull request, we identified @benjaminp, @ezio-melotti, @Haypo, @doerwalter and @loewis to be potential reviewers.

Misc/NEWS Outdated
@@ -907,6 +907,10 @@ Build
Tools/Demos
-----------

- bpo-24037: Argument Clinic now uses the converter `bool(accept={int})` rather
of `int` for semantical booleans. This allows to not repeat the default
value for Python and C and will help in converting to `bool` in future.
Copy link
Member

Choose a reason for hiding this comment

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

rather of → rather than
This allows to not repeat . . . → This avoids repeating . . . [see earlier changes I made regarding “allows to”: https://bugs.python.org/issue26304]

@serhiy-storchaka serhiy-storchaka merged commit 202fda5 into python:master Mar 12, 2017
@serhiy-storchaka serhiy-storchaka deleted the bpo-24037-clinic-boolint-converter branch March 12, 2017 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-feature A feature request or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants