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

code.h uses MS-only C++ extensions #101907

Closed
Labels
3.12only security fixesbuildThe build process and cross-build
@zooba

Description

@zooba

Issue#100222 added a struct toInclude/cpython/code.h (which is included by default byPython.h) that is not compliant C++:

typedef union {    uint16_t cache;    struct {        uint8_t opcode;        uint8_t oparg;    };} _Py_CODEUNIT;

The struct member requires a name, as only anonymous structs are currently permitted in standard C++.

(And since the original issue invokes PEP 7, I'll do the same and point out that "The public C API should be compatible with C++". The intention of this clause is that standard C++ can#include <Python.h>, which is currently broken.)

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.12only security fixesbuildThe build process and cross-build

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp