Commit a6c5bad8 authored by da-woods's avatar da-woods Committed by GitHub

Add a warning to use the "cpython.*" submodules instead of "cimport cpython" (GH-4708)

Since cimporting directly from "cpython" has long been deprecated.

e.g. https://github.com/cython/cython/issues/4707
parent fdea2d6b
......@@ -271,6 +271,12 @@ Note that Cython comes with ready-to-use declarations of (almost) all C-API func
in the cimportable ``cpython.*`` modules. See the list in
https://github.com/cython/cython/tree/master/Cython/Includes/cpython
You should always use submodules (e.g. ``cpython.object``, ``cpython.list``) to
access these functions. Historically Cython has made some of the C-API functions
available under directly under the ``cpython`` module. However, this is
deprecated, will be removed eventually, and any new additions will not be added
there.
Special Types
--------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment