Skip to content

docs of deprecated C function should propose replacement in C, not in Python #129342

Closed
@jwuttke

Description

@jwuttke

Documentation

In the 3.13 Python/C API Reference Manual, page "Initialization, Finalization, and Threads", Py_GetProgramName() and several other C functions are declared deprecated. To replace them, it is suggested "Get sys.executable instead".

As maintainer of a C program, I find this not helpful. I would need a drop-in replacement in C, not a reference to a Python variable.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions