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

[C-API] Add a function to access PyCodeObject.co_code in C #92154

Closed
Labels
@Fidget-Spinner

Description

@Fidget-Spinner

Feature or enhancement

Previously, you could access theco_code field inPyCodeObject directly to access the bytecode. This is no longer the case since2bde682. Currently in 3.11a7+, C code cannot easily obtain the equivalent ofco_code in 3.10.co_code_adaptive gets quickened bytecode which is not equivalent to the 3.10 behavior.

I would imagine many tools relying on the old behavior will break.

Pitch

I propose we expose some form of the currently internal_PyCode_GetCode.

Previous discussion

Related to#91397.
See also coverage.py issuecoveragepy/coveragepy#1367

CC@vstinner@nedbat@brandtbucher@markshannon

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp