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 Recorded merge of revisions 81032 via svnmerge from 2010-05-09 16:14:21 +00:00
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 Fix the GIL with subinterpreters. Hopefully this will allow mod_wsgi to work with 3.2. 2011-01-15 11:37:11 +00:00
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 Issue #8914: fix various warnings from the Clang static analyzer v254. 2011-02-22 20:15:44 +00:00
dup2.c Merged revisions 85236 via svnmerge from 2010-10-05 22:18:29 +00:00
dynamic_annotations.c Make (most of) Python's tests pass under Thread Sanitizer. 2010-05-03 19:29:34 +00:00
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 Issue #3080: Remove unused argument of _PyImport_GetDynLoadFunc() 2011-02-22 23:16:19 +00:00
dynload_shlib.c Issue #2377: Make importlib the implementation of __import__(). 2012-04-14 14:10:13 -04:00
dynload_stub.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
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 Recorded merge of revisions 81032 via svnmerge from 2010-05-09 16:14:21 +00:00
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 The GCC version is loooooooooong; put it on a new line. 2000-09-05 04:40:39 +00:00
getcopyright.c Update copyright years and version name. 2012-03-04 16:26:19 +01:00
getcwd.c Recorded merge of revisions 81032 via svnmerge from 2010-05-09 16:14:21 +00:00
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 REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
getversion.c Merged revisions 83352,83355-83358,83362,83366,83368-83369 via svnmerge from 2010-08-01 19:17:57 +00:00
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 Issue #3080: _PyImport_LoadDynamicModule() uses Unicode for name and path 2011-03-14 15:54:07 -04:00
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 Recorded merge of revisions 81032 via svnmerge from 2010-05-09 16:14:21 +00:00
mystrtoul.c Recorded merge of revisions 81032 via svnmerge from 2010-05-09 16:14:21 +00:00
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 Remove redundant includes of headers that are already included by Python.h. 2010-11-30 09:41:01 +00:00
pyctype.c Include files missed in r72044. 2009-04-27 20:54:42 +00:00
pyfpe.c Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774. 2001-07-26 13:41:06 +00:00
pymath.c Recorded merge of revisions 81032 via svnmerge from 2010-05-09 16:14:21 +00:00
pystate.c Issue #2377: Make importlib the implementation of __import__(). 2012-04-14 14:10:13 -04:00
pystrcmp.c Recorded merge of revisions 81032 via svnmerge from 2010-05-09 16:14:21 +00:00
pystrtod.c Issue #8914: fix various warnings from the Clang static analyzer v254. 2011-02-22 20:15:44 +00:00
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 REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
strdup.c Mass ANSIfication of function definitions. Doesn't cover all 'extern' 2000-07-22 18:47:25 +00:00
structmember.c Recorded merge of revisions 81032 via svnmerge from 2010-05-09 16:14:21 +00:00
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 Recorded merge of revisions 81032 via svnmerge from 2010-05-09 16:14:21 +00:00
thread_nt.h Issue #11618: Fix the timeout logic in threading.Lock.acquire() under 2011-03-31 01:00:32 +02:00
thread_os2.h Recorded merge of revisions 81032 via svnmerge from 2010-05-09 16:14:21 +00:00
thread_pth.h Issue #11495: OSF support is eliminated. It was deprecated in Python 3.2 2011-03-14 17:36:54 +01:00
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