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

GH-133372: C implementation of types._GeneratorWrapper is added.#133373

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

Conversation

efimov-mikhail
Copy link
Contributor

@efimov-mikhailefimov-mikhail commentedMay 4, 2025
edited by bedevere-appbot
Loading

@efimov-mikhailefimov-mikhail marked this pull request as ready for reviewMay 4, 2025 13:09
Copy link
Member

@ZeroIntensityZeroIntensity left a comment

Choose a reason for hiding this comment

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

I don't think this should go in the generator object implementation._types should implement it on its own.

Py_CLEAR(gw->gw_gen);
Py_CLEAR(gw->gw_name);
Py_CLEAR(gw->gw_qualname);
if (gw->gw_weakreflist != NULL)
Copy link
Member

Choose a reason for hiding this comment

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

Per PEP 7, allif clauses are supposed to have braces.

"__name__ must be set to a string object");
return -1;
}
Py_XSETREF(gw->gw_name, Py_NewRef(value));
Copy link
Member

Choose a reason for hiding this comment

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

We need a critical section if we're going to modify this in methods.

Copy link
ContributorAuthor

@efimov-mikhailefimov-mikhailMay 9, 2025
edited
Loading

Choose a reason for hiding this comment

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

Could you please give me some additional context on it?
I've just copied this code fromgen_set_name function.
Does this mean that critical section is also needed in that func?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

@efimov-mikhail
Copy link
ContributorAuthor

I close this because of#134563

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

@ZeroIntensityZeroIntensityZeroIntensity requested changes

@markshannonmarkshannonAwaiting requested review from markshannonmarkshannon is a code owner

@ericsnowcurrentlyericsnowcurrentlyAwaiting requested review from ericsnowcurrentlyericsnowcurrently is a code owner

@AA-TurnerAA-TurnerAwaiting requested review from AA-Turner

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
@efimov-mikhail@ZeroIntensity

[8]ページ先頭

©2009-2025 Movatter.jp