From: doko@ubuntu.com Date: Mon, 19 Oct 2015 12:13:35 +0000 (+0200) Subject: - Issue #25440: Fix output of python-config --extension-suffix. X-Git-Tag: v3.5.1rc1~149 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=12a72b06c7eebd6f1d310775c5d3afff142c1058;p=python - Issue #25440: Fix output of python-config --extension-suffix. --- 12a72b06c7eebd6f1d310775c5d3afff142c1058 diff --cc Misc/NEWS index 9bea8c48d7,260ee3ff09..c7f58076f3 --- a/Misc/NEWS +++ b/Misc/NEWS @@@ -1041,418 -1080,415 +1041,423 @@@ Documentatio Tools/Demos ----------- -- Issue #22314: pydoc now works when the LINES environment variable is set. - -Windows -------- ++<<<<<<< local +- Issue #24000: Improved Argument Clinic's mapping of converters to legacy + "format units". Updated the documentation to match. -- Issue #17896: The Windows build scripts now expect external library sources - to be in ``PCbuild\..\externals`` rather than ``PCbuild\..\..``. +- Issue #24001: Argument Clinic converters now use accept={type} + instead of types={'type'} to specify the types the converter accepts. -- Issue #17717: The Windows build scripts now use a copy of NASM pulled from - svn.python.org to build OpenSSL. ++======= ++- Issue #25440: Fix output of python-config --extension-suffix. + -- Issue #22644: The bundled version of OpenSSL has been updated to 1.0.1j. ++>>>>>>> other +- Issue #23330: h2py now supports arbitrary filenames in #include. +- Issue #24031: make patchcheck now supports git checkouts, too. -What's New in Python 3.4.2? -=========================== -Release date: 2014-10-06 +What's New in Python 3.5.0 alpha 4? +=================================== -Library -------- +Release date: 2015-04-19 -- Issue #10510: distutils register and upload methods now use HTML standards - compliant CRLF line endings. +Core and Builtins +----------------- -- Issue #9850: Fixed macpath.join() for empty first component. Patch by - Oleg Oshmyan. +- Issue #22980: Under Linux, GNU/KFreeBSD and the Hurd, C extensions now include + the architecture triplet in the extension name, to make it easy to test builds + for different ABIs in the same working tree. Under OS X, the extension name + now includes PEP 3149-style information. -- Issue #22427: TemporaryDirectory no longer attempts to clean up twice when - used in the with statement in generator. +- Issue #22631: Added Linux-specific socket constant CAN_RAW_FD_FRAMES. + Patch courtesy of Joe Jevnik. -- Issue #20912: Now directories added to ZIP file have correct Unix and MS-DOS - directory attributes. +- Issue #23731: Implement PEP 488: removal of .pyo files. -- Issue #21866: ZipFile.close() no longer writes ZIP64 central directory - records if allowZip64 is false. +- Issue #23726: Don't enable GC for user subclasses of non-GC types that + don't add any new fields. Patch by Eugene Toder. -- Issue #22415: Fixed debugging output of the GROUPREF_EXISTS opcode in the re - module. Removed trailing spaces in debugging output. +- Issue #23309: Avoid a deadlock at shutdown if a daemon thread is aborted + while it is holding a lock to a buffered I/O object, and the main thread + tries to use the same I/O object (typically stdout or stderr). A fatal + error is emitted instead. -- Issue #22423: Unhandled exception in thread no longer causes unhandled - AttributeError when sys.stderr is None. +- Issue #22977: Fixed formatting Windows error messages on Wine. + Patch by Martin Panter. -- Issue #21332: Ensure that ``bufsize=1`` in subprocess.Popen() selects - line buffering, rather than block buffering. Patch by Akira Li. +- Issue #23466: %c, %o, %x, and %X in bytes formatting now raise TypeError on + non-integer input. +- Issue #24044: Fix possible null pointer dereference in list.sort in out of + memory conditions. -What's New in Python 3.4.2rc1? -============================== +- Issue #21354: PyCFunction_New function is exposed by python DLL again. -Release date: 2014-09-22 +Library +------- -Core and Builtins ------------------ +- Issue #23840: tokenize.open() now closes the temporary binary file on error + to fix a resource warning. -- Issue #22258: Fix the the internal function set_inheritable() on Illumos. - This platform exposes the function ``ioctl(FIOCLEX)``, but calling it fails - with errno is ENOTTY: "Inappropriate ioctl for device". set_inheritable() - now falls back to the slower ``fcntl()`` (``F_GETFD`` and then ``F_SETFD``). +- Issue #16914: new debuglevel 2 in smtplib adds timestamps to debug output. -- Issue #21669: With the aid of heuristics in SyntaxError.__init__, the - parser now attempts to generate more meaningful (or at least more search - engine friendly) error messages when "exec" and "print" are used as - statements. +- Issue #7159: urllib.request now supports sending auth credentials + automatically after the first 401. This enhancement is a superset of the + enhancement from issue #19494 and supersedes that change. -- Issue #21642: In the conditional if-else expression, allow an integer written - with no space between itself and the ``else`` keyword (e.g. ``True if 42else - False``) to be valid syntax. +- Issue #23703: Fix a regression in urljoin() introduced in 901e4e52b20a. + Patch by Demian Brecht. -- Issue #21523: Fix over-pessimistic computation of the stack effect of - some opcodes in the compiler. This also fixes a quadratic compilation - time issue noticeable when compiling code with a large number of "and" - and "or" operators. +- Issue #4254: Adds _curses.update_lines_cols() Patch by Arnon Yaari -Library -------- +- Issue #19933: Provide default argument for ndigits in round. Patch by + Vajrasky Kok. -- Issue #21091: Fix API bug: email.message.EmailMessage.is_attachment is now - a method. Since EmailMessage is provisional, we can change the API in a - maintenance release, but we use a trick to remain backward compatible with - 3.4.0/1. +- Issue #23193: Add a numeric_owner parameter to + tarfile.TarFile.extract and tarfile.TarFile.extractall. Patch by + Michael Vogt and Eric Smith. -- Issue #21079: Fix email.message.EmailMessage.is_attachment to return the - correct result when the header has parameters as well as a value. +- Issue #23342: Add a subprocess.run() function than returns a CalledProcess + instance for a more consistent API than the existing call* functions. -- Issue #22247: Add NNTPError to nntplib.__all__. +- Issue #21217: inspect.getsourcelines() now tries to compute the start and end + lines from the code object, fixing an issue when a lambda function is used as + decorator argument. Patch by Thomas Ballinger and Allison Kaptur. -- Issue #4180: The warnings registries are now reset when the filters - are modified. +- Issue #24521: Fix possible integer overflows in the pickle module. -- Issue #22419: Limit the length of incoming HTTP request in wsgiref server to - 65536 bytes and send a 414 error code for higher lengths. Patch contributed - by Devin Cook. +- Issue #22931: Allow '[' and ']' in cookie values. -- Lax cookie parsing in http.cookies could be a security issue when combined - with non-standard cookie handling in some Web browsers. Reported by - Sergey Bobrov. +- The keywords attribute of functools.partial is now always a dictionary. -- Issue #22384: An exception in Tkinter callback no longer crashes the program - when it is run with pythonw.exe. +- Issue #23811: Add missing newline to the PyCompileError error message. + Patch by Alex Shkop. -- Issue #22168: Prevent turtle AttributeError with non-default Canvas on OS X. +- Issue #21116: Avoid blowing memory when allocating a multiprocessing shared + array that's larger than 50% of the available RAM. Patch by Médéric Boquien. -- Issue #21147: sqlite3 now raises an exception if the request contains a null - character instead of truncate it. Based on patch by Victor Stinner. +- Issue #22982: Improve BOM handling when seeking to multiple positions of + a writable text file. -- Issue #21951: Fixed a crash in Tkinter on AIX when called Tcl command with - empty string or tuple argument. +- Issue #23464: Removed deprecated asyncio JoinableQueue. -- Issue #21951: Tkinter now most likely raises MemoryError instead of crash - if the memory allocation fails. +- Issue #23529: Limit the size of decompressed data when reading from + GzipFile, BZ2File or LZMAFile. This defeats denial of service attacks + using compressed bombs (i.e. compressed payloads which decompress to a huge + size). Patch by Martin Panter and Nikolaus Rath. -- Issue #22338: Fix a crash in the json module on memory allocation failure. +- Issue #21859: Added Python implementation of io.FileIO. -- Issue #22226: First letter no longer is stripped from the "status" key in - the result of Treeview.heading(). - -- Issue #19524: Fixed resource leak in the HTTP connection when an invalid - response is received. Patch by Martin Panter. - -- Issue #22051: turtledemo no longer reloads examples to re-run them. - Initialization of variables and gui setup should be done in main(), - which is called each time a demo is run, but not on import. +- Issue #23865: close() methods in multiple modules now are idempotent and more + robust at shutdown. If they need to release multiple resources, all are + released even if errors occur. -- Issue #21933: Turtledemo users can change the code font size with a menu - selection or control(command) '-' or '+' or control-mousewheel. - Original patch by Lita Cho. +- Issue #23400: Raise same exception on both Python 2 and 3 if sem_open is not + available. Patch by Davin Potts. -- Issue #21597: The separator between the turtledemo text pane and the drawing - canvas can now be grabbed and dragged with a mouse. The code text pane can - be widened to easily view or copy the full width of the text. The canvas - can be widened on small screens. Original patches by Jan Kanis and Lita Cho. +- Issue #10838: The subprocess now module includes SubprocessError and + TimeoutError in its list of exported names for the users wild enough + to use ``from subprocess import *``. -- Issue #18132: Turtledemo buttons no longer disappear when the window is - shrunk. Original patches by Jan Kanis and Lita Cho. +- Issue #23411: Added DefragResult, ParseResult, SplitResult, DefragResultBytes, + ParseResultBytes, and SplitResultBytes to urllib.parse.__all__. + Patch by Martin Panter. -- Issue #22216: smtplib now resets its state more completely after a quit. The - most obvious consequence of the previous behavior was a STARTTLS failure - during a connect/starttls/quit/connect/starttls sequence. +- Issue #23881: urllib.request.ftpwrapper constructor now closes the socket if + the FTP connection failed to fix a ResourceWarning. -- Issue #22185: Fix an occasional RuntimeError in threading.Condition.wait() - caused by mutation of the waiters queue without holding the lock. Patch - by Doug Zongker. +- Issue #23853: :meth:`socket.socket.sendall` does no more reset the socket + timeout each time data is sent successfuly. The socket timeout is now the + maximum total duration to send all data. -- Issue #22182: Use e.args to unpack exceptions correctly in - distutils.file_util.move_file. Patch by Claudiu Popa. +- Issue #22721: An order of multiline pprint output of set or dict containing + orderable and non-orderable elements no longer depends on iteration order of + set or dict. -- The webbrowser module now uses subprocess's start_new_session=True rather - than a potentially risky preexec_fn=os.setsid call. +- Issue #15133: _tkinter.tkapp.getboolean() now supports Tcl_Obj and always + returns bool. tkinter.BooleanVar now validates input values (accepted bool, + int, str, and Tcl_Obj). tkinter.BooleanVar.get() now always returns bool. -- Issue #22236: Fixed Tkinter images copying operations in NoDefaultRoot mode. +- Issue #10590: xml.sax.parseString() now supports string argument. -- Issue #22191: Fix warnings.__all__. +- Issue #23338: Fixed formatting ctypes error messages on Cygwin. + Patch by Makoto Kato. -- Issue #15696: Add a __sizeof__ implementation for mmap objects on Windows. +- Issue #15582: inspect.getdoc() now follows inheritance chains. -- Issue #22068: Avoided reference loops with Variables and Fonts in Tkinter. +- Issue #2175: SAX parsers now support a character stream of InputSource object. -- Issue #22165: SimpleHTTPRequestHandler now supports undecodable file names. +- Issue #16840: Tkinter now supports 64-bit integers added in Tcl 8.4 and + arbitrary precision integers added in Tcl 8.5. -- Issue #8797: Raise HTTPError on failed Basic Authentication immediately. - Initial patch by Sam Bull. +- Issue #23834: Fix socket.sendto(), use the C Py_ssize_t type to store the + result of sendto() instead of the C int type. -- Issue #20729: Restored the use of lazy iterkeys()/itervalues()/iteritems() - in the mailbox module. +- Issue #23618: :meth:`socket.socket.connect` now waits until the connection + completes instead of raising :exc:`InterruptedError` if the connection is + interrupted by signals, signal handlers don't raise an exception and the + socket is blocking or has a timeout. :meth:`socket.socket.connect` still + raise :exc:`InterruptedError` for non-blocking sockets. -- Issue #21448: Changed FeedParser feed() to avoid O(N**2) behavior when - parsing long line. Original patch by Raymond Hettinger. +- Issue #21526: Tkinter now supports new boolean type in Tcl 8.5. -- Issue #22184: The functools LRU Cache decorator factory now gives an earlier - and clearer error message when the user forgets the required parameters. +- Issue #23836: Fix the faulthandler module to handle reentrant calls to + its signal handlers. -- Issue #17923: glob() patterns ending with a slash no longer match non-dirs on - AIX. Based on patch by Delhallt. +- Issue #23838: linecache now clears the cache and returns an empty result on + MemoryError. -- Issue #21121: Don't force 3rd party C extensions to be built with - -Werror=declaration-after-statement. +- Issue #10395: Added os.path.commonpath(). Implemented in posixpath and ntpath. + Based on patch by Rafik Draoui. -- Issue #21975: Fixed crash when using uninitialized sqlite3.Row (in particular - when unpickling pickled sqlite3.Row). sqlite3.Row is now initialized in the - __new__() method. +- Issue #23611: Serializing more "lookupable" objects (such as unbound methods + or nested classes) now are supported with pickle protocols < 4. -- Issue #21580: Now Tkinter correctly handles bytes arguments passed to Tk. - In particular this allows to initialize images from binary data. +- Issue #13583: sqlite3.Row now supports slice indexing. -- Issue #17172: Make turtledemo start as active on OS X even when run with - subprocess. Patch by Lita Cho. +- Issue #18473: Fixed 2to3 and 3to2 compatible pickle mappings. Fixed + ambigious reverse mappings. Added many new mappings. Import mapping is no + longer applied to modules already mapped with full name mapping. -- Issue #21704: Fix build error for _multiprocessing when semaphores - are not available. Patch by Arfrever Frehtes Taifersar Arahesis. +- Issue #23485: select.select() is now retried automatically with the + recomputed timeout when interrupted by a signal, except if the signal handler + raises an exception. This change is part of the PEP 475. -- Fix repr(_socket.socket) on Windows 64-bit: don't fail with OverflowError - on closed socket. repr(socket.socket) already works fine. +- Issue #23752: When built from an existing file descriptor, io.FileIO() now + only calls fstat() once. Before fstat() was called twice, which was not + necessary. -- Issue #16133: The asynchat.async_chat.handle_read() method now ignores - BlockingIOError exceptions. +- Issue #23704: collections.deque() objects now support __add__, __mul__, and + __imul__(). -- Issue #22044: Fixed premature DECREF in call_tzinfo_method. - Patch by Tom Flanagan. +- Issue #23171: csv.Writer.writerow() now supports arbitrary iterables. -- Issue #19884: readline: Disable the meta modifier key if stdout is not - a terminal to not write the ANSI sequence "\033[1034h" into stdout. This - sequence is used on some terminal (ex: TERM=xterm-256color") to enable - support of 8 bit characters. +- Issue #23745: The new email header parser now handles duplicate MIME + parameter names without error, similar to how get_param behaves. -- Issue #21888: plistlib's load() and loads() now work if the fmt parameter is - specified. +- Issue #22117: Fix os.utime(), it now rounds the timestamp towards minus + infinity (-inf) instead of rounding towards zero. -- Issue #21044: tarfile.open() now handles fileobj with an integer 'name' - attribute. Based on patch by Antoine Pietri. +- Issue #23310: Fix MagicMock's initializer to work with __methods__, just + like configure_mock(). Patch by Kasia Jachim. -- Issue #21867: Prevent turtle crash due to invalid undo buffer size. +Build +----- -- Issue #19076: Don't pass the redundant 'file' argument to self.error(). +- Issue #23817: FreeBSD now uses "1.0" the the SOVERSION as other operating + systems, instead of just "1". -- Issue #21942: Fixed source file viewing in pydoc's server mode on Windows. +- Issue #23501: Argument Clinic now generates code into separate files by default. -- Issue #11259: asynchat.async_chat().set_terminator() now raises a ValueError - if the number of received bytes is negative. +Tests +----- -- Issue #12523: asynchat.async_chat.push() now raises a TypeError if it doesn't - get a bytes string +- Issue #23799: Added test.support.start_threads() for running and + cleaning up multiple threads. -- Issue #21707: Add missing kwonlyargcount argument to - ModuleFinder.replace_paths_in_code(). +- Issue #22390: test.regrtest now emits a warning if temporary files or + directories are left after running a test. -- Issue #20639: calling Path.with_suffix('') allows removing the suffix - again. Patch by July Tikhonov. +Tools/Demos +----------- -- Issue #21714: Disallow the construction of invalid paths using - Path.with_name(). Original patch by Antony Lee. +- Issue #18128: pygettext now uses standard +NNNN format in the + POT-Creation-Date header. -- Issue #21897: Fix a crash with the f_locals attribute with closure - variables when frame.clear() has been called. +- Issue #23935: Argument Clinic's understanding of format units + accepting bytes, bytearrays, and buffers is now consistent with + both the documentation and the implementation. -- Issue #21151: Fixed a segfault in the winreg module when ``None`` is passed - as a ``REG_BINARY`` value to SetValueEx. Patch by John Ehresman. +- Issue #23944: Argument Clinic now wraps long impl prototypes at column 78. -- Issue #21090: io.FileIO.readall() does not ignore I/O errors anymore. Before, - it ignored I/O errors if at least the first C call read() succeed. +- Issue #20586: Argument Clinic now ensures that functions without docstrings + have signatures. -- Issue #21781: ssl.RAND_add() now supports strings longer than 2 GB. +- Issue #23492: Argument Clinic now generates argument parsing code with + PyArg_Parse instead of PyArg_ParseTuple if possible. -- Issue #11453: asyncore: emit a ResourceWarning when an unclosed file_wrapper - object is destroyed. The destructor now closes the file if needed. The - close() method can now be called twice: the second call does nothing. +- Issue #23500: Argument Clinic is now smarter about generating the "#ifndef" + (empty) definition of the methoddef macro: it's only generated once, even + if Argument Clinic processes the same symbol multiple times, and it's emitted + at the end of all processing rather than immediately after the first use. -- Issue #21858: Better handling of Python exceptions in the sqlite3 module. +C API +----- -- Issue #21476: Make sure the email.parser.BytesParser TextIOWrapper is - discarded after parsing, so the input file isn't unexpectedly closed. +- Issue #23998: PyImport_ReInitLock() now checks for lock allocation error -- Issue #21729: Used the "with" statement in the dbm.dumb module to ensure - files closing. Patch by Claudiu Popa. -- Issue #21491: socketserver: Fix a race condition in child processes reaping. +What's New in Python 3.5.0 alpha 3? +=================================== -- Issue #21832: Require named tuple inputs to be exact strings. +Release date: 2015-03-28 -- Issue #19145: The times argument for itertools.repeat now handles - negative values the same way for keyword arguments as it does for - positional arguments. +Core and Builtins +----------------- -- Issue #21812: turtle.shapetransform did not tranform the turtle on the - first call. (Issue identified and fixed by Lita Cho.) +- Issue #23573: Increased performance of string search operations (str.find, + str.index, str.count, the in operator, str.split, str.partition) with + arguments of different kinds (UCS1, UCS2, UCS4). -- Issue #21635: The difflib SequenceMatcher.get_matching_blocks() method - cache didn't match the actual result. The former was a list of tuples - and the latter was a list of named tuples. +- Issue #23753: Python doesn't support anymore platforms without stat() or + fstat(), these functions are always required. -- Issue #21722: The distutils "upload" command now exits with a non-zero - return code when uploading fails. Patch by Martin Dengler. +- Issue #23681: The -b option now affects comparisons of bytes with int. -- Issue #21723: asyncio.Queue: support any type of number (ex: float) for the - maximum size. Patch written by Vajrasky Kok. +- Issue #23632: Memoryviews now allow tuple indexing (including for + multi-dimensional memoryviews). -- Issue #21326: Add a new is_closed() method to asyncio.BaseEventLoop. - run_forever() and run_until_complete() methods of asyncio.BaseEventLoop now - raise an exception if the event loop was closed. +- Issue #23192: Fixed generator lambdas. Patch by Bruno Cauet. -- Issue #21774: Fixed NameError for an incorrect variable reference in the - XML Minidom code for creating processing instructions. - (Found and fixed by Claudiu Popa.) +- Issue #23629: Fix the default __sizeof__ implementation for variable-sized + objects. -- Issue #21766: Prevent a security hole in CGIHTTPServer by URL unquoting paths - before checking for a CGI script at that path. +Library +------- -- Issue #21310: Fixed possible resource leak in failed open(). +- Issue #14260: The groupindex attribute of regular expression pattern object + now is non-modifiable mapping. -- Issue #21677: Fixed chaining nonnormalized exceptions in io close() methods. +- Issue #23792: Ignore KeyboardInterrupt when the pydoc pager is active. + This mimics the behavior of the standard unix pagers, and prevents + pipepager from shutting down while the pager itself is still running. -- Issue #11709: Fix the pydoc.help function to not fail when sys.stdin is not a - valid file. +- Issue #23775: pprint() of OrderedDict now outputs the same representation + as repr(). -- Issue #13223: Fix pydoc.writedoc so that the HTML documentation for methods - that use 'self' in the example code is generated correctly. +- Issue #23765: Removed IsBadStringPtr calls in ctypes -- Issue #21463: In urllib.request, fix pruning of the FTP cache. +- Issue #22364: Improved some re error messages using regex for hints. -- Issue #21618: The subprocess module could fail to close open fds that were - inherited by the calling process and already higher than POSIX resource - limits would otherwise allow. On systems with a functioning /proc/self/fd - or /dev/fd interface the max is now ignored and all fds are closed. +- Issue #23742: ntpath.expandvars() no longer loses unbalanced single quotes. -- Issue #21552: Fixed possible integer overflow of too long string lengths in - the tkinter module on 64-bit platforms. +- Issue #21717: The zipfile.ZipFile.open function now supports 'x' (exclusive + creation) mode. -- Issue #14315: The zipfile module now ignores extra fields in the central - directory that are too short to be parsed instead of letting a struct.unpack - error bubble up as this "bad data" appears in many real world zip files in - the wild and is ignored by other zip tools. +- Issue #21802: The reader in BufferedRWPair now is closed even when closing + writer failed in BufferedRWPair.close(). -- Issue #21402: tkinter.ttk now works when default root window is not set. +- Issue #23622: Unknown escapes in regular expressions that consist of ``'\'`` + and ASCII letter now raise a deprecation warning and will be forbidden in + Python 3.6. -- Issue #10203: sqlite3.Row now truly supports sequence protocol. In particulr - it supports reverse() and negative indices. Original patch by Claudiu Popa. +- Issue #23671: string.Template now allows to specify the "self" parameter as + keyword argument. string.Formatter now allows to specify the "self" and + the "format_string" parameters as keyword arguments. -- Issue #18807: If copying (no symlinks) specified for a venv, then the python - interpreter aliases (python, python3) are now created by copying rather than - symlinking. +- Issue #23502: The pprint module now supports mapping proxies. -- Issue #14710: pkgutil.get_loader() no longer raises an exception when None is - found in sys.modules. +- Issue #17530: pprint now wraps long bytes objects and bytearrays. -- Issue #14710: pkgutil.find_loader() no longer raises an exception when a - module doesn't exist. +- Issue #22687: Fixed some corner cases in breaking words in tetxtwrap. + Got rid of quadratic complexity in breaking long words. -- Issue #21481: Argparse equality and inequality tests now return - NotImplemented when comparing to an unknown type. +- Issue #4727: The copy module now uses pickle protocol 4 (PEP 3154) and + supports copying of instances of classes whose __new__ method takes + keyword-only arguments. -- Issue #8743: Fix interoperability between set objects and the - collections.Set() abstract base class. +- Issue #23491: Added a zipapp module to support creating executable zip + file archives of Python code. Registered ".pyz" and ".pyzw" extensions + on Windows for these archives (PEP 441). -- Issue #13355: random.triangular() no longer fails with a ZeroDivisionError - when low equals high. +- Issue #23657: Avoid explicit checks for str in zipapp, adding support + for pathlib.Path objects as arguments. -- Issue #21538: The plistlib module now supports loading of binary plist files - when reference or offset size is not a power of two. +- Issue #23688: Added support of arbitrary bytes-like objects and avoided + unnecessary copying of memoryview in gzip.GzipFile.write(). + Original patch by Wolfgang Maier. -- Issue #21801: Validate that __signature__ is None or an instance of Signature. +- Issue #23252: Added support for writing ZIP files to unseekable streams. -- Issue #21923: Prevent AttributeError in distutils.sysconfig.customize_compiler - due to possible uninitialized _config_vars. +- Issue #23647: Increase impalib's MAXLINE to accommodate modern mailbox sizes. -- Issue #21323: Fix http.server to again handle scripts in CGI subdirectories, - broken by the fix for security issue #19435. Patch by Zach Byrne. +- Issue #23539: If body is None, http.client.HTTPConnection.request now sets + Content-Length to 0 for PUT, POST, and PATCH headers to avoid 411 errors from + some web servers. -Extension Modules ------------------ +- Issue #22351: The nntplib.NNTP constructor no longer leaves the connection + and socket open until the garbage collector cleans them up. Patch by + Martin Panter. -- Issue #22176: Update the ctypes module's libffi to v3.1. This release - adds support for the Linux AArch64 and POWERPC ELF ABIv2 little endian - architectures. +- Issue #23704: collections.deque() objects now support methods for index(), + insert(), and copy(). This allows deques to be registered as a + MutableSequence and it improves their substitutablity for lists. -Build ------ +- Issue #23715: :func:`signal.sigwaitinfo` and :func:`signal.sigtimedwait` are + now retried when interrupted by a signal not in the *sigset* parameter, if + the signal handler does not raise an exception. signal.sigtimedwait() + recomputes the timeout with a monotonic clock when it is retried. -- Issue #15661: python.org OS X installers are now distributed as signed - installer packages compatible with the Gatekeeper security feature. +- Issue #23001: Few functions in modules mmap, ossaudiodev, socket, ssl, and + codecs, that accepted only read-only bytes-like object now accept writable + bytes-like object too. -- Issue #21958: Define HAVE_ROUND when building with Visual Studio 2013 and - above. Patch by Zachary Turner. +- Issue #23646: If time.sleep() is interrupted by a signal, the sleep is now + retried with the recomputed delay, except if the signal handler raises an + exception (PEP 475). -- Issue #15759: "make suspicious", "make linkcheck" and "make doctest" in Doc/ - now display special message when and only when there are failures. +- Issue #23136: _strptime now uniformly handles all days in week 0, including + Dec 30 of previous year. Based on patch by Jim Carroll. -- Issue #17095: Fix Modules/Setup *shared* support. +- Issue #23700: Iterator of NamedTemporaryFile now keeps a reference to + NamedTemporaryFile instance. Patch by Bohuslav Kabrda. -- Issue #21811: Anticipated fixes to support OS X versions > 10.9. +- Issue #22903: The fake test case created by unittest.loader when it fails + importing a test module is now picklable. -- Issue #21166: Prevent possible segfaults and other random failures of - python --generate-posix-vars in pybuilddir.txt build target. +- Issue #22181: On Linux, os.urandom() now uses the new getrandom() syscall if + available, syscall introduced in the Linux kernel 3.17. It is more reliable + and more secure, because it avoids the need of a file descriptor and waits + until the kernel has enough entropy. + +- Issue #2211: Updated the implementation of the http.cookies.Morsel class. + Setting attributes key, value and coded_value directly now is deprecated. + update() and setdefault() now transform and check keys. Comparing for + equality now takes into account attributes key, value and coded_value. + copy() now returns a Morsel, not a dict. repr() now contains all attributes. + Optimized checking keys and quoting values. Added new tests. + Original patch by Demian Brecht. -IDLE ----- +- Issue #18983: Allow selection of output units in timeit. + Patch by Julian Gindi. -- Issue #17390: Adjust Editor window title; remove 'Python', - move version to end. +- Issue #23631: Fix traceback.format_list when a traceback has been mutated. -- Issue #14105: Idle debugger breakpoints no longer disappear - when inseting or deleting lines. +- Issue #23568: Add rdivmod support to MagicMock() objects. + Patch by Håkan Lövdahl. -- Issue #17172: Turtledemo can now be run from Idle. - Currently, the entry is on the Help menu, but it may move to Run. - Patch by Ramchandra Apt and Lita Cho. +- Issue #2052: Add charset parameter to HtmlDiff.make_file(). -- Issue #21765: Add support for non-ascii identifiers to HyperParser. +- Issue #23668: Support os.truncate and os.ftruncate on Windows. -- Issue #21940: Add unittest for WidgetRedirector. Initial patch by Saimadhav - Heblikar. +- Issue #23138: Fixed parsing cookies with absent keys or values in cookiejar. + Patch by Demian Brecht. -- Issue #18592: Add unittest for SearchDialogBase. Patch by Phil Webster. +- Issue #23051: multiprocessing.Pool methods imap() and imap_unordered() now + handle exceptions raised by an iterator. Patch by Alon Diamant and Davin + Potts. -- Issue #21694: Add unittest for ParenMatch. Patch by Saimadhav Heblikar. +- Issue #23581: Add matmul support to MagicMock. Patch by Håkan Lövdahl. -- Issue #21686: add unittest for HyperParser. Original patch by Saimadhav - Heblikar. +- Issue #23566: enable(), register(), dump_traceback() and + dump_traceback_later() functions of faulthandler now accept file + descriptors. Patch by Wei Wu. -- Issue #12387: Add missing upper(lower)case versions of default Windows key - bindings for Idle so Caps Lock does not disable them. Patch by Roger Serwy. +- Issue #22928: Disabled HTTP header injections in http.client. + Original patch by Demian Brecht. -- Issue #21695: Closing a Find-in-files output window while the search is - still in progress no longer closes Idle. +- Issue #23615: Modules bz2, tarfile and tokenize now can be reloaded with + imp.reload(). Patch by Thomas Kluyver. -- Issue #18910: Add unittest for textView. Patch by Phil Webster. +- Issue #23605: os.walk() now calls os.scandir() instead of os.listdir(). + The usage of os.scandir() reduces the number of calls to os.stat(). + Initial patch written by Ben Hoyt. -- Issue #18292: Add unittest for AutoExpand. Patch by Saihadhav Heblikar. +Build +----- -- Issue #18409: Add unittest for AutoComplete. Patch by Phil Webster. +- Issue #23585: make patchcheck will ensure the interpreter is built. Tests -----