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

Add PyMapping_HasKeyWithError() function#73

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

Merged
vstinner merged 2 commits intomainfrommapping_hasattr
Sep 19, 2023
Merged

Conversation

vstinner
Copy link
Member

Add PyMapping_HasKeyWithError() and PyMapping_HasKeyStringWithError() functions.

Fix also undefined behavior in PyMapping_GetOptionalItemString() when PyUnicode_FromString() fails: set '*result' to NULL.

Add PyMapping_HasKeyWithError() and PyMapping_HasKeyStringWithError()functions.Fix also undefined behavior in PyMapping_GetOptionalItemString() whenPyUnicode_FromString() fails: set '*result' to NULL.
@vstinner
Copy link
MemberAuthor

cc@serhiy-storchaka

@vstinner
Copy link
MemberAuthor

Then I will add:

  • PyObject_HasAttrWithError()
  • PyObject_HasAttrStringWithError()

Comment on lines 53 to 54
// Marker to check that pointer value was set
#define UNINITIALIZED_OBJ ((PyObject *)"uninitialized")

Choose a reason for hiding this comment

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

@vstinnervstinner merged commit309c56d intomainSep 19, 2023
@vstinnervstinner deleted the mapping_hasattr branchSeptember 19, 2023 12:03
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@serhiy-storchakaserhiy-storchakaserhiy-storchaka approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@vstinner@serhiy-storchaka

[8]ページ先頭

©2009-2025 Movatter.jp