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

Undocumented 3.14 C API #135755

Open
Open
Labels
3.14bugs and security fixesdocsDocumentation in the Doc dirtopic-C-API
@encukou

Description

@encukou

The following public C API is new in 3.14 (beta 3, relative to 3.13.0), and as of this writing it looks either:

  • undocumented,
  • documented incorrectly, or
  • public by mistake.

previously:3.13


"PYOS" (#135928):

  • PYOS_LOG2_STACK_MARGIN: Include/pythonrun.h
  • PYOS_STACK_MARGIN_BYTES: Include/pythonrun.h
  • PYOS_STACK_MARGIN_SHIFT: Include/pythonrun.h

"SPECIAL" (#135922):

  • SPECIAL_MAX: Include/ceval.h
  • SPECIAL___AENTER__: Include/ceval.h
  • SPECIAL___AEXIT__: Include/ceval.h
  • SPECIAL___ENTER__: Include/ceval.h
  • SPECIAL___EXIT__: Include/ceval.h

Header guards (traditionally namedPy_*_H, but a leading underscore would be better for new ones) (#135921):

  • Py_AUDIT_H: Include/audit.h
  • Py_CPYTHON_AUDIT_H: Include/audit.h
  • Py_REFCOUNT_H: Include/refcount.h

New configure constants.
(IMO, if we don't want users to touch these, they should use the_Py prefix.
If wedo want users to use them, they need docs.)

NewHAVE configure constants -- a lost cause:

  • HAVE_BACKTRACE
  • HAVE_DECL_UT_NAMESIZE
  • HAVE_DLADDR
  • HAVE_DLADDR1
  • HAVE_EXECINFO_H
  • HAVE_GETLOGIN_R
  • HAVE_LINK_H
  • HAVE_LINUX_NETFILTER_IPV4_H
  • HAVE_LINUX_SCHED_H
  • HAVE_PTHREAD_GETATTR_NP
  • HAVE_PTHREAD_GETNAME_NP
  • HAVE_PTHREAD_SETNAME_NP
  • HAVE_SYS_PIDFD_H3
  • HAVE_TTYNAME_R
  • HAVE_USABLE_WCHAR_T
  • HAVE_UT_NAMESIZE

NewCO_ flags (documented ininspect; Sphinx sees none of these as C macros): (#135980)

  • CO_HAS_DOCSTRING: Include/cpython/code.h:115
  • CO_METHOD: Include/cpython/code.h:115

Linked PRs

  • Check links above! I prefer attaching doc fixes & renames to issues that added the API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.14bugs and security fixesdocsDocumentation in the Doc dirtopic-C-API

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp