cpython/Doc/c-api
Eric Snow 3f9eee6eb4 bpo-28411: Support other mappings in PyInterpreterState.modules. (#3593)
The concrete PyDict_* API is used to interact with PyInterpreterState.modules in a number of places. This isn't compatible with all dict subclasses, nor with other Mapping implementations. This patch switches the concrete API usage to the corresponding abstract API calls.

We also add a PyImport_GetModule() function (and some other helpers) to reduce a bunch of code duplication.
2017-09-15 16:35:20 -06:00
..
abstract.rst
allocation.rst Issue #18589: fix hyperlinking of type slots (tp_*) 2013-08-01 21:12:45 +02:00
apiabiversion.rst Remove row-spanning cell, which the Sphinx text writer does not support. 2013-03-16 08:01:49 +01:00
arg.rst bpo-29918: Add missed "const" modifiers in C API documentation. (#846) 2017-03-30 10:01:03 +03:00
bool.rst Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
buffer.rst Issue #28496: Mark up constants 0, 1 and -1 that denote return values or 2016-10-27 21:41:19 +03:00
bytearray.rst #23088: Clarify null termination of bytes and strings in C API. 2015-05-13 20:31:53 -04:00
bytes.rst bpo-28415: Note 0 conversion different between Python and C (#885) 2017-04-27 11:36:35 +08:00
capsule.rst Issue #28496: Mark up constants 0, 1 and -1 that denote return values or 2016-10-27 21:41:19 +03:00
cell.rst Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
code.rst [Issue 15476] Make "code object" its own entry in the index 2016-06-02 19:26:51 -04:00
codec.rst Issue #19676: Tweak documentation a bit. 2014-11-25 18:59:20 +02:00
complex.rst Issue #13522: Fix _Py_co_pow() documentation 2011-12-18 02:56:18 +01:00
concrete.rst Issue #24400: Introduce a distinct type for 'async def' coroutines. 2015-06-22 12:19:30 -04:00
conversion.rst Fixed documentation of functions with const char* arguments. 2015-06-21 17:11:21 +03:00
coro.rst Issue #24400: Introduce a distinct type for 'async def' coroutines. 2015-06-22 12:19:30 -04:00
datetime.rst Issue #13727: Add 3 macros to access PyDateTime_Delta members: 2012-01-17 21:31:50 +01:00
descriptor.rst Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
dict.rst bpo-29918: Add missed "const" modifiers in C API documentation. (#846) 2017-03-30 10:01:03 +03:00
exceptions.rst Fix typos in multiple `.rst` files (#1668) 2017-05-19 23:37:57 +03:00
file.rst Issue #1772673: The type of `char*` arguments now changed to `const char*`. 2013-10-19 21:03:34 +03:00
float.rst Issue #13522: document error return values of some float and complex C API functions. 2011-12-18 01:25:27 +01:00
function.rst improve PyFunction_New docs (closes #26986) 2016-05-09 23:43:53 -07:00
gcsupport.rst note that Py_VISIT handles NULL (closes #27183) 2016-06-02 11:35:59 -07:00
gen.rst Issue #25161: Merge full stops from 3.4 into 3.5 2015-10-10 10:44:25 +00:00
import.rst bpo-28411: Support other mappings in PyInterpreterState.modules. (#3593) 2017-09-15 16:35:20 -06:00
index.rst Introduce support for documenting which C API elements are not part of the stable/limited API. 2013-10-12 19:54:30 +02:00
init.rst Doc nits for bpo-16500 (#1841) 2017-05-28 11:35:14 +02:00
intro.rst bpo-31338 (#3374) 2017-09-14 18:13:16 -07:00
iter.rst Issue #19005: Fix documentation for PyIter_Next(). 2013-10-09 22:42:46 -07:00
iterator.rst Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
list.rst Issue #13389: Full garbage collection passes now clear the freelists for 2011-11-15 00:00:12 +01:00
long.rst bpo-29751: Improve PyLong_FromString documentation (GH-915) 2017-04-23 20:54:08 -07:00
mapping.rst Issues #25909, #28211: Restored correct documentation of PyMapping_Items, 2016-09-26 20:52:41 +03:00
marshal.rst bpo-29746: Update marshal docs to Python 3. (#547) 2017-03-12 08:53:22 +02:00
memory.rst bpo-30054: Expose tracemalloc C API (#1236) 2017-06-20 17:46:36 +02:00
memoryview.rst Issue #23756: Clarify the terms "contiguous" and "bytes-like object". 2015-08-08 14:33:28 +02:00
method.rst Correct “an” → “a” with “Unicode”, “user”, “UTF”, etc 2016-04-15 02:14:19 +00:00
module.rst bpo-30656: Fix Python C API Module Objects documentation (GH-2170) 2017-06-13 10:58:18 -07:00
none.rst Issue #19795: Mark up None as literal text. 2016-10-19 16:29:26 +03:00
number.rst Issue #28496: Mark up constants 0, 1 and -1 that denote return values or 2016-10-27 21:41:19 +03:00
objbuffer.rst Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
object.rst Uniformize argument names of "call" functions 2016-12-06 16:27:24 +01:00
objimpl.rst
refcounting.rst Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
reflection.rst Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
sequence.rst Issue #25701: Document C API functions that both set and delete objects 2015-12-08 00:03:20 +00:00
set.rst Issue #28496: Mark up constants 0, 1 and -1 that denote return values or 2016-10-27 21:41:19 +03:00
slice.rst bpo-30281: Fix the default value for stop in PySlice_Unpack() (#1480) 2017-05-10 18:19:41 +08:00
stable.rst Add a link to PEP 384 in stable.rst 2016-01-28 12:42:26 +02:00
structures.rst bpo-29916: Include PyGetSetDef in C API extension documentation. (#831) 2017-09-15 19:25:27 +03:00
sys.rst bpo-16500: Don't use string constants for os.register_at_fork() behavior (#1834) 2017-05-29 10:03:41 -07:00
tuple.rst bpo-29918: Add missed "const" modifiers in C API documentation. (#846) 2017-03-30 10:01:03 +03:00
type.rst Clean up the docs of PyObject_IsSubclass and PyObject_IsInstance, and mention that they call the PEP 3119 methods. 2014-10-06 14:38:53 +02:00
typeobj.rst bpo-29916: Include PyGetSetDef in C API extension documentation. (#831) 2017-09-15 19:25:27 +03:00
unicode.rst bpo-30708: Check for null characters in PyUnicode_AsWideCharString(). (#2285) 2017-06-27 16:03:14 +03:00
utilities.rst Merged revisions 86134,86315-86316,86390,86424-86425,86428,86550,86561-86562,86564-86565,86705,86708,86713 via svnmerge from 2010-11-26 09:05:43 +00:00
veryhigh.rst Issue #29292: Update outdated doc of PyEval_EvalCodeEx. 2017-01-20 11:29:11 +08:00
weakref.rst demote this to a note 2011-05-31 21:27:41 -05:00