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-30248: Convert boolean arguments only once in _json. #1423

Merged
merged 2 commits into from
May 28, 2017

Conversation

serhiy-storchaka
Copy link
Member

Rather than saving the Python object and calling PyObject_IsTrue()
every time when the boolean argument is used, call it only once and
save C boolean value.

Rather than saving the Python object and calling PyObject_IsTrue()
every time when the boolean argument is used, call it only once and
save C boolean value.
@serhiy-storchaka serhiy-storchaka added the type-feature A feature request or enhancement label May 3, 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, @loewis and @tiran to be potential reviewers.

Copy link
Member

@kushaldas kushaldas left a comment

Choose a reason for hiding this comment

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

The patch looks good to me.

@serhiy-storchaka serhiy-storchaka merged commit ac5bbd4 into python:master May 28, 2017
@serhiy-storchaka serhiy-storchaka deleted the json-bool-args branch May 28, 2017 12:31
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.

4 participants