Skip to content

Commit

Permalink
Add deprecate.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner committed Dec 18, 2018
1 parent f97fed7 commit 0d809de
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
23 changes: 23 additions & 0 deletions doc/deprecate.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
++++++++++++++++++
Deprecate old APIs
++++++++++++++++++

CPython is old, the code evolved. Some functions became useless and so should
be removed. But backward compatibility matters in Python, so we need a
transition period with a deprecation process.

The deprecation can be:

* Emitted at runtime: ``DeprecationWarning``
* At the compilation: ``Py_DEPRECATED()``
* In the documentation

Functions that should deprecated:

* Unicode functions using ``Py_UNICODE`` type
* Py_VA_COPY: see `email <https://mail.python.org/pipermail/python-dev/2016-September/146537.html>`_

See:

* https://bugs.python.org/issue19569
*
1 change: 1 addition & 0 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,5 @@ Table of Contents
performance
split_include
pyhandle
deprecate

0 comments on commit 0d809de

Please sign in to comment.