@@ -2287,10 +2287,10 @@ object, and then get the ``void *`` pointer, which will usually point
22872287to an array of pointers to the module's various API functions.
22882288
22892289There is an existing data type already used for this,
2290- :c:type: `PyCObject `, but it doesn't provide type safety. Evil code
2290+ :c:type: `! PyCObject `, but it doesn't provide type safety. Evil code
22912291written in pure Python could cause a segmentation fault by taking a
2292- :c:type: `PyCObject ` from module A and somehow substituting it for the
2293- :c:type: `PyCObject ` in module B. Capsules know their own name,
2292+ :c:type: `! PyCObject ` from module A and somehow substituting it for the
2293+ :c:type: `! PyCObject ` in module B. Capsules know their own name,
22942294and getting the pointer requires providing the name:
22952295
22962296.. code-block :: c
@@ -2310,10 +2310,10 @@ detect the mismatched name and return false. Refer to
23102310:ref: `using-capsules ` for more information on using these objects.
23112311
23122312Python 2.7 now uses capsules internally to provide various
2313- extension-module APIs, but the :c:func: `PyCObject_AsVoidPtr ` was
2313+ extension-module APIs, but the :c:func: `! PyCObject_AsVoidPtr ` was
23142314modified to handle capsules, preserving compile-time compatibility
2315- with the :c:type: `CObject ` interface. Use of
2316- :c:func: `PyCObject_AsVoidPtr ` will signal a
2315+ with the :c:type: `!PyCObject ` interface. Use of
2316+ :c:func: `! PyCObject_AsVoidPtr ` will signal a
23172317:exc: `PendingDeprecationWarning `, which is silent by default.
23182318
23192319Implemented in Python 3.1 and backported to 2.7 by Larry Hastings;
0 commit comments