cpython/Doc/c-api
Brett Cannon 8f5ac5106e Issue #15767: Touch up ModuleNotFoundError usage by import.
Forgot to raise ModuleNotFoundError when None is found in sys.modules.
This led to introducing the C function PyErr_SetImportErrorSubclass()
to make setting ModuleNotFoundError easier.

Also updated the reference docs to mention ModuleNotFoundError
appropriately. Updated the docs for ModuleNotFoundError to mention the
None in sys.modules case.

Lastly, it was noticed that PyErr_SetImportError() was not setting an
exception when returning None in one case. That issue is now fixed.
2013-06-12 23:29:18 -04:00
..
abstract.rst Merged revisions 85082 via svnmerge from 2010-09-28 23:41:31 +00:00
allocation.rst Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00: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 #16518: use "bytes-like object" throughout the docs. 2013-05-04 18:06:34 +03:00
bool.rst Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
buffer.rst Closes #4159: add LaTeX tabular column specifications to tables that otherwise are cut off or have overlapping text. 2013-03-28 13:28:44 +01:00
bytearray.rst #16518: use "bytes-like object" throughout the docs. 2013-05-04 18:06:34 +03:00
bytes.rst Closes #4159: add LaTeX tabular column specifications to tables that otherwise are cut off or have overlapping text. 2013-03-28 13:28:44 +01:00
capsule.rst Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
cell.rst Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
code.rst Issue #14090: fix some minor C API problems in default branch (3.3) 2012-06-03 08:07:47 +03:00
codec.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
complex.rst Issue #13522: Fix _Py_co_pow() documentation 2011-12-18 02:56:18 +01:00
concrete.rst Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
conversion.rst Issue #14090: fix some minor C API problems in default branch (3.3) 2012-06-03 08:07:47 +03: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 fix spelling (#17327) 2013-03-11 12:17:19 -05:00
exceptions.rst Issue #15767: Touch up ModuleNotFoundError usage by import. 2013-06-12 23:29:18 -04:00
file.rst Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00: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 PEP 3155 / issue #13448: Qualified name for classes and functions. 2011-11-25 18:56:07 +01:00
gcsupport.rst Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
gen.rst Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
import.rst Fix rst markup. 2012-09-20 08:33:53 +03:00
index.rst Close #15465: Document C API version macros 2013-03-07 23:14:44 +10:00
init.rst Issue #17522: Minor documentation fix 2013-03-23 03:56:16 -07:00
intro.rst Clean up references to the no longer existing PyString_ APIs in our docs. 2013-03-22 13:43:30 -07:00
iter.rst Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00: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 Merge with 3.2: Issue #17047: removed doubled words in Doc/*, 2013-03-11 17:26:33 -04:00
mapping.rst Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
marshal.rst Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
memory.rst Clean up references to the no longer existing PyString_ APIs in our docs. 2013-03-22 13:43:30 -07:00
memoryview.rst Add PyMemoryView_FromMemory() to whatsnew/3.3. 2012-02-29 17:27:21 +01:00
method.rst Remove duplication. 2011-10-19 10:58:56 +03:00
module.rst #17115,17116: Have modules initialize the __package__ and __loader__ 2013-05-04 13:56:58 -04:00
none.rst Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
number.rst Issue #13145. Fix incorrect documentation for PyNumber_ToBase. Thanks Sven Marnach. 2011-10-11 18:06:36 +01:00
objbuffer.rst Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
object.rst Issue #9369: The types of `char*` arguments of PyObject_CallFunction() and 2013-05-29 18:50:54 +03:00
objimpl.rst Split C API docs in Py3k branch. 2008-01-20 09:30:57 +00:00
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 let PySequence_Check me a link; thanks to tomo cocoa from docs@ 2011-08-13 00:39:46 +02:00
set.rst Issue #6695: Full garbage collection runs now clear the freelist of set objects. 2011-12-16 11:24:27 +01:00
slice.rst Merged revisions 87101,87146,87156,87172,87175,87371,87378,87522-87524,87526-87528,87530-87536,87581 via svnmerge from 2011-02-25 10:03:34 +00:00
stable.rst Close #15465: Document C API version macros 2013-03-07 23:14:44 +10:00
structures.rst Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
sys.rst Remove already dropped function PySys_GetFile from documentation. 2012-10-31 12:02:56 +02:00
tuple.rst Merged revisions 85572-85573,85606,85609-85622,85624,85626-85627,85629,85631,85633,85635-85636,85638-85639,85641-85642 via svnmerge from 2010-11-26 08:49:15 +00:00
type.rst Fix whitespace. 2012-06-23 23:21:48 +02:00
typeobj.rst Issue #14181: Improve clarity in the documentation for the multi-purpose 2012-03-06 14:55:06 +01:00
unicode.rst Issue #7330: Implement width and precision (ex: "%5.3s") for the format string 2013-05-06 23:11:54 +02: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 #1554133: Document PyOS_InputHook, PyOS_ReadlineFunctionPointer 2013-05-28 21:48:28 -04:00
weakref.rst demote this to a note 2011-05-31 21:27:41 -05:00