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] Private functions used by mypyc #121489

Closed
@cdce8p

Description

@cdce8p

I've been working on adding support for3.13 to mypyc. After updating the codebase, there are still some functions left we depend on which are now private after#106320. Would it make sense to export these again? That would make adopting3.13 a bit easier. /CC@vstinner

  • _PyBytes_Join defined inpycore_bytesobject.h
  • _PyObject_CallMethodIdObjArgs defined inpycore_call.h
  • _PyType_CalculateMetaclass defined inpycore_object.h
  • _PyUnicode_EQ defined inpycore_unicodeobject.h
  • _PyUnicode_FastCopyCharacters defined inpycore_unicodeobject.h (this could be replaced withPyUnicode_CopyCharacters but it's used in a simplified copy of_PyUnicode_JoinArray which also uses_PyUnicode_FastCopyCharacters).

Other functions include these two. However, as they are inlined, it isn't a problem to include them.

  • _PyObject_CallMethodIdNoArgs and_PyObject_CallMethodIdOneArg defined inpycore_call.h

It would be fine to keep all of them ininternal/pycore_* and just addPyAPI_FUNC.

/CC@hauntsaninja

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp