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-145681: reset list allocated to 0#145680

Draft
KowalskiThomas wants to merge 1 commit intopython:mainfrom
KowalskiThomas:kowalski/fix-reset-list-allocated-to-0
Draft

gh-145681: reset list allocated to 0#145680
KowalskiThomas wants to merge 1 commit intopython:mainfrom
KowalskiThomas:kowalski/fix-reset-list-allocated-to-0

Conversation

@KowalskiThomas
Copy link
Contributor

@KowalskiThomasKowalskiThomas commentedMar 9, 2026
edited
Loading

Description

This is a fix forgh-145681.

Note I wanted to open this PR in my fork for the time being (until issue has been reviewed/triaged), but I accidentally opened it in the public CPython directly... Sorry about that.

@KowalskiThomasKowalskiThomas changed the titlefix: reset list allocated to 0gh-145681: reset list allocated to 0Mar 9, 2026
@KowalskiThomas
Copy link
ContributorAuthor

I meant to open this PR in my fork until my issue has been reviewed/triaged and bug has been confirmed or rejected but I forgot to select the target repo for the PR... sorry about this.

Py_ssize_t size = Py_SIZE(self);
self->ob_item = NULL;
Py_SET_SIZE(self, 0);
self->allocated = 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

list_clear_impl has extra code ifPy_GIL_DISABLED - should we include it here?

KowalskiThomas reacted with thumbs up emoji
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Thanks for the comment, there is a discussion on the issue right now but I'll keep that in mind when time comes.

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

Reviewers

@sergey-miryanovsergey-miryanovsergey-miryanov left review comments

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

@KowalskiThomas@sergey-miryanov

[8]ページ先頭

©2009-2026 Movatter.jp