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

Py_RETURN_NOTIMPLEMENTED should INCREF on stable API 3.11 #140487

Closed
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)topic-C-APItype-bugAn unexpected behavior, bug, or error
@hpkfft

Description

@hpkfft

Bug report

Bug description:

Inobject.h, I believe

#define Py_RETURN_NOTIMPLEMENTED return Py_NOTIMPLEMENTED

should be

#if defined(Py_LIMITED_API) && Py_LIMITED_API+0 < 0x030c0000#  define Py_RETURN_NOTIMPLEMENTED return Py_NewRef(Py_NOTIMPLEMENTED)#else#  define Py_RETURN_NOTIMPLEMENTED return Py_NOTIMPLEMENTED

andPy_NotImplemented should addChanged in version 3.12: Py_NOTIMPLEMENTED is immortal.

andPy_RETURN_NOTIMPLEMENTED should sayReturn Py_NotImplemented from a function. without saying it creates a new strong reference.

CPython versions tested on:

3.14

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)topic-C-APItype-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