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

Unstable C API tier (PEP 689) #101101

Open
Open
Labels
@encukou

Description

@encukou

Add an Unstable C API tier as perPEP 689.

Other candidates for inclusion are below.
These usually need discussion first. This is a checklist forhaving the discussion.
Please try tonot hold the individual discussions in this issue.

  • Dict watching API
  • Functions fromPEP-523 not specified inPEP-689 (_PyEval_EvalFrameDefault & co.) -- this is a can of worms tho
  • FrameStack API (Add "unstable" frame stack api #91371)
  • _Py_HashDouble, seePEP 689 -- Add an unstable C-API tier #91744 (comment)
  • PyBytesObject.ob_shash sounds like a good candidate: seehttps://discuss.python.org/t/15108 (guess fields need a slightly different naming convention though. Sigh. That should have been in the PEP.)
  • non-opaque access to frame structs and any other key APIs needed to implement alternate eval loops with comparable performance to the default eval loop (unless & until we can figure out stable public APIs that can deliver equivalent performance) - seeNick's reply
  • C APIs that provide access to compiled code whether in AST or opcode form (the API itself may be stable, but the compiled code isn't) - seeNick's reply
  • PyLong_FromByteArray/PyUnstable_LongToBase30Digits:https://discuss.python.org/t/20045 [there's now `PyLong_{From,To}NativeBytes
  • Anything that starts with an underscore and is documented
  • Fast access to PyLong contents [PyLong_Export]

Got any more?
I offer to move other API to the unstable tier myself,if there's a good usage example to base docs & regression tests on.

Linked PRs

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