Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Merged
serhiy-storchaka merged 4 commits into
python:masterpython/cpython:masterfrom
serhiy-storchaka:bpo-24037-clinic-boolint-converterserhiy-storchaka/cpython:bpo-24037-clinic-boolint-converterCopy head branch name to clipboard
Mar 12, 2017
Merged

bpo-24037: Add Argument Clinic converter bool(accept={int}).#485
serhiy-storchaka merged 4 commits into
python:masterpython/cpython:masterfrom
serhiy-storchaka:bpo-24037-clinic-boolint-converterserhiy-storchaka/cpython:bpo-24037-clinic-boolint-converterCopy head branch name to clipboard

Conversation

@serhiy-storchaka

Copy link
Copy Markdown
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
Copy Markdown

@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.

Comment thread Misc/NEWS

- 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
Copy Markdown
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.