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
dynamic_annotations.c
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
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
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 #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
marshal.c Issue #15466: Stop using TYPE_INT64 in marshal, 2012-07-28 19:44:05 +02:00
modsupport.c
mysnprintf.c
mystrtoul.c
opcode_targets.h Implement PEP 380 - 'yield from' (closes #11682) 2012-01-13 21:43:40 +10:00
peephole.c
pyarena.c
pyctype.c
pyfpe.c
pymath.c
pystate.c Issue #15726: Fix incorrect bounds checking in PyState_FindModule. 2012-08-20 19:31:52 +02:00
pystrcmp.c
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
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
thread_foobar.h
thread_nt.h Issue #15038: Optimize python Locks on Windows 2012-06-18 20:30:44 +00:00
thread_os2.h
thread_pth.h
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