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
..
_warnings.c
asdl.c
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
codecs.c
compile.c remove unused variable 2012-07-18 17:57:46 -05:00
condvar.h
dtoa.c
dup2.c
dynamic_annotations.c
dynload_aix.c
dynload_dl.c
dynload_hpux.c
dynload_next.c
dynload_os2.c
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
dynload_win.c
errors.c
fileutils.c
formatter_unicode.c Remove now unused IntOrLongToString type 2012-08-09 21:38:23 +02:00
frozen.c
frozenmain.c
future.c
getargs.c
getcompiler.c
getcopyright.c
getcwd.c
getopt.c
getplatform.c
getversion.c
graminit.c
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
importdl.h
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
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
Python-ast.c add gc support to the AST base type (closes #15293) 2012-07-08 11:03:46 -07: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
random.c
sigcheck.c
strdup.c
structmember.c
symtable.c
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
thread_os2.h
thread_pth.h
thread_pthread.h
traceback.c Issue #15463: the faulthandler module truncates strings to 500 characters, 2012-07-30 13:08:58 +02:00