cpython/Python
Brett Cannon 12c6bda4f0 Issue #15316: Let exceptions raised during imports triggered by the
fromlist of __import__ propagate.

The problem previously was that if something listed in fromlist didn't
exist then that's okay. The fix for that was too broad in terms of
catching ImportError.

The trick with the solution to this issue is that the proper
refactoring of import thanks to importlib doesn't allow for a way to
distinguish (portably) between an ImportError because finders couldn't
find a loader, or a loader raised the exception. In Python 3.4 the
hope is to introduce a new exception (e.g. ModuleNotFound) to make it
clean to differentiate why ImportError was raised.
2012-08-24 18:25:59 -04:00
..
Python-ast.c add gc support to the AST base type (closes #15293) 2012-07-08 11:03:46 -07:00
_warnings.c Finally fix all test_capi refleaks 2012-01-18 21:45:15 +01:00
asdl.c Widen ASDL sequences to Py_ssize_t lengths to better match PEP 353. 2012-05-15 14:45:03 +02:00
ast.c Check return value of asdl_seq_new(). Found by Coverity. 2012-08-20 16:07:38 +02:00
bltinmodule.c Merge 3.2. 2012-08-20 17:20:46 +02:00
ceval.c fix yield from return value on custom iterators (closes #15568) 2012-08-06 17:53:09 -07:00
ceval_gil.h Issue #15038: Optimize python Locks on Windows 2012-06-18 20:30:44 +00:00
codecs.c Check newly created consistency using _PyUnicode_CheckConsistency(str, 1) 2012-04-27 13:55:39 +02:00
compile.c remove unused variable 2012-07-18 17:57:46 -05:00
condvar.h Issue #15038: Document caveats with the emulated condition variables. 2012-06-19 16:30:28 +00:00
dtoa.c 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
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 #13959: Re-implement imp.get_suffixes() in Lib/imp.py. 2012-05-04 15:20:40 -04:00
dynload_dl.c Issue #13959: Re-implement imp.get_suffixes() in Lib/imp.py. 2012-05-04 15:20:40 -04:00
dynload_hpux.c Issue #13959: Re-implement imp.get_suffixes() in Lib/imp.py. 2012-05-04 15:20:40 -04:00
dynload_next.c Issue #13959: Re-implement imp.get_suffixes() in Lib/imp.py. 2012-05-04 15:20:40 -04:00
dynload_os2.c Issue #13959: Re-implement imp.get_suffixes() in Lib/imp.py. 2012-05-04 15:20:40 -04:00
dynload_shlib.c Issue #15766: Fix a crash in imp.load_dynamic() on PyUnicode_FromString() failure 2012-08-22 17:45:52 +02:00
dynload_stub.c Issue #13959: Re-implement imp.get_suffixes() in Lib/imp.py. 2012-05-04 15:20:40 -04:00
dynload_win.c Fix #13210. Port the Windows build from VS2008 to VS2010. 2012-05-13 11:19:23 -05:00
errors.c Issue #14098: New functions PyErr_GetExcInfo and PyErr_SetExcInfo. 2012-04-19 14:33:43 +02: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 Remove now unused IntOrLongToString type 2012-08-09 21:38:23 +02: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 PyArg_Parse*("U"): ensure that the Unicode string is ready 2012-05-29 12:30:29 +02:00
getcompiler.c
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
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 #15604: Update uses of PyObject_IsTrue() to check for and handle errors correctly. 2012-08-15 23:18:25 +02:00
importdl.c Issue #14599: Generalize a test for ImportError.path and add support 2012-04-20 15:22:50 -04:00
importdl.h Issue #13959: Move module type constants to Lib/imp.py. 2012-05-04 16:13:30 -04:00
importlib.h Issue #15316: Let exceptions raised during imports triggered by the 2012-08-24 18:25:59 -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 #15466: Stop using TYPE_INT64 in marshal, 2012-07-28 19:44:05 +02: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 #15726: Fix incorrect bounds checking in PyState_FindModule. 2012-08-20 19:31:52 +02:00
pystrcmp.c Recorded merge of revisions 81032 via svnmerge from 2010-05-09 16:14:21 +00:00
pystrtod.c 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
pythonrun.c Close #13119: use "\r\n" newline for sys.stdout/err on Windows 2012-08-04 01:37:32 +02:00
pytime.c PEP 418: Rename adjusted attribute to adjustable in time.get_clock_info() result 2012-06-12 22:46:37 +02:00
random.c enable hash randomization by default 2012-02-21 16:08:05 -05:00
sigcheck.c
strdup.c
structmember.c Recorded merge of revisions 81032 via svnmerge from 2010-05-09 16:14:21 +00:00
symtable.c Close #14857: fix regression in references to PEP 3135 implicit __class__ closure variable. Reopens issue #12370, but also updates unittest.mock to workaround that issue 2012-05-27 18:17:07 +10:00
sysmodule.c Issue #15242: Have PyImport_GetMagicTag() return a const char * 2012-07-09 14:22:12 -04: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 #15038: Optimize python Locks on Windows 2012-06-18 20:30:44 +00: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 Signal condition variables with the mutex held. Destroy condition variables 2012-06-05 22:17:42 +00:00
traceback.c Issue #15463: the faulthandler module truncates strings to 500 characters, 2012-07-30 13:08:58 +02:00