cpython/Python
Brett Cannon 881535b726 Issue #14582: Import returns the module returned by a loader instead
of sys.modules when possible.

This is being done for two reasons. One is to gain a little bit of
performance by skipping an unnecessary dict lookup in sys.modules. But
the other (and main) reason is to be a little bit more clear in how
things should work from the perspective of import's interactions with
loaders. Otherwise loaders can easily forget to return the module even
though PEP 302 explicitly states they are expected to return the module
they loaded.
2012-04-15 15:24:04 -04:00
..
_warnings.c Finally fix all test_capi refleaks 2012-01-18 21:45:15 +01:00
asdl.c
ast.c merge 3.2 2012-03-12 11:16:03 -07:00
bltinmodule.c Issue #2377: Make importlib the implementation of __import__(). 2012-04-14 14:10:13 -04:00
ceval.c Guard an LLTRACE variable to silence an unused variable warning. 2012-04-02 12:17:59 -04:00
ceval_gil.h
codecs.c Issue #13722: Avoid silencing ImportErrors when initializing the codecs registry. 2012-01-18 22:31:12 +01:00
compile.c perform yield from delegation by repeating YIELD_FROM opcode (closes #14230) 2012-03-15 15:37:39 -05:00
dtoa.c
dup2.c
dynamic_annotations.c
dynload_aix.c Issue #14040: Remove rarely used file name suffixes for C extensions (under POSIX mainly). 2012-02-20 19:41:11 +01:00
dynload_dl.c Issue #14040: Remove rarely used file name suffixes for C extensions (under POSIX mainly). 2012-02-20 19:41:11 +01:00
dynload_hpux.c Issue #14040: Remove rarely used file name suffixes for C extensions (under POSIX mainly). 2012-02-20 19:41:11 +01:00
dynload_next.c Issue #14040: Remove rarely used file name suffixes for C extensions (under POSIX mainly). 2012-02-20 19:41:11 +01:00
dynload_os2.c
dynload_shlib.c Issue #2377: Make importlib the implementation of __import__(). 2012-04-14 14:10:13 -04:00
dynload_stub.c
dynload_win.c Use the new Unicode API 2011-11-22 02:27:30 +01:00
errors.c Issue #1559549: Add 'name' and 'path' attributes to ImportError. 2012-04-12 20:24:54 -04:00
fileutils.c Issue #14153 Create _Py_device_encoding() to prevent _io from having to import 2012-02-29 18:31:31 -05:00
formatter_unicode.c Issue #13706: Fix format(float, "n") for locale with non-ASCII decimal point (e.g. ps_aF) 2012-02-24 01:44:47 +01:00
freeze_importlib.py Issue #2377: Make importlib the implementation of __import__(). 2012-04-14 14:10:13 -04:00
frozen.c Issue #2377: Make importlib the implementation of __import__(). 2012-04-14 14:10:13 -04:00
frozenmain.c
future.c Fix typo when "PyObject*" was changed to "identifier" 2012-03-23 12:50:53 +00:00
getargs.c Issue #14328: Add keyword-only parameters to PyArg_ParseTupleAndKeywords. 2012-03-20 20:06:16 +00:00
getcompiler.c
getcopyright.c Update copyright years and version name. 2012-03-04 16:26:19 +01:00
getcwd.c
getopt.c Fix test failure in test_cmd_line by initializing the hash secret at the earliest point. 2012-02-21 19:03:47 +01:00
getplatform.c
getversion.c
graminit.c Issue #13629: Renumber the tokens in token.h to match the _PyParser_TokenNames indexes. 2012-01-15 19:31:57 -06:00
import.c Issue #14582: Import returns the module returned by a loader instead 2012-04-15 15:24:04 -04:00
importdl.c Issue #2377: Make importlib the implementation of __import__(). 2012-04-14 14:10:13 -04:00
importdl.h
importlib.h Issue #14582: Import returns the module returned by a loader instead 2012-04-15 15:24:04 -04:00
makeopcodetargets.py excise the remains of STOP_CODE, which hasn't done anything useful for years 2011-07-17 22:49:50 -05:00
marshal.c - Issue #14177: marshal.loads() now raises TypeError when given an unicode 2012-03-03 02:38:37 +01:00
modsupport.c modsupport.c reuses Py_UNICODE_strlen() 2011-09-29 04:01:43 +02:00
mysnprintf.c
mystrtoul.c
opcode_targets.h Implement PEP 380 - 'yield from' (closes #11682) 2012-01-13 21:43:40 +10:00
peephole.c Implement PEP 393. 2011-09-28 07:41:54 +02:00
pyarena.c
pyctype.c
pyfpe.c
pymath.c
pystate.c Issue #2377: Make importlib the implementation of __import__(). 2012-04-14 14:10:13 -04:00
pystrcmp.c
pystrtod.c
Python-ast.c free AST's dict 2012-03-14 21:50:29 -05:00
pythonrun.c Plug a refleak. 2012-04-15 01:35:05 -04:00
pytime.c Issue #14180: Fix an invalid rounding when compiler optimization are enabled 2012-03-13 19:12:23 +01:00
random.c enable hash randomization by default 2012-02-21 16:08:05 -05:00
sigcheck.c
strdup.c
structmember.c
symtable.c make YieldFrom its own distinct from Yield (closes #13780) 2012-01-14 08:58:23 -05:00
sysmodule.c Merge 3.2: Issue #13703 plus some related test suite fixes. 2012-02-21 00:33:36 +01:00
thread.c Issue #11863: Remove support for legacy systems deprecated in Python 3.2 2011-07-08 23:47:50 +02:00
thread_foobar.h
thread_nt.h
thread_os2.h
thread_pth.h
thread_pthread.h Issue #14184: merge 2012-03-13 11:31:36 -07:00
traceback.c Remove "#ifdef Py_UNICODE_WIDE": Python is now always wide 2011-11-22 03:31:20 +01:00