cpython/Lib
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
..
collections Small cleanup and optimization 2012-06-09 22:51:39 -07:00
concurrent #15015: Fix accessing an non-existing attribute. 2012-06-11 12:59:07 +10:00
ctypes Issue #15406: Fix deprecation warning in ctypes test_bitfields.py 2012-07-20 12:52:42 -05:00
curses (Merge 3.2) Fix curses module for strict SysV implementation (without has_key function) 2011-11-29 00:06:10 +01:00
dbm Close #13007: whichdb should recognize gdbm 1.9 magic numbers 2011-09-19 17:08:18 +02:00
distutils Bump to 3.3b2. 2012-08-11 08:49:20 +02:00
email Merge #15249: Mangle From lines correctly when body contains invalid bytes. 2012-08-24 11:23:50 -04:00
encodings Normalize whitespace 2012-06-16 22:50:54 +02:00
html #15156: HTMLParser now uses the new "html.entities.html5" dictionary. 2012-06-24 22:02:56 +02:00
http Issue #15409: Replace use of deprecated urllib.request.Request methods in http.cookijar 2012-07-20 19:12:04 -05:00
idlelib Issue #15678: Fix menu customization for IDLE started from OS X 2012-08-17 13:22:30 -07:00
importlib Issue #15316: Let exceptions raised during imports triggered by the 2012-08-24 18:25:59 -04:00
json Issue #5067: improve some json error messages. 2012-06-29 01:59:54 +02:00
lib2to3 remove get_prefix and set_prefix (#13248) 2012-03-14 17:41:15 -05:00
logging Closes #15179: Merged fix from 3.2. 2012-06-25 23:20:27 +01:00
msilib Remove duplication. 2011-10-19 10:58:56 +03:00
multiprocessing Issue #14669: Fix pickling of connections and sockets on MacOSX 2012-08-16 16:48:55 +01:00
plat-aix4
plat-darwin
plat-freebsd4
plat-freebsd5
plat-freebsd6
plat-freebsd7
plat-freebsd8
plat-generic
plat-linux Close #12326: sys.platform is now always 'linux' on Linux 2011-08-20 23:39:26 +02:00
plat-netbsd1
plat-next3
plat-os2emx
plat-sunos5
plat-unixware7
pydoc_data Fix markup errors and update pydoc topics. 2012-08-11 08:43:59 +02:00
site-packages
sqlite3 Merge branch '3.2' 2012-02-21 13:59:40 +02:00
test Issue #15316: Let exceptions raised during imports triggered by the 2012-08-24 18:25:59 -04:00
tkinter Issue #15601: fix tkinter test_variables failure with OS X Aqua Tk 8.4 2012-08-09 21:51:21 +03:00
turtledemo #12677: correct turtle orientation in doc 2011-08-07 17:12:19 +02:00
unittest Adding patch.stopall method to unittest.mock 2012-06-10 20:36:32 +01:00
urllib Closes #9374: merge with 3.2 2012-08-24 18:15:46 +02:00
venv Reverted change to venv initialisation. 2012-08-24 20:01:02 +01:00
wsgiref Fix 5931 - Python runtime hardcoded in wsgiref.simple_server - Now it specifies an implementation specific term. 2012-07-07 14:29:58 -07:00
xml fix whitespace woes 2012-07-17 15:09:56 +03:00
xmlrpc Merge 3.2 2012-03-05 16:24:07 +01:00
__future__.py #14494: Document that absolute imports became default in 3.0 instead of 2.7. 2012-05-19 18:36:33 +03:00
__phello__.foo.py
_compat_pickle.py
_dummy_thread.py Issue #11223: Replace threading._info() by sys.thread_info 2011-04-30 14:53:09 +02:00
_markupbase.py #13576: add tests about the handling of (possibly broken) condcoms. 2011-12-19 07:29:03 +02:00
_osx_support.py Issue #15184: Ensure consistent results of OS X configuration 2012-07-21 05:36:30 -07:00
_pyio.py Issue #15571: comment the fact what python impl of TextIOWrapper always works in write_throuth mode 2012-08-13 16:09:54 +03:00
_strptime.py Issue #1667546: On platforms supporting tm_zone and tm_gmtoff fields 2012-06-13 22:15:26 -04:00
_threading_local.py
_weakrefset.py Issue #14195: Make WeakSet.__lt__ and WeakSet.__gt__ irreflexive. 2012-03-04 22:15:38 -06:00
abc.py improve abstract property support (closes #11610) 2011-12-15 15:34:02 -05:00
aifc.py #13394: add more tests for the aifc module and use warnings.warn instead of print. Patch by Oleg Plakhotnyuk. 2012-03-12 23:57:18 +02:00
antigravity.py
argparse.py Merge #13922: argparse no longer incorrectly strips '--' after the first one. 2012-07-21 22:56:49 -04:00
ast.py remove ast.__version__ (closes #12273) 2011-07-15 21:10:13 -05:00
asynchat.py asynchat speedup improvement: avoid to use a function mimicking old buffer() builtin behavior; instead use plain slicing 2012-08-04 14:38:16 +02:00
asyncore.py merge 79422b3684f1 in 3.3 branch (issue 10340) 2012-03-22 16:19:45 +01:00
base64.py Speed up base64.urlsafe_{en,de}code(). 2012-06-22 15:16:09 -07:00
bdb.py issue13183 - Fix pdb skipping frames after hitting a breakpoint and running step. Patch by Xavier de Gaye 2012-05-01 10:07:49 +08:00
binhex.py remove unused imports (closes #12432) 2011-06-28 10:25:04 -05:00
bisect.py
bz2.py #15546: Fix BZ2File.read1()'s handling of pathological input data. 2012-08-04 15:29:28 +02:00
cProfile.py
calendar.py Fix closes Issue10087 - fixing the output of calendar display in the html format. Patch by Chris Lambacher. Test Contributed by catherine. 2011-08-11 09:22:52 +08:00
cgi.py Issue #13248: turn 3.2's PendingDeprecationWarning into 3.3's DeprecationWarning (cgi, importlib, nntplib, smtpd). 2011-12-10 11:07:42 +01:00
cgitb.py remove unused imports (closes #12432) 2011-06-28 10:25:04 -05:00
chunk.py
cmd.py Close #13500: Hitting EOF gets cmd.py into a infinite EOF on return loop 2011-12-06 20:46:57 +01:00
code.py Issue #12643: Respect sys.excepthook in code.InteractiveConsole 2012-08-20 23:02:28 +10:00
codecs.py Issue #14874: Restore charmap decoding speed to pre-PEP 393 levels. 2012-06-16 22:48:21 +02:00
codeop.py
colorsys.py
compileall.py #10454: a few edits to compileall help messages 2011-09-01 20:00:33 +02:00
configparser.py Fixes #14590: ConfigParser doesn't strip inline comment when delimiter occurs 2012-07-07 18:54:08 +02:00
contextlib.py Close #14969: Improve the handling of exception chaining in contextlib.ExitStack 2012-06-01 22:48:32 +10:00
copy.py #11572: improvements to copy module tests along with removal of old test suite 2011-08-05 23:05:35 +02:00
copyreg.py Closes #13258: Use callable() built-in in the standard library. 2011-10-28 14:45:05 +02:00
crypt.py white space cleanup 2012-06-27 15:37:47 +02:00
csv.py #11565: Merge with 3.1. 2011-03-16 11:35:38 +02:00
datetime.py Issue #9527: tm_gmtoff has 'correct' sign. 2012-06-22 16:04:19 -04:00
decimal.py Issue #15544: Fix Decimal.__float__ to work with payload-carrying NaNs. 2012-08-24 18:53:10 +01:00
difflib.py Fix comment in difflib. 2011-12-10 13:02:17 +01:00
dis.py Issue #11823: disassembly now shows argument counts on calls with keyword args 2012-06-07 14:28:14 -04:00
doctest.py Merge #12757: Make doctest skipping in -OO mode work with unittest/regrtest -v 2012-03-21 14:55:04 -04:00
dummy_threading.py
filecmp.py Issue 11802: filecmp cache was growing without bound. 2011-06-25 17:20:21 +02:00
fileinput.py fileinput: replace this last occurence of codecs.open with builtins.open. 2011-11-07 19:43:07 +01:00
fnmatch.py Fix BytesWarnings in fnmatch 2011-11-08 18:39:15 +01:00
formatter.py
fractions.py
ftplib.py fix #13563: make use of with statement in ftplib.py where needed 2011-12-10 21:25:04 +01:00
functools.py Separate key creation logic from the sequence class that memoizes its hash value. 2012-06-04 00:21:14 -07:00
genericpath.py
getopt.py Issue #11621: fix bootstrap issue with getopt/gettext (following d3e46930ffe9) 2011-03-21 16:04:06 +01:00
getpass.py Remove redundant imports. 2011-11-04 08:29:17 +01:00
gettext.py Implemented PEP 405 (Python virtual environments). 2012-05-26 03:45:29 +01:00
glob.py Fix closes issue12432 - remove the unused sys from glob.py 2011-07-03 17:21:05 -07:00
gzip.py #15546: Also fix GzipFile.peek(). 2012-08-05 14:45:41 +02:00
hashlib.py Consistently raise a TypeError when a non str is passed to hashlib.new 2012-07-21 21:19:53 -07:00
heapq.py Issue 13274: Make the pure python code for heapq more closely match the C implementation for an undefined corner case. 2011-10-30 14:32:54 -07:00
hmac.py Issue #15225: improve error message when hmac is passed a wrong key type. 2012-06-30 17:27:56 +02:00
imaplib.py Issues #11024: Fixes and additional tests for Time2Internaldate. 2012-06-22 21:03:39 -04:00
imghdr.py
imp.py Issue #15576: Allow extension modules to be a package's __init__ 2012-08-10 13:47:54 -04:00
inspect.py Issue #15401: Fix typo in inspect.getclosurevars docstring. 2012-07-19 21:33:21 -05:00
io.py merge 3.2 2012-05-07 22:24:05 -04:00
ipaddress.py Close #14814: Avoid depending on struct by using newer features. Also use enumerate where appropriate (patch by Serhiy Storchaka). Declaring PEP 3144 final at this point - any further changes to code or docs can go in new issues. 2012-08-20 10:19:12 +10:00
keyword.py Fix instructions on how to rebuild some modules 2011-11-29 16:45:34 +01:00
linecache.py
locale.py Fix last remaining references to ex-devguide 2011-11-29 16:36:17 +01:00
lzma.py #15546: Fix {GzipFile,LZMAFile}.read1()'s handling of pathological input data. 2012-08-05 02:19:09 +02:00
macpath.py
macurl2path.py
mailbox.py #11062: Fix universal newline support in Babyl._install_message() 2012-08-16 07:27:53 +03:00
mailcap.py Fix #9923: mailcap now uses the OS path separator for the MAILCAP envvar. Not backported, since it could break cases where people worked around the old POSIX-specific behaviour on non-POSIX platforms. 2011-08-28 00:17:31 +10:00
mimetypes.py #15199: Fix JavaScript's default MIME type to application/javascript 2012-08-20 21:30:03 +03:00
modulefinder.py Issue #13959: Deprecate imp.get_suffixes() for new attributes on 2012-05-11 12:58:42 -04:00
netrc.py fix regression in netrc comment handling (closes #12009) 2011-06-10 11:32:52 -05:00
nntplib.py #1079: Fix parsing of encoded words. 2012-06-02 17:56:49 -04:00
ntpath.py Correction to 88e318166eaf - Issue #11583 2011-06-09 09:10:38 -05:00
nturl2path.py Fix Issue11474 - fix url2pathname() handling of '/C|/' on Windows 2011-04-14 13:16:30 +08:00
numbers.py improve abstract property support (closes #11610) 2011-12-15 15:34:02 -05:00
opcode.py Issue #11823: disassembly now shows argument counts on calls with keyword args 2012-06-07 14:28:14 -04:00
optparse.py Merge 3.2 2011-10-28 14:52:29 +02:00
os.py Issue #15202: Consistently use the name "follow_symlinks" for 2012-07-15 10:57:38 -07:00
os2emxpath.py
pdb.py Close #14210: add command argument completion to pdb: complete file names, global/local variables, aliases 2012-03-10 22:36:48 +01:00
pickle.py Fixes #13842: cannot pickle Ellipsis or NotImplemented. 2012-03-12 19:46:12 +01:00
pickletools.py Merge 3.2 2011-12-13 13:22:42 -05:00
pipes.py Merge doc changes from 3.2 (#10454, #12298) 2011-09-02 00:03:20 +02:00
pkgutil.py Close #15386: There was a loophole that meant importlib.machinery and imp would sometimes reference an uninitialised copy of importlib._bootstrap 2012-07-20 23:40:09 +10:00
platform.py Issue #15164: Change return value of platform.uname() from a 2012-06-24 14:30:41 -07:00
plistlib.py #14835: Make plistlib output empty arrays & dicts like OS X 2012-05-29 12:04:54 +02:00
poplib.py Issue 11291: poplib suppresses errors on QUIT. 2011-02-25 22:28:24 +00:00
posixpath.py Merge #15342: Add clarifying sentence to posixpath.join docstring. 2012-07-21 14:34:51 -04:00
pprint.py Issues #10017 and #14998: Fix TypeError using pprint on dictionaries with unorderable key. 2012-07-21 11:17:38 +02:00
profile.py Issue #14428: Use the new time.perf_counter() and time.process_time() functions 2012-04-29 03:01:20 +02:00
pstats.py Issue #13839: When invoked on the command-line, the pstats module now accepts several filenames of profile stat files and merges them all. 2012-03-14 17:47:11 +01:00
pty.py Issue #2489: Fix bug in _copy loop that could consume 100% cpu on EOF. 2012-02-16 00:29:12 -08:00
py_compile.py Issue #13645: pyc files now contain the size of the corresponding source 2012-01-13 18:52:16 +01:00
pyclbr.py #14798: pyclbr now raises ImportError instead of KeyError for missing packages 2012-05-18 21:59:49 +03:00
pydoc.py Issue #15163: Pydoc shouldn't show __loader__ as a part of a module's 2012-08-06 17:19:22 -04:00
queue.py Issue #14428, #14397: Implement the PEP 418 2012-04-29 02:41:27 +02:00
quopri.py
random.py Issue #14926: merge with 3.2 2012-06-02 19:40:20 +02:00
re.py #14236: merge with 3.2. 2012-04-29 13:37:13 +03:00
reprlib.py Avoid pulling threading when _thread is sufficient 2011-10-11 18:51:53 +02:00
rlcompleter.py Closes #14411: remove outdated comment in rlcompleter docstring. 2012-03-27 07:46:46 +02:00
runpy.py Close #15386: There was a loophole that meant importlib.machinery and imp would sometimes reference an uninitialised copy of importlib._bootstrap 2012-07-20 23:40:09 +10:00
sched.py Close #14690: Use monotonic clock instead of system clock in the sched, 2012-05-30 13:30:32 +02:00
shelve.py #7905: Actually respect the keyencoding parameter to shelve.Shelf. 2010-12-04 11:12:43 +00:00
shlex.py #9723: refactor regex. 2011-08-16 19:03:41 +03:00
shutil.py #1492704: Backout and wait for 3.4 2012-07-19 21:41:02 +02:00
site.py Issue 15241: Improved site.py documentation relating to venvs. 2012-07-03 16:33:57 +01:00
smtpd.py #8739: upgrade smtpd to RFC 5321 and 1870. 2012-05-26 14:33:59 -04:00
smtplib.py #12448: merge with 3.2. 2011-10-18 13:26:49 +03:00
sndhdr.py
socket.py Issue #14310: inter-process socket duplication for windows 2012-04-07 11:23:31 +00:00
socketserver.py Fix the patch for issue #7978: select() raises select.error before 3.3, not OSError. 2012-04-09 01:37:19 +02:00
sre_compile.py #13054: fix usage of sys.maxunicode after PEP-393. 2011-10-04 19:06:00 +03:00
sre_constants.py
sre_parse.py Issue #3665: \u and \U escapes are now supported in unicode regular expressions. 2012-06-23 13:29:19 +02:00
ssl.py Issue #14204: The ssl module now has support for the Next Protocol Negotiation extension, if available in the underlying OpenSSL library. 2012-03-22 00:23:03 +01:00
stat.py #14807: move undocumented tarfile.filemode() to stat.filemode(). Add tarfile.filemode alias with deprecation warning. 2012-05-15 15:30:25 +02:00
string.py Merge #13579: teach string.Formatter about 'a'. 2012-08-19 17:45:40 -04:00
stringprep.py
struct.py Issue #11081: Fixed struct.__all__. Reviewed by Georg Brandl. 2011-01-31 19:27:55 +00:00
subprocess.py Issue #15595: Fix subprocess.Popen(universal_newlines=True) 2012-08-19 22:20:03 +03:00
sunau.py
symbol.py Fix instructions on how to rebuild some modules 2011-11-29 16:45:34 +01:00
symtable.py
sysconfig.py Issue #15364: Fix sysconfig.get_config_var('srcdir') to be an absolute path. 2012-07-27 12:06:55 +01:00
tabnanny.py Fix #12811 by closing files promptly in tabnanny.check. Patch by Anthony Briggs. 2011-08-22 16:19:19 +10:00
tarfile.py Simplify usage of LZMAFile's fileobj support, like with BZ2File. 2012-06-04 23:34:07 +02:00
telnetlib.py Fixes Issue #14635: telnetlib will use poll() rather than select() when possible 2012-07-15 23:42:26 -07:00
tempfile.py Issue #12856: Ensure child processes do not inherit the parent's random seed for filename generation in the tempfile module. 2011-11-25 21:29:27 +01:00
textwrap.py Close #13857: Added textwrap.indent() function (initial patch by Ezra 2012-06-11 23:07:51 +10:00
this.py
threading.py Issue #14428, #14397: Implement the PEP 418 2012-04-29 02:41:27 +02:00
timeit.py Add an option to timeit to use time.process_time() and mark -t and -c as deprecated. 2012-05-01 11:56:22 +02:00
token.py Issue #9260: A finer-grained import lock. 2012-05-17 18:55:59 +02:00
tokenize.py Merge branch 2012-07-07 12:26:56 +02:00
trace.py trace: remove unused imports. 2012-07-07 17:03:52 +02:00
traceback.py PEP 415: Implement suppression of __context__ display with an exception attribute 2012-05-14 22:09:31 -07:00
tty.py
turtle.py Issue #13439: Merge branch 3.2 2011-12-02 21:25:39 +02:00
types.py Eric Snow's implementation of PEP 421. 2012-06-03 16:18:47 -04:00
uu.py
uuid.py Issue #15118: Change return value of os.uname() and os.times() from 2012-06-24 04:33:36 -07:00
warnings.py Closes #13258: Use callable() built-in in the standard library. 2011-10-28 14:45:05 +02:00
wave.py Issue #10783: struct.pack() doesn't encode implicitly unicode to UTF-8 2010-12-28 13:26:42 +00:00
weakref.py Issue #14159: Fix the len() of weak containers (WeakSet, WeakKeyDictionary, WeakValueDictionary) to return a better approximation when some objects are dead or dying. 2012-03-01 16:26:35 +01:00
webbrowser.py Closes #15499: Sleep is hardcoded in webbrowser.UnixBrowser 2012-08-01 03:57:52 +02:00
xdrlib.py Cleanup code: remove int/long idioms and simplify a while statement. 2011-10-23 22:11:00 +02:00
zipfile.py On behalf of Nadeem Vawda: issue #10376: micro-optimize reading from a Zipfile. 2012-06-23 16:44:48 +02:00