Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

bpo-36203: Check callback is callable in PyWeakref_NewRef#26273

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
tekknolagi wants to merge2 commits intopython:main
base:main
Choose a base branch
Loading
fromtekknolagi:main

Conversation

tekknolagi
Copy link
Contributor

@tekknolagitekknolagi commentedMay 20, 2021
edited
Loading

The documentation says thatPyWeakref_NewRef should raise a
TypeError if the callback is not callable, None, or NULL, but the code
does not reflect the documentation. This PR fixes that.

This should probably be backported to whatever version of Python
changed that documentation.

https://bugs.python.org/issue36203

The documentation says that `PyWeakref_NewRef` should raise a`TypeError` if the callback is not callable, None, or NULL, but the codedoes not reflect the documentation. This PR fixes that.
@tekknolagitekknolagi changed the titleCheck callback is callable in PyWeakref_NewRefbpo-36203: Check callback is callable in PyWeakref_NewRefMay 20, 2021
@tekknolagi
Copy link
ContributorAuthor

Tests failing seem entirely unrelated

@github-actions
Copy link

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

@github-actionsgithub-actionsbot added the staleStale PR or inactive for long period of time. labelJun 21, 2021
@tekknolagi
Copy link
ContributorAuthor

bump? :)

Copy link
Contributor

@MaxwellDupreMaxwellDupre left a comment

Choose a reason for hiding this comment

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

Runs ok on my Ubuntu.

@github-actionsgithub-actionsbot removed the staleStale PR or inactive for long period of time. labelAug 8, 2022
Copy link
Member

@iritkatrieliritkatriel left a comment

Choose a reason for hiding this comment

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

This has merge conflicts now.

@bedevere-bot
Copy link

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phraseI have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@ghost
Copy link

The following commit authors need to sign the Contributor License Agreement:

Click the button to sign:
CLA not signed

@@ -0,0 +1 @@
Amend PyWeakref_New to raise a TypeError if the callback given is not NULL, None, or a callable object. The documentation previously falsely claimed this check occurred.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Amend PyWeakref_New to raiseaTypeError if the callback given is not NULL, None, or a callable object. The documentation previously falsely claimed this check occurred.
Amend:c:func:`PyWeakref_New` to raise:exc:`TypeError` if the*callback* given is not NULL, None, or a callable object. The documentation previously falsely claimed this check occurred.

@python-cla-bot
Copy link

python-cla-botbot commentedApr 6, 2025
edited
Loading

The following commit authors need to sign the Contributor License Agreement:

CLA signed

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

@kumaraditya303kumaraditya303kumaraditya303 left review comments

@iritkatrieliritkatrieliritkatriel requested changes

@MaxwellDupreMaxwellDupreMaxwellDupre approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

7 participants
@tekknolagi@bedevere-bot@iritkatriel@MaxwellDupre@kumaraditya303@the-knights-who-say-ni@ezio-melotti

[8]ページ先頭

©2009-2025 Movatter.jp