Skip to content

bpo-30248: Convert boolean arguments only once in _json.#1423

Merged
serhiy-storchaka merged 2 commits into
python:masterfrom
serhiy-storchaka:json-bool-args
May 28, 2017
Merged

bpo-30248: Convert boolean arguments only once in _json.#1423
serhiy-storchaka merged 2 commits into
python:masterfrom
serhiy-storchaka:json-bool-args

Conversation

@serhiy-storchaka
Copy link
Copy Markdown
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
Copy Markdown

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