Skip to content

Commit

Permalink
Clarify that PyUnstable macros use "PyUnstable" prefix (#1158)
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner committed Sep 29, 2023
1 parent 8bdf737 commit fd1c58f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions developer-workflow/c-api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ Moving an API from the public tier to Unstable
----------------------------------------------

* Expose the API under its new name, with the ``PyUnstable_`` prefix.
The ``PyUnstable_`` prefix must be used for all symbols (functions, macros,
variables, etc.).
* Make the old name an alias (e.g. a ``static inline`` function calling the
new function).
* Deprecate the old name, typically using :c:macro:`Py_DEPRECATED`.
Expand Down

0 comments on commit fd1c58f

Please sign in to comment.