cpython/Lib
Victor Stinner 9d279b87d8 (Merge 3.4) Issue #22599: Enhance tokenize.open() to be able to call it during
Python finalization.

Before the module kept a reference to the builtins module, but the module
attributes are cleared during Python finalization. Instead, keep directly a
reference to the open() function.

This enhancement is not perfect, calling tokenize.open() can still fail if
called very late during Python finalization.  Usually, the function is called
by the linecache module which is called to display a traceback or emit a
warning.
2014-12-05 10:18:30 +01:00
..
asyncio Closes #22429, asyncio: Fix EventLoop.run_until_complete(), don't stop the 2014-12-05 01:44:10 +01:00
collections Issue #22609: Revert changes in UserDict. They conflicted with existing tests. 2014-11-27 17:46:15 +02:00
concurrent Issue #11271: concurrent.futures.Executor.map() now takes a *chunksize* 2014-10-04 20:20:10 +02:00
ctypes Issue #20160: broken ctypes calling convention on MSVC / 64-bit Windows (large structs) Patch by mattip 2014-11-05 19:30:30 -08:00
curses Fix docstring in curses (#16782) 2012-12-29 23:09:32 +02:00
dbm Issue #21729: Used the "with" statement in the dbm.dumb module to ensure 2014-06-25 20:37:30 +03:00
distutils Issue #8876: distutils now falls back to copying files when hard linking doesn't work. 2014-10-30 19:38:33 +01:00
email Merge: #21991: make headerregistry params property MappingProxyType. 2014-10-17 19:32:08 -04:00
encodings Issue #22406: Fixed the uu_codec codec incorrectly ported to 3.x. 2014-11-07 14:06:19 +02:00
ensurepip Upgrade setuptools to 7.0 2014-11-11 11:01:09 -05:00
html #21047: set the default value for the *convert_charrefs* argument of HTMLParser to True. Patch by Berker Peksag. 2014-08-02 18:36:12 +03:00
http Issue #21032. Fixed socket leak if HTTPConnection.getresponse() fails. 2014-12-01 13:10:12 +02:00
idlelib Fixed IDLE tests after changing re error messages (issue #22578). 2014-11-10 14:18:03 +02:00
importlib - Issue #22966: Fix __pycache__ pyc file name clobber when pyc_compile is 2014-12-01 17:52:43 -05:00
json Issue #21650: Add an --sort-keys option to json.tool CLI. 2014-11-10 09:56:54 +02:00
lib2to3 Issue #22173: Update lib2to3 tests to use unittest test discovery. 2014-10-29 12:24:59 -05:00
logging merge 3.4 (#22788) 2014-11-23 20:38:13 -06:00
msilib Issue #17047: remove doubled words found in 2.7 to 3.4 Lib/*, 2013-03-11 17:57:08 -04:00
multiprocessing Simplify code in multiprocessing.Connection.send_bytes(). 2014-07-31 18:41:57 -04:00
plat-aix4
plat-darwin
plat-freebsd4
plat-freebsd5
plat-freebsd6
plat-freebsd7
plat-freebsd8
plat-generic - Issue #17086: Backport the patches from the 3.3 branch to cross-build 2013-01-31 23:52:03 +01:00
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-sunos5
plat-unixware7
pydoc_data Update pydoc topics and fix supsicious markup for 3.4.2 final. 2014-10-05 19:03:48 -07:00
site-packages
sqlite3 Issue #21147: sqlite3 now raises an exception if the request contains a null 2014-09-11 13:29:05 +03:00
test (Merge 3.4) Issue #22599: Enhance tokenize.open() to be able to call it during 2014-12-05 10:18:30 +01:00
tkinter Issue #22769: Fixed ttk.Treeview.tag_has() when called without arguments. 2014-11-07 12:03:09 +02:00
turtledemo De-'colour'ize stdlib except for idlelib.configDialog. 2014-10-09 18:44:32 -04:00
unittest Issue #22894: TestCase.subTest() would cause the test suite to be stopped when in failfast mode, even in the absence of failures. 2014-11-23 15:56:41 +01:00
urllib Close #19494: add urrlib.request.HTTPBasicPriorAuthHandler 2014-11-12 23:33:50 +10:00
venv Issue #21663: Fixed error caused by trying to create an existing directory. 2014-06-05 09:31:20 +01:00
wsgiref Merge from 3.4 2014-09-17 16:32:46 +08:00
xml Removed duplicated words in in comments and docs. 2014-12-01 18:30:14 +02:00
xmlrpc merge 3.4 (#22960) 2014-11-29 23:34:30 -05: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
_bootlocale.py Fix wrong exception in _bootlocale (apparently this error condition is never triggered) 2013-10-12 15:00:44 +02:00
_collections_abc.py Issue #22609: Constructors and update methods of mapping classes in the 2014-11-27 16:35:26 +02:00
_compat_pickle.py Fix issue #19834: Support unpickling of exceptions pickled by Python 2. 2013-12-02 11:41:01 +01:00
_dummy_thread.py Issue 21137: Better repr for threading.Lock() 2014-05-25 18:22:35 -07: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 #21811: Anticipated fixes to 3.x and 2.7 for OS X 10.10 Yosemite. 2014-06-25 13:36:14 -07:00
_pydecimal.py Issue #19232: Fix sys.modules lookup (--without-threads) 2014-10-12 13:29:15 +02:00
_pyio.py Issue #22869: Split pythonrun into two modules 2014-11-20 21:39:37 +10:00
_sitebuiltins.py #9364: Improve the text printed by help(pydoc) and help(help). 2014-04-19 12:59:30 -04:00
_strptime.py Issue #22823: Use set literals instead of creating a set from a list 2014-11-09 15:56:33 -08:00
_threading_local.py
_weakrefset.py Issue #20006: Fix sporadic failures in test_weakset. 2013-12-18 00:28:36 +01:00
abc.py Issue #22032: __qualname__ instead of __name__ is now always used to format 2014-07-22 15:00:37 +03:00
aifc.py Issue #19623: Fixed writing to unseekable files in the aifc module. 2013-12-14 20:42:22 +02:00
antigravity.py
argparse.py Closes #22675: fix typo. 2014-10-20 08:36:02 +02:00
ast.py create NameConstant AST class for None, True, and False literals (closes #16619) 2012-12-06 17:41:04 -05:00
asynchat.py (Merge 3.4) Issue #16133: The asynchat.async_chat.handle_read() method now 2014-07-24 19:00:28 +02:00
asyncore.py Issue #22823: Use set literals instead of creating a set from a list 2014-11-09 15:56:33 -08:00
base64.py Issue #20879: Delay the initialization of encoding and decoding tables for 2014-03-17 22:38:41 +01:00
bdb.py Better behavior when stepping over yield[from]. Fixes issue 16596. By Xavier de Gaye. 2013-11-21 11:30:06 -08:00
binhex.py remove unused imports (closes #12432) 2011-06-28 10:25:04 -05:00
bisect.py Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a) 2013-07-04 17:43:24 -04:00
bz2.py Closes #19839: Fix regression in bz2 module's handling of non-bzip2 data at EOF. 2013-12-04 23:29:51 +01:00
calendar.py #18705: fix a number of typos. Patch by Févry Thibault. 2013-08-17 15:50:46 +03:00
cgi.py remove unused argument (closes #21135) 2014-04-03 10:22:10 -04:00
cgitb.py merge #12890: don't emit <p> tags in text mode when logdir specified. 2012-10-27 14:55:25 -04:00
chunk.py Replace IOError with OSError (#16715) 2012-12-25 16:47:37 +02:00
cmd.py Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a) 2013-07-04 17:43:24 -04:00
code.py #17442: Add chained traceback support to InteractiveInterpreter. 2014-09-29 11:25:00 -04:00
codecs.py Issue #19676: Added the "namereplace" error handler. 2014-11-25 13:57:17 +02:00
codeop.py
colorsys.py Issue #14323: Expanded the number of digits in the coefficients for the 2013-08-06 11:51:23 +03:00
compileall.py Issue #21338: Add silent mode for compileall. 2014-10-15 11:10:57 +03:00
configparser.py Closes #18159: ConfigParser getters not available on SectionProxy 2014-09-15 02:08:41 -07:00
contextlib.py Issue #22389: Add contextlib.redirect_stderr(). 2014-11-28 23:28:06 +02:00
copy.py improve idioms (closes #20642) 2014-05-03 20:22:00 -04:00
copyreg.py Issue #17810: Implement PEP 3154, pickle protocol 4. 2013-11-23 18:59:12 +01:00
cProfile.py Fix #17197: profile/cProfile modules refactored so that code of run() and runctx() utility functions is not duplicated in both modules. 2013-02-25 11:36:40 +01:00
crypt.py Issue #18405: Improve the entropy of crypt.mksalt(). 2013-08-14 01:39:14 +02:00
csv.py #19449: Handle non-string keys when generating 'fieldnames' error. 2013-11-19 13:16:20 -05:00
datetime.py Closes issue #20858: Enhancements/fixes to pure-python datetime module 2014-09-28 19:11:56 -04:00
decimal.py Whitespace. 2014-09-10 18:00:46 +02:00
difflib.py Use two-argument form of next() and use a return-statement instead of an explicit raise StopIteration 2014-08-03 22:49:07 -07:00
dis.py Issue #21947: handle generator-iterator objects in dis 2014-07-25 23:02:56 +10:00
doctest.py Issue #22033: Reprs of most Python implemened classes now contain actual 2014-07-25 23:36:00 +03:00
dummy_threading.py
enum.py Issue22506: remove name & value from __dir__ as they now show up automatically 2014-10-21 13:40:35 -07:00
filecmp.py shallow defaults to 'True' not '1' (closes #21355) 2014-04-26 13:36:21 -04:00
fileinput.py Issue #21075: fileinput.FileInput now reads bytes from standard stream if 2014-05-14 21:08:33 +03:00
fnmatch.py Set cache sizes to a power-of-two 2013-02-17 01:33:37 -08:00
formatter.py Issue #19165: The formatter module graduates to full deprecation. 2014-03-21 10:52:33 -04:00
fractions.py #22464: Speed up common Fraction operations by special-casing several 2014-09-24 08:37:55 +02:00
ftplib.py merge 3.4 (#22921) 2014-11-23 17:06:39 -06:00
functools.py merge 2014-08-12 12:45:28 -07:00
genericpath.py Issue #21883: os.path.join() and os.path.relpath() now raise a TypeError with 2014-10-04 14:58:43 +03:00
getopt.py Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a) 2013-07-04 17:43:24 -04:00
getpass.py #21169: add comment and doc update for getpass change. 2014-04-14 10:28:58 -04:00
gettext.py Issue #18216: gettext now raises an error when a .mo file has an unsupported major version number. Patch by Aaron Hill. 2014-10-28 20:17:51 +01:00
glob.py Issue #13968: The glob module now supports recursive search in 2014-09-11 12:17:37 +03:00
gzip.py Issue #20875: Merge from 3.3 2014-03-09 14:47:58 -07:00
hashlib.py Removed duplicated words in in comments and docs. 2014-12-01 18:28:43 +02:00
heapq.py Issue #22186: Fix typos in Lib/. 2014-10-19 18:07:05 +03:00
hmac.py Issue #18775: Add name and block_size attribute to HMAC object. They now 2013-11-20 17:35:06 +01:00
imaplib.py merge 3.4 (#22921) 2014-11-23 17:06:39 -06:00
imghdr.py #20295: Teach imghdr to recognize OpenEXR format images. 2014-06-26 12:27:57 -04:00
imp.py Issue #20383: Introduce importlib.util.module_from_spec(). 2014-05-30 14:55:29 -04:00
inspect.py Issue #22186: Fix typos in Lib/. 2014-10-19 18:07:05 +03:00
io.py #21225: copy docstrings from base classes 2014-04-25 09:29:30 -04:00
ipaddress.py PEP 479: Use the return-keyword instead of raising StopIteration inside a generators. 2014-11-22 22:14:41 -08:00
keyword.py 17830: preserve line endings of original file when updating keywords. 2013-04-25 12:01:36 -04:00
linecache.py Replace IOError with OSError (#16715) 2012-12-25 16:47:37 +02:00
locale.py Issue #13918: Provide a locale.delocalize() function which can remove 2014-10-23 22:52:31 +02:00
lzma.py Closes #19839: Fix regression in bz2 module's handling of non-bzip2 data at EOF. 2013-12-04 23:29:51 +01:00
macpath.py Issue #21883: os.path.join() and os.path.relpath() now raise a TypeError with 2014-10-04 14:58:43 +03:00
macurl2path.py Increase the coverage of macurl2path. Patch by Colin Williams. 2013-10-23 21:50:56 -07:00
mailbox.py PEP 479: Use the return-keyword instead of raising StopIteration inside a generators. 2014-11-22 22:14:41 -08:00
mailcap.py Issue #20331: Fixed possible FD leaks in various modules: 2014-01-25 19:43:56 +02:00
mimetypes.py Issue #20331: Fixed possible FD leaks in various modules: 2014-01-25 19:43:56 +02:00
modulefinder.py Issue #21707: Add missing kwonlyargcount argument to ModuleFinder.replace_paths_in_code(). 2014-07-07 14:58:12 +03:00
netrc.py Merge #14984: only import pwd on POSIX. 2013-09-18 08:59:47 -04:00
nntplib.py don't require OpenSSL SNI to pass hostname to ssl functions (#22921) 2014-11-23 17:04:34 -06:00
ntpath.py Fixed tests on Windows for issue #21883. 2014-10-04 16:09:02 +03:00
nturl2path.py Replace IOError with OSError (#16715) 2012-12-25 16:47:37 +02:00
numbers.py Update docstring with more useful text (from the PEP) 2012-02-26 01:37:47 +01:00
opcode.py PEP 465: a dedicated infix operator for matrix multiplication (closes #21176) 2014-04-09 23:55:56 -04:00
operator.py PEP 465: a dedicated infix operator for matrix multiplication (closes #21176) 2014-04-09 23:55:56 -04:00
optparse.py Issue #20315: Removed support for backward compatibility with early 2.x versions. 2014-01-20 21:29:31 +02:00
os.py os: Include posix functions in os.__all__. Closes issue #18554. 2014-09-26 12:33:06 -04:00
pathlib.py Close #22370: Windows detection in pathlib is now more robust. 2014-11-19 00:33:08 +01:00
pdb.py Issue #22186: Fix typos in Lib/. 2014-10-19 18:07:05 +03:00
pickle.py Issue #21905: Avoid RuntimeError in pickle.whichmodule() when sys.modules is mutated while iterating. 2014-10-04 22:15:27 +02:00
pickletools.py Issue #6784: Strings from Python 2 can now be unpickled as bytes objects. 2013-12-07 01:09:27 -08:00
pipes.py Merge doc changes from 3.2 (#10454, #12298) 2011-09-02 00:03:20 +02:00
pkgutil.py Issue #20383: Introduce importlib.util.module_from_spec(). 2014-05-30 14:55:29 -04:00
platform.py Issue #20976: pyflakes: Remove unused imports 2014-03-20 09:16:38 +01:00
plistlib.py Issue #21888: plistlib's load() and loads() now work if the fmt parameter is 2014-07-23 18:49:31 +03:00
poplib.py don't require OpenSSL SNI to pass hostname to ssl functions (#22921) 2014-11-23 17:04:34 -06:00
posixpath.py Fixed tests on Windows for issue #21883. 2014-10-04 16:09:02 +03:00
pprint.py Remove builtin "caching" in pprint 2013-10-03 21:29:36 +02:00
profile.py Fix #17197: profile/cProfile modules refactored so that code of run() and runctx() utility functions is not duplicated in both modules. 2013-02-25 11:36:40 +01:00
pstats.py Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a) 2013-07-04 17:43:24 -04:00
pty.py Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a) 2013-07-04 17:43:24 -04:00
py_compile.py Issue #17222: fix a mix-up in some exception messages. 2013-06-17 17:48:30 -04:00
pyclbr.py Issue 19944: Fix importlib.find_spec() so it imports parents as needed. 2014-01-25 15:32:46 -07:00
pydoc.py Issue #22314: pydoc now works when the LINES environment variable is set. 2014-11-28 00:11:07 +02:00
queue.py Issue #22043: time.monotonic() is now always available 2014-09-02 23:18:25 +02:00
quopri.py Correct the quopri module documentation. Mention the correct types of the 2014-06-25 01:12:03 -07:00
random.py merge 2014-05-25 17:28:38 -07:00
re.py merge 3.4 (#9179) 2014-11-30 11:51:16 -05:00
reprlib.py Issue #22824: Simplify reprlib output format for empty arrays 2014-11-15 10:58:58 -08:00
rlcompleter.py #18705: merge with 3.3. 2013-08-17 15:53:55 +03:00
runpy.py Issue #20383: Introduce importlib.util.module_from_spec(). 2014-05-30 14:55:29 -04:00
sched.py Issue #22043: time.monotonic() is now always available 2014-09-02 23:18:25 +02:00
selectors.py Fix issue 18931: selectors module now supports /dev/poll on Solaris. 2014-03-20 21:43:41 +01:00
shelve.py Add spaces to follow PEP8. 2012-10-06 18:38:30 +03:00
shlex.py #18853: Fix resource warning in shlex's __main__ section. 2014-10-17 20:28:47 -04:00
shutil.py Issue #21280: Fixed a bug in shutil.make_archive() when create an archive of 2014-11-28 00:49:50 +02:00
signal.py Issue #21076: sigpending() is not available on Windows 2014-04-04 16:57:24 +02:00
site.py Issue #21711: support for "site-python" directories has now been removed from the site module (it was deprecated in 3.4). 2014-06-12 19:41:30 -04:00
smtpd.py #21725: Add RFC 6531 (SMTPUTF8) support to smtpd. 2014-08-09 16:40:49 -04:00
smtplib.py merge 3.4 (#22921) 2014-11-23 17:06:39 -06:00
sndhdr.py #18615: Make sndhdr return namedtuples. 2014-10-09 16:59:30 -04:00
socket.py Issue #20604: Added missed invalid mode in error message of socket.makefile(). 2014-11-19 12:34:07 +02:00
socketserver.py Issue #22186: Fix typos in Lib/. 2014-10-19 18:07:05 +03:00
sre_compile.py Minor code clean up and improvements in the re module. 2014-11-11 21:13:28 +02:00
sre_constants.py Removed unused function linecol() (added in issue #22578 by mistake). 2014-12-01 11:25:21 +02:00
sre_parse.py Issue #21032: Deprecated the use of re.LOCALE flag with str patterns or 2014-12-01 11:50:07 +02:00
ssl.py Issue #21356: Make ssl.RAND_egd() optional to support LibreSSL. The 2014-11-28 13:28:25 +01:00
stat.py Issue #21741: Add st_file_attributes to os.stat_result on Windows. 2014-06-19 09:46:37 -05:00
statistics.py Issue #22823: Use set literals instead of creating a set from a list 2014-11-09 15:56:33 -08:00
string.py Issue #13598: Add auto-numbering of replacement fields to string.Formatter. 2014-04-14 16:43:50 -04:00
stringprep.py
struct.py Issue #17804: New function `struct.iter_unpack` allows for streaming struct unpacking. 2013-04-27 00:20:04 +02:00
subprocess.py Issue #21332: Ensure that `bufsize=1` in subprocess.Popen() selects line buffering, rather than block buffering. 2014-09-21 21:15:42 +02:00
sunau.py Issue #16685: Added support for writing any bytes-like objects in the aifc, 2013-11-16 14:01:31 +02:00
symbol.py remain symbol.main to symbol._main mirroring token.py 2013-02-05 10:13:22 -05:00
symtable.py merge 3.3 (#19393) 2013-10-26 13:22:08 -04:00
sysconfig.py Issue #19760: Silence sysconfig's 'SO' key deprecation warnings in tests. 2013-11-26 17:08:24 +02:00
tabnanny.py Replace IOError with OSError (#16715) 2012-12-25 16:47:37 +02:00
tarfile.py Issue #21549: Added the "members" parameter to TarFile.list(). 2014-08-21 10:01:16 +03:00
telnetlib.py Issue #22043: time.monotonic() is now always available 2014-09-02 23:18:25 +02:00
tempfile.py tempfile: Fix docstring. Issue #21397, patch by R. David Murray. 2014-09-26 17:08:21 -04:00
textwrap.py Add shorten to __all_ (issues #18585 and #18725). 2013-10-16 13:07:53 +03:00
this.py
threading.py Merge: #11866: Eliminate race condition in the computation of names for new threads. 2014-10-04 17:45:15 -04:00
timeit.py Issue #2527: Add a *globals* argument to timeit functions, in order to override the globals namespace in which the timed code is executed. 2014-08-22 23:13:50 -04:00
token.py PEP 465: a dedicated infix operator for matrix multiplication (closes #21176) 2014-04-09 23:55:56 -04:00
tokenize.py (Merge 3.4) Issue #22599: Enhance tokenize.open() to be able to call it during 2014-12-05 10:18:30 +01:00
trace.py Issue #22043: time.monotonic() is now always available 2014-09-02 23:18:25 +02:00
traceback.py Issue #22032: __qualname__ instead of __name__ is now always used to format 2014-07-22 15:00:37 +03:00
tracemalloc.py tracemalloc: filter_traces() raises a TypeError if filters is not an iterable 2014-03-10 11:05:07 +01:00
tty.py
turtle.py Issue #22168: Prevent turtle AttributeError with non-default Canvas on OS X. 2014-09-13 23:39:16 -07:00
types.py Close #19030: inspect.getmembers and inspect.classify_class_attrs 2013-10-18 00:27:39 -07:00
uu.py
uuid.py Issue #22902: The "ip" command is now used on Linux to determine MAC address 2014-11-30 20:39:04 +02:00
warnings.py Issue #4180: The warnings registries are now reset when the filters are modified. 2014-09-18 02:42:05 +02:00
wave.py Issue #19641: Added the audioop.byteswap() function to convert big-endian 2013-11-23 22:26:01 +02:00
weakref.py Closes #21173: Fix len() on a WeakKeyDictionary when .clear() was called with an iterator alive. 2014-10-05 20:04:06 +02:00
webbrowser.py The webbrowser module now uses subprocess's start_new_session=True rather 2014-08-27 09:34:38 -07:00
xdrlib.py Issue #11694: Raise ConversionError in xdrlib as documented 2014-10-10 21:21:52 +03:00
zipfile.py Issue #14099: ZipFile.open() no longer reopen the underlying file. Objects 2014-12-03 09:14:36 +02:00