Skip to content

bpo-45325: Add a new 'p' parameter to Py_BuildValue to convert an integer into a Python bool#28634

Merged
pablogsal merged 1 commit into
python:mainfrom
pablogsal:bpo-45325
Feb 18, 2025
Merged

bpo-45325: Add a new 'p' parameter to Py_BuildValue to convert an integer into a Python bool#28634
pablogsal merged 1 commit into
python:mainfrom
pablogsal:bpo-45325

Conversation

@pablogsal

@pablogsal pablogsal commented Sep 29, 2021

Copy link
Copy Markdown
Member

@vstinner vstinner left a comment

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.

LGTM, but it would be interested to see if/how this feature would be useful in the existing code: https://bugs.python.org/issue45325#msg402900

Comment thread Doc/whatsnew/3.11.rst Outdated
Comment thread Lib/test/test_capi.py Outdated
Comment thread Modules/_testcapimodule.c Outdated
Comment thread Modules/_testcapimodule.c Outdated
Comment thread Doc/c-api/arg.rst Outdated
@bedevere-bot

Copy link
Copy Markdown

When you're done making the requested changes, leave the comment: I have made the requested changes; please review again.

And if you don't make the requested changes, you will be poked with soft cushions!

@github-actions

github-actions Bot commented Nov 1, 2021

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Nov 1, 2021
@vstinner

vstinner commented Nov 9, 2021

Copy link
Copy Markdown
Member

@pablogsal: Do you plan to update your PR?

@pablogsal

Copy link
Copy Markdown
Member Author

@pablogsal: Do you plan to update your PR?

Yep, I just time :)

@github-actions github-actions Bot removed the stale Stale PR or inactive for long period of time. label Nov 10, 2021
Comment thread Modules/_testcapimodule.c Outdated
Comment thread Modules/_testcapimodule.c Outdated
Comment thread Lib/test/test_capi.py Outdated
@pablogsal

Copy link
Copy Markdown
Member Author

@brandtbucher can you review again?

@pablogsal

Copy link
Copy Markdown
Member Author

I have rebased and updated the PR.

@pablogsal pablogsal merged commit 51d4bf1 into python:main Feb 18, 2025
@pablogsal pablogsal deleted the bpo-45325 branch February 18, 2025 17:14
@serhiy-storchaka

Copy link
Copy Markdown
Member

This PR was merged, but the discussion on #89488 was not finished. I have concerns that this is a dangerous feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants