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

PyTupleObjects with an ob_size of 20 are not reused. #121439

Closed
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error
@satori1995

Description

@satori1995

Bug report

Bug description:

In themaybe_freelist_push function, PyTupleObjects with an ob_size of 20 are being stored in the free_list for potential reuse. However, in themaybe_freelist_pop function, these objects aren't actually being reused.

// Objects/tupleobject.cstaticinlineintmaybe_freelist_push(PyTupleObject*op) {// ....}staticinlinePyTupleObject*maybe_freelist_pop(Py_ssize_tsize) {// ...}

I've already submitted a PR.
Here is the link to the PR:#121428

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp