cpython/Include
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.h Issue #9369: The types of char* arguments of PyObject_CallFunction() and 2013-05-29 18:50:54 +03:00
accu.h
asdl.h create NameConstant AST class for None, True, and False literals (closes #16619) 2012-12-06 17:41:04 -05:00
ast.h
bitset.h
bltinmodule.h
boolobject.h
bytearrayobject.h
bytes_methods.h
bytesobject.h Simplify and optimize formatlong() 2012-04-27 23:40:13 +02:00
cellobject.h
ceval.h
classobject.h
code.h
codecs.h
compile.h
complexobject.h Issue #14744: Use the new _PyUnicodeWriter internal API to speed up str%args and str.format(args) 2012-05-29 12:57:52 +02:00
datetime.h
descrobject.h
dictobject.h Add PyDict_SetDefault. (closes #17327) 2013-03-07 22:16:29 -05:00
dtoa.h Issue #14521: Make result of float('nan') and float('-nan') more consistent across platforms. Further, don't rely on Py_HUGE_VAL for float('inf'). 2012-04-29 15:31:56 +01:00
dynamic_annotations.h
enumobject.h
errcode.h
eval.h
fileobject.h
fileutils.h
floatobject.h Issue #14785: Add sys._debugmallocstats() to help debug low-level memory allocation issues 2012-06-22 14:55:41 -04:00
frameobject.h Backout c89febab4648 following private feedback by Guido. 2013-05-14 20:37:52 +02:00
funcobject.h
genobject.h Backout c89febab4648 following private feedback by Guido. 2013-05-14 20:37:52 +02:00
graminit.h
grammar.h make PyGrammar_LabelRepr return a const char * (closes #16369) 2012-10-31 13:36:13 -04:00
import.h make some freezing related stuff const 2013-03-13 14:06:39 -05:00
intrcheck.h
iterobject.h Rename _PyIter_GetBuiltin to _PyObject_GetBuiltin, and do not include it in the stable ABI. 2012-04-05 00:04:20 +02:00
listobject.h Issue #14785: Add sys._debugmallocstats() to help debug low-level memory allocation issues 2012-06-22 14:55:41 -04:00
longintrepr.h
longobject.h Issue #17931: Resolve confusion on Windows between pids and process handles. 2013-06-05 23:29:30 +01:00
marshal.h Issue #16475: Support object instancing, recursion and interned strings 2013-03-19 18:02:10 -07:00
memoryobject.h Issue #14930: Make memoryview objects weakrefable. 2012-05-28 21:35:09 +01:00
metagrammar.h
methodobject.h Revert back PyCFunction_New macro. Keep PyCFunction_NewEx usage in python core modules (#15422) 2012-12-26 22:52:04 +02:00
modsupport.h remove support GCC PyArg_ParseTuple format patch, last seen in 2006 2013-05-12 23:08:28 -05:00
moduleobject.h
namespaceobject.h Eric Snow's implementation of PEP 421. 2012-06-03 16:18:47 -04:00
node.h MERGE: Closes #15512: Correct __sizeof__ support for parser 2012-08-03 14:29:26 +02:00
object.h don't expand the operand to Py_XINCREF/XDECREF/CLEAR/DECREF multiple times (closes #17206) 2013-05-27 14:46:14 -07:00
objimpl.h Issue #17937: Try harder to collect cyclic garbage at shutdown. 2013-05-19 01:11:58 +02:00
opcode.h rather than passing locals to the class body, just execute the class body in the proper environment 2013-05-16 14:37:25 -05:00
osdefs.h Merge 3.3. 2012-11-12 20:24:09 +01:00
parsetok.h
patchlevel.h post-release update. 2013-05-15 19:42:39 +02:00
pgen.h
pgenheaders.h
py_curses.h
pyarena.h
pyatomic.h
pycapsule.h
pyctype.h
pydebug.h
pyerrors.h Issue #15767: Touch up ModuleNotFoundError usage by import. 2013-06-12 23:29:18 -04:00
pyexpat.h Issue #13612: handle unknown encodings without a buffer overflow. 2013-05-25 05:25:48 -07:00
pyfpe.h Remove trailing whitespace in order to silence warnings on HP-UX. 2012-08-31 17:11:39 -04:00
pygetopt.h
pymacconfig.h
pymacro.h Issue #16881: Fix Py_ARRAY_LENGTH macro for GCC < 3.1. 2013-01-06 16:41:56 +01:00
pymath.h
pymem.h
pyport.h Close #17931: Fix PyLong_FromPid() on Windows 64-bit: processes are identified 2013-06-04 23:56:38 +02:00
pystate.h Issue #17912: Use a doubly linked-list for thread states. 2013-05-08 21:09:52 +02:00
pystrcmp.h
pystrtod.h
Python-ast.h unify some ast.argument's attrs; change Attribute column offset (closes #16795) 2013-03-18 10:48:58 -07:00
Python.h Eric Snow's implementation of PEP 421. 2012-06-03 16:18:47 -04:00
pythonrun.h Issue #1545463: Global variables caught in reference cycles are now garbage-collected at shutdown. 2013-05-06 21:15:57 +02:00
pythread.h
pytime.h PEP 418: Rename adjusted attribute to adjustable in time.get_clock_info() result 2012-06-12 22:46:37 +02:00
rangeobject.h
setobject.h Issue #14785: Add sys._debugmallocstats() to help debug low-level memory allocation issues 2012-06-22 14:55:41 -04:00
sliceobject.h Issue #16451: Refactor to remove duplication between range and slice in slice index computations. 2012-11-17 19:18:10 +00:00
structmember.h s/tabs/spaces, and clean trailing whitespace 2012-05-23 07:09:08 +03:00
structseq.h
symtable.h hide the __class__ closure from the class body (#12370) 2013-05-15 15:26:42 -05:00
sysmodule.h Issue #1783: Remove declarations of nonexistent private variables. 2013-02-01 13:14:20 +02:00
token.h make _PyParser_TokenNames const 2012-10-24 08:21:52 -07:00
traceback.h
tupleobject.h Issue #14785: Add sys._debugmallocstats() to help debug low-level memory allocation issues 2012-06-22 14:55:41 -04:00
typeslots.h
ucnhash.h
unicodeobject.h fix typo in a comment 2013-04-18 23:21:19 +02:00
warnings.h Issue #1545463: At shutdown, defer finalization of codec modules so that stderr remains usable. 2013-05-08 13:23:25 +02:00
weakrefobject.h Issue #16602: When a weakref's target was part of a long deallocation chain, the object could remain reachable through its weakref even though its refcount had dropped to zero. 2012-12-08 21:15:26 +01:00