Skip to content

Commit

Permalink
Clarify that PyUnstable macros use "PyUnstable" prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner committed Sep 1, 2023
1 parent b70b763 commit 3b3c7ef
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 3b3c7ef

Please sign in to comment.