FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-24037: Add Argument Clinic converter `bool(accept={int})`. by serhiy-storchaka · Pull Request #485 · python/cpython · GitHub

/ cpython Public

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

Merged
serhiy-storchaka merged 4 commits into
python:masterfrom
serhiy-storchaka:bpo-24037-clinic-boolint-converter
Mar 12, 2017
Merged

bpo-24037: Add Argument Clinic converter bool(accept={int}).#485
serhiy-storchaka merged 4 commits into
python:masterfrom
serhiy-storchaka:bpo-24037-clinic-boolint-converter

Conversation

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 added the type-feature A feature request or enhancement label Mar 5, 2017

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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]

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL