diff --git a/.gitignore b/.gitignore index 9606f0f49ea82c..ba43df3224c71b 100644 --- a/.gitignore +++ b/.gitignore @@ -62,13 +62,13 @@ Parser/pgen Parser/pgen.exe __pycache__ autom4te.cache -build/ +/build/ buildno config.cache config.log config.status config.status.lineno -core +/core db_home .hg/ ipch/ diff --git a/Misc/NEWS b/Misc/NEWS.rst similarity index 89% rename from Misc/NEWS rename to Misc/NEWS.rst index bcd049661edb1f..8b1910e4d7f70e 100644 --- a/Misc/NEWS +++ b/Misc/NEWS.rst @@ -2,939 +2,8 @@ Python News +++++++++++ -What's New in Python 3.7.0 alpha 1? -=================================== - -*Release date: XXXX-XX-XX* - -Core and Builtins ------------------ - -- bpo-29714: Fix a regression that bytes format may fail when containing zero - bytes inside. - -- bpo-29695: bool(), float(), list() and tuple() no longer take keyword arguments. - The first argument of int() can now be passes only as positional argument. - -- bpo-28893: Set correct __cause__ for errors about invalid awaitables - returned from __aiter__ and __anext__. - -- bpo-29683: Fixes to memory allocation in _PyCode_SetExtra. Patch by - Brian Coleman. - -- bpo-29684: Fix minor regression of PyEval_CallObjectWithKeywords. - It should raise TypeError when kwargs is not a dict. But it might - cause segv when args=NULL and kwargs is not a dict. - -- bpo-28598: Support __rmod__ for subclasses of str being called before - str.__mod__. Patch by Martijn Pieters. - -- bpo-29607: Fix stack_effect computation for CALL_FUNCTION_EX. - Patch by Matthieu Dartiailh. - -- bpo-29602: Fix incorrect handling of signed zeros in complex constructor for - complex subclasses and for inputs having a __complex__ method. Patch - by Serhiy Storchaka. - -- bpo-29347: Fixed possibly dereferencing undefined pointers - when creating weakref objects. - -- bpo-29463: Add ``docstring`` field to Module, ClassDef, FunctionDef, - and AsyncFunctionDef ast nodes. docstring is not first stmt in their body - anymore. It affects ``co_firstlineno`` and ``co_lnotab`` of code object - for module and class. - -- bpo-29438: Fixed use-after-free problem in key sharing dict. - -- bpo-29546: Set the 'path' and 'name' attribute on ImportError for ``from ... import ...``. - -- bpo-29546: Improve from-import error message with location - -- Issue #29319: Prevent RunMainFromImporter overwriting sys.path[0]. - -- Issue #29337: Fixed possible BytesWarning when compare the code objects. - Warnings could be emitted at compile time. - -- Issue #29327: Fixed a crash when pass the iterable keyword argument to - sorted(). - -- Issue #29034: Fix memory leak and use-after-free in os module (path_converter). - -- Issue #29159: Fix regression in bytes(x) when x.__index__() raises Exception. - -- Issue #29049: Call _PyObject_GC_TRACK() lazily when calling Python function. - Calling function is up to 5% faster. - -- Issue #28927: bytes.fromhex() and bytearray.fromhex() now ignore all ASCII - whitespace, not only spaces. Patch by Robert Xiao. - -- Issue #28932: Do not include if it does not exist. - -- Issue #25677: Correct the positioning of the syntax error caret for - indented blocks. Based on patch by Michael Layzell. - -- Issue #29000: Fixed bytes formatting of octals with zero padding in alternate - form. - -- Issue #18896: Python function can now have more than 255 parameters. - collections.namedtuple() now supports tuples with more than 255 elements. - -- Issue #28596: The preferred encoding is UTF-8 on Android. Patch written by - Chi Hsuan Yen. - -- Issue #26919: On Android, operating system data is now always encoded/decoded - to/from UTF-8, instead of the locale encoding to avoid inconsistencies with - os.fsencode() and os.fsdecode() which are already using UTF-8. - -- Issue #28991: functools.lru_cache() was susceptible to an obscure reentrancy - bug triggerable by a monkey-patched len() function. - -- Issue #28147: Fix a memory leak in split-table dictionaries: setattr() - must not convert combined table into split table. Patch written by INADA - Naoki. - -- Issue #28739: f-string expressions are no longer accepted as docstrings and - by ast.literal_eval() even if they do not include expressions. - -- Issue #28512: Fixed setting the offset attribute of SyntaxError by - PyErr_SyntaxLocationEx() and PyErr_SyntaxLocationObject(). - -- Issue #28918: Fix the cross compilation of xxlimited when Python has been - built with Py_DEBUG defined. - -- Issue #23722: Rather than silently producing a class that doesn't support - zero-argument ``super()`` in methods, failing to pass the new - ``__classcell__`` namespace entry up to ``type.__new__`` now results in a - ``DeprecationWarning`` and a class that supports zero-argument ``super()``. - -- Issue #28797: Modifying the class __dict__ inside the __set_name__ method of - a descriptor that is used inside that class no longer prevents calling the - __set_name__ method of other descriptors. - -- Issue #28799: Remove the ``PyEval_GetCallStats()`` function and deprecate - the untested and undocumented ``sys.callstats()`` function. Remove the - ``CALL_PROFILE`` special build: use the :func:`sys.setprofile` function, - :mod:`cProfile` or :mod:`profile` to profile function calls. - -- Issue #12844: More than 255 arguments can now be passed to a function. - -- Issue #28782: Fix a bug in the implementation ``yield from`` when checking - if the next instruction is YIELD_FROM. Regression introduced by WORDCODE - (issue #26647). - -- Issue #28774: Fix error position of the unicode error in ASCII and Latin1 - encoders when a string returned by the error handler contains multiple - non-encodable characters (non-ASCII for the ASCII codec, characters out - of the U+0000-U+00FF range for Latin1). - -- Issue #28731: Optimize _PyDict_NewPresized() to create correct size dict. - Improve speed of dict literal with constant keys up to 30%. - -- Issue #28532: Show sys.version when -V option is supplied twice. - -- Issue #27100: The with-statement now checks for __enter__ before it - checks for __exit__. This gives less confusing error messages when - both methods are missing. Patch by Jonathan Ellington. - -- Issue #28746: Fix the set_inheritable() file descriptor method on platforms - that do not have the ioctl FIOCLEX and FIONCLEX commands. - -- Issue #26920: Fix not getting the locale's charset upon initializing the - interpreter, on platforms that do not have langinfo. - -- Issue #28648: Fixed crash in Py_DecodeLocale() in debug build on Mac OS X - when decode astral characters. Patch by Xiang Zhang. - -- Issue #28665: Improve speed of the STORE_DEREF opcode by 40%. - -- Issue #19398: Extra slash no longer added to sys.path components in case of - empty compile-time PYTHONPATH components. - -- Issue #28621: Sped up converting int to float by reusing faster bits counting - implementation. Patch by Adrian Wielgosik. - -- Issue #28580: Optimize iterating split table values. - Patch by Xiang Zhang. - -- Issue #28583: PyDict_SetDefault didn't combine split table when needed. - Patch by Xiang Zhang. - -- Issue #28128: Deprecation warning for invalid str and byte escape - sequences now prints better information about where the error - occurs. Patch by Serhiy Storchaka and Eric Smith. - -- Issue #28509: dict.update() no longer allocate unnecessary large memory. - -- Issue #28426: Fixed potential crash in PyUnicode_AsDecodedObject() in debug - build. - -- Issue #28517: Fixed of-by-one error in the peephole optimizer that caused - keeping unreachable code. - -- Issue #28214: Improved exception reporting for problematic __set_name__ - attributes. - -- Issue #23782: Fixed possible memory leak in _PyTraceback_Add() and exception - loss in PyTraceBack_Here(). - -- Issue #28183: Optimize and cleanup dict iteration. - -- Issue #26081: Added C implementation of asyncio.Future. - Original patch by Yury Selivanov. - -- Issue #28379: Added sanity checks and tests for PyUnicode_CopyCharacters(). - Patch by Xiang Zhang. - -- Issue #28376: The type of long range iterator is now registered as Iterator. - Patch by Oren Milman. - -- Issue #28376: Creating instances of range_iterator by calling range_iterator - type now is disallowed. Calling iter() on range instance is the only way. - Patch by Oren Milman. - -- Issue #26906: Resolving special methods of uninitialized type now causes - implicit initialization of the type instead of a fail. - -- Issue #18287: PyType_Ready() now checks that tp_name is not NULL. - Original patch by Niklas Koep. - -- Issue #24098: Fixed possible crash when AST is changed in process of - compiling it. - -- Issue #28201: Dict reduces possibility of 2nd conflict in hash table when - hashes have same lower bits. - -- Issue #28350: String constants with null character no longer interned. - -- Issue #26617: Fix crash when GC runs during weakref callbacks. - -- Issue #27942: String constants now interned recursively in tuples and frozensets. - -- Issue #28289: ImportError.__init__ now resets not specified attributes. - -- Issue #21578: Fixed misleading error message when ImportError called with - invalid keyword args. - -- Issue #28203: Fix incorrect type in complex(1.0, {2:3}) error message. - Patch by Soumya Sharma. - -- Issue #28086: Single var-positional argument of tuple subtype was passed - unscathed to the C-defined function. Now it is converted to exact tuple. - -- Issue #28214: Now __set_name__ is looked up on the class instead of the - instance. - -- Issue #27955: Fallback on reading /dev/urandom device when the getrandom() - syscall fails with EPERM, for example when blocked by SECCOMP. - -- Issue #28192: Don't import readline in isolated mode. - -- Issue #27441: Remove some redundant assignments to ob_size in longobject.c. - Thanks Oren Milman. - -- Issue #27222: Clean up redundant code in long_rshift function. Thanks - Oren Milman. - -- Upgrade internal unicode databases to Unicode version 9.0.0. - -- Issue #28131: Fix a regression in zipimport's compile_source(). zipimport - should use the same optimization level as the interpreter. - -- Issue #28126: Replace Py_MEMCPY with memcpy(). Visual Studio can properly - optimize memcpy(). - -- Issue #28120: Fix dict.pop() for splitted dictionary when trying to remove a - "pending key" (Not yet inserted in split-table). Patch by Xiang Zhang. - -- Issue #26182: Raise DeprecationWarning when async and await keywords are - used as variable/attribute/class/function name. - -- Issue #26182: Fix a refleak in code that raises DeprecationWarning. - -- Issue #28721: Fix asynchronous generators aclose() and athrow() to - handle StopAsyncIteration propagation properly. - -- Issue #26110: Speed-up method calls: add LOAD_METHOD and CALL_METHOD - opcodes. - -Extension Modules ------------------ - -- Issue #29169: Update zlib to 1.2.11. - -Library -------- - -- bpo-29623: Allow use of path-like object as a single argument in - ConfigParser.read(). Patch by David Ellis. - -- bpo-9303: Migrate sqlite3 module to _v2 API. Patch by Aviv Palivoda. - -- bpo-28963: Fix out of bound iteration in asyncio.Future.remove_done_callback - implemented in C. - -- bpo-29704: asyncio.subprocess.SubprocessStreamProtocol no longer closes before - all pipes are closed. - -- bpo-29271: Fix Task.current_task and Task.all_tasks implemented in C - to accept None argument as their pure Python implementation. - -- bpo-29703: Fix asyncio to support instantiation of new event loops - in child processes. - -- bpo-29615: SimpleXMLRPCDispatcher no longer chains KeyError (or any other - exception) to exception(s) raised in the dispatched methods. - Patch by Petr Motejlek. - -- bpo-7769: Method register_function() of xmlrpc.server.SimpleXMLRPCDispatcher - and its subclasses can now be used as a decorator. - -- bpo-29376: Fix assertion error in threading._DummyThread.is_alive(). - -- bpo-28624: Add a test that checks that cwd parameter of Popen() accepts - PathLike objects. Patch by Sayan Chowdhury. - -- bpo-28518: Start a transaction implicitly before a DML statement. - Patch by Aviv Palivoda. - -- Issue #16285: urrlib.parse.quote is now based on RFC 3986 and hence includes - '~' in the set of characters that is not quoted by default. Patch by - Christian Theune and Ratnadeep Debnath. - -- bpo-29532: Altering a kwarg dictionary passed to functools.partial() - no longer affects a partial object after creation. - -- bpo-29110: Fix file object leak in aifc.open() when file is given as a - filesystem path and is not in valid AIFF format. Patch by Anthony Zhang. - -- bpo-22807: Add uuid.SafeUUID and uuid.UUID.is_safe to relay information from - the platform about whether generated UUIDs are generated with a - multiprocessing safe method. - -- bpo-29576: Improve some deprecations in importlib. Some deprecated methods - now emit DeprecationWarnings and have better descriptive messages. - -- bpo-29534: Fixed different behaviour of Decimal.from_float() - for _decimal and _pydecimal. Thanks Andrew Nester. - -- Issue #28556: Various updates to typing module: typing.Counter, typing.ChainMap, - improved ABC caching, etc. Original PRs by Jelle Zijlstra, Ivan Levkivskyi, - Manuel Krebber, and Łukasz Langa. - -- Issue #29100: Fix datetime.fromtimestamp() regression introduced in Python - 3.6.0: check minimum and maximum years. - -- Issue #29416: Prevent infinite loop in pathlib.Path.mkdir - -- Issue #29444: Fixed out-of-bounds buffer access in the group() method of - the match object. Based on patch by WGH. - -- Issue #29377: Add SlotWrapperType, MethodWrapperType, and - MethodDescriptorType built-in types to types module. - Original patch by Manuel Krebber. - -- Issue #29218: Unused install_misc command is now removed. It has been - documented as unused since 2000. Patch by Eric N. Vander Weele. - -- Issue #29368: The extend() method is now called instead of the append() - method when unpickle collections.deque and other list-like objects. - This can speed up unpickling to 2 times. - -- Issue #29338: The help of a builtin or extension class now includes the - constructor signature if __text_signature__ is provided for the class. - -- Issue #29335: Fix subprocess.Popen.wait() when the child process has - exited to a stopped instead of terminated state (ex: when under ptrace). - -- Issue #29290: Fix a regression in argparse that help messages would wrap at - non-breaking spaces. - -- Issue #28735: Fixed the comparison of mock.MagickMock with mock.ANY. - -- Issue #29197: Removed deprecated function ntpath.splitunc(). - -- Issue #29210: Removed support of deprecated argument "exclude" in - tarfile.TarFile.add(). - -- Issue #29219: Fixed infinite recursion in the repr of uninitialized - ctypes.CDLL instances. - -- Issue #29192: Removed deprecated features in the http.cookies module. - -- Issue #29193: A format string argument for string.Formatter.format() - is now positional-only. - -- Issue #29195: Removed support of deprecated undocumented keyword arguments - in methods of regular expression objects. - -- Issue #28969: Fixed race condition in C implementation of functools.lru_cache. - KeyError could be raised when cached function with full cache was - simultaneously called from differen threads with the same uncached arguments. - -- Issue #20804: The unittest.mock.sentinel attributes now preserve their - identity when they are copied or pickled. - -- Issue #29142: In urllib.request, suffixes in no_proxy environment variable with - leading dots could match related hostnames again (e.g. .b.c matches a.b.c). - Patch by Milan Oberkirch. - -- Issue #28961: Fix unittest.mock._Call helper: don't ignore the name parameter - anymore. Patch written by Jiajun Huang. - -- Issue #15812: inspect.getframeinfo() now correctly shows the first line of - a context. Patch by Sam Breese. - -- Issue #28985: Update authorizer constants in sqlite3 module. - Patch by Dingyuan Wang. - -- Issue #29094: Offsets in a ZIP file created with extern file object and modes - "w" and "x" now are relative to the start of the file. - -- Issue #29079: Prevent infinite loop in pathlib.resolve() on Windows - -- Issue #13051: Fixed recursion errors in large or resized - curses.textpad.Textbox. Based on patch by Tycho Andersen. - -- Issue #9770: curses.ascii predicates now work correctly with negative - integers. - -- Issue #28427: old keys should not remove new values from - WeakValueDictionary when collecting from another thread. - -- Issue 28923: Remove editor artifacts from Tix.py. - -- Issue #28871: Fixed a crash when deallocate deep ElementTree. - -- Issue #19542: Fix bugs in WeakValueDictionary.setdefault() and - WeakValueDictionary.pop() when a GC collection happens in another - thread. - -- Issue #20191: Fixed a crash in resource.prlimit() when passing a sequence that - doesn't own its elements as limits. - -- Issue #16255: subprocess.Popen uses /system/bin/sh on Android as the shell, - instead of /bin/sh. - -- Issue #28779: multiprocessing.set_forkserver_preload() would crash the - forkserver process if a preloaded module instantiated some - multiprocessing objects such as locks. - -- Issue #26937: The chown() method of the tarfile.TarFile class does not fail - now when the grp module cannot be imported, as for example on Android - platforms. - -- Issue #28847: dbm.dumb now supports reading read-only files and no longer - writes the index file when it is not changed. A deprecation warning is now - emitted if the index file is missed and recreated in the 'r' and 'w' modes - (will be an error in future Python releases). - -- Issue #27030: Unknown escapes consisting of ``'\'`` and an ASCII letter in - re.sub() replacement templates regular expressions now are errors. - -- Issue #28835: Fix a regression introduced in warnings.catch_warnings(): - call warnings.showwarning() if it was overriden inside the context manager. - -- Issue #27172: To assist with upgrades from 2.7, the previously documented - deprecation of ``inspect.getfullargspec()`` has been reversed. This decision - may be revisited again after the Python 2.7 branch is no longer officially - supported. - -- Issue #28740: Add sys.getandroidapilevel(): return the build time API version - of Android as an integer. Function only available on Android. - -- Issue #26273: Add new :data:`socket.TCP_CONGESTION` (Linux 2.6.13) and - :data:`socket.TCP_USER_TIMEOUT` (Linux 2.6.37) constants. Patch written by - Omar Sandoval. - -- Issue #28752: Restored the __reduce__() methods of datetime objects. - -- Issue #28727: Regular expression patterns, _sre.SRE_Pattern objects created - by re.compile(), become comparable (only x==y and x!=y operators). This - change should fix the issue #18383: don't duplicate warning filters when the - warnings module is reloaded (thing usually only done in unit tests). - -- Issue #20572: Remove the subprocess.Popen.wait endtime parameter. It was - deprecated in 3.4 and undocumented prior to that. - -- Issue #25659: In ctypes, prevent a crash calling the from_buffer() and - from_buffer_copy() methods on abstract classes like Array. - -- Issue #28548: In the "http.server" module, parse the protocol version if - possible, to avoid using HTTP 0.9 in some error responses. - -- Issue #19717: Makes Path.resolve() succeed on paths that do not exist. - Patch by Vajrasky Kok - -- Issue #28563: Fixed possible DoS and arbitrary code execution when handle - plural form selections in the gettext module. The expression parser now - supports exact syntax supported by GNU gettext. - -- Issue #28387: Fixed possible crash in _io.TextIOWrapper deallocator when - the garbage collector is invoked in other thread. Based on patch by - Sebastian Cufre. - -- Issue #27517: LZMA compressor and decompressor no longer raise exceptions if - given empty data twice. Patch by Benjamin Fogle. - -- Issue #28549: Fixed segfault in curses's addch() with ncurses6. - -- Issue #28449: tarfile.open() with mode "r" or "r:" now tries to open a tar - file with compression before trying to open it without compression. Otherwise - it had 50% chance failed with ignore_zeros=True. - -- Issue #23262: The webbrowser module now supports Firefox 36+ and derived - browsers. Based on patch by Oleg Broytman. - -- Issue #24241: The webbrowser in an X environment now prefers using the - default browser directly. Also, the webbrowser register() function now has - a documented 'preferred' argument, to specify browsers to be returned by - get() with no arguments. Patch by David Steele - -- Issue #27939: Fixed bugs in tkinter.ttk.LabeledScale and tkinter.Scale caused - by representing the scale as float value internally in Tk. tkinter.IntVar - now works if float value is set to underlying Tk variable. - -- Issue #28255: calendar.TextCalendar.prweek() no longer prints a space after - a weeks's calendar. calendar.TextCalendar.pryear() no longer prints redundant - newline after a year's calendar. Based on patch by Xiang Zhang. - -- Issue #28255: calendar.TextCalendar.prmonth() no longer prints a space - at the start of new line after printing a month's calendar. Patch by - Xiang Zhang. - -- Issue #20491: The textwrap.TextWrapper class now honors non-breaking spaces. - Based on patch by Kaarle Ritvanen. - -- Issue #28353: os.fwalk() no longer fails on broken links. - -- Issue #28430: Fix iterator of C implemented asyncio.Future doesn't accept - non-None value is passed to it.send(val). - -- Issue #27025: Generated names for Tkinter widgets now start by the "!" prefix - for readability (was "`"). - -- Issue #25464: Fixed HList.header_exists() in tkinter.tix module by addin - a workaround to Tix library bug. - -- Issue #28488: shutil.make_archive() no longer adds entry "./" to ZIP archive. - -- Issue #25953: re.sub() now raises an error for invalid numerical group - reference in replacement template even if the pattern is not found in - the string. Error message for invalid group reference now includes the - group index and the position of the reference. - Based on patch by SilentGhost. - -- Issue #28469: timeit now uses the sequence 1, 2, 5, 10, 20, 50,... instead - of 1, 10, 100,... for autoranging. - -- Issue #28115: Command-line interface of the zipfile module now uses argparse. - Added support of long options. - -- Issue #18219: Optimize csv.DictWriter for large number of columns. - Patch by Mariatta Wijaya. - -- Issue #28448: Fix C implemented asyncio.Future didn't work on Windows. - -- Issue #23214: In the "io" module, the argument to BufferedReader and - BytesIO's read1() methods is now optional and can be -1, matching the - BufferedIOBase specification. - -- Issue #28480: Fix error building socket module when multithreading is - disabled. - -- Issue #28240: timeit: remove ``-c/--clock`` and ``-t/--time`` command line - options which were deprecated since Python 3.3. - -- Issue #28240: timeit now repeats the benchmarks 5 times instead of only 3 - to make benchmarks more reliable. - -- Issue #28240: timeit autorange now uses a single loop iteration if the - benchmark takes less than 10 seconds, instead of 10 iterations. - "python3 -m timeit -s 'import time' 'time.sleep(1)'" now takes 4 seconds - instead of 40 seconds. - -- Distutils.sdist now looks for README and setup.py files with case - sensitivity. This behavior matches that found in Setuptools 6.0 and - later. See `setuptools 100 - `_ for rationale. - -- Issue #24452: Make webbrowser support Chrome on Mac OS X. Patch by - Ned Batchelder. - -- Issue #20766: Fix references leaked by pdb in the handling of SIGINT - handlers. - -- Issue #27998: Fixed bytes path support in os.scandir() on Windows. - Patch by Eryk Sun. - -- Issue #28317: The disassembler now decodes FORMAT_VALUE argument. - -- Issue #26293: Fixed writing ZIP files that starts not from the start of the - file. Offsets in ZIP file now are relative to the start of the archive in - conforming to the specification. - -- Issue #28380: unittest.mock Mock autospec functions now properly support - assert_called, assert_not_called, and assert_called_once. - -- Issue #28229: lzma module now supports pathlib. - -- Issue #28321: Fixed writing non-BMP characters with binary format in plistlib. - -- Issue #28225: bz2 module now supports pathlib. Initial patch by Ethan Furman. - -- Issue #28227: gzip now supports pathlib. Patch by Ethan Furman. - -- Issue #28332: Deprecated silent truncations in socket.htons and socket.ntohs. - Original patch by Oren Milman. - -- Issue #27358: Optimized merging var-keyword arguments and improved error - message when passing a non-mapping as a var-keyword argument. - -- Issue #28257: Improved error message when passing a non-iterable as - a var-positional argument. Added opcode BUILD_TUPLE_UNPACK_WITH_CALL. - -- Issue #28322: Fixed possible crashes when unpickle itertools objects from - incorrect pickle data. Based on patch by John Leitch. - -- Issue #28228: imghdr now supports pathlib. - -- Issue #28226: compileall now supports pathlib. - -- Issue #28314: Fix function declaration (C flags) for the getiterator() method - of xml.etree.ElementTree.Element. - -- Issue #28148: Stop using localtime() and gmtime() in the time - module. - - Introduced platform independent _PyTime_localtime API that is - similar to POSIX localtime_r, but available on all platforms. Patch - by Ed Schouten. - -- Issue #28253: Fixed calendar functions for extreme months: 0001-01 - and 9999-12. - - Methods itermonthdays() and itermonthdays2() are reimplemented so - that they don't call itermonthdates() which can cause datetime.date - under/overflow. - -- Issue #28275: Fixed possible use after free in the decompress() - methods of the LZMADecompressor and BZ2Decompressor classes. - Original patch by John Leitch. - -- Issue #27897: Fixed possible crash in sqlite3.Connection.create_collation() - if pass invalid string-like object as a name. Patch by Xiang Zhang. - -- Issue #18844: random.choices() now has k as a keyword-only argument - to improve the readability of common cases and come into line - with the signature used in other languages. - -- Issue #18893: Fix invalid exception handling in Lib/ctypes/macholib/dyld.py. - Patch by Madison May. - -- Issue #27611: Fixed support of default root window in the tkinter.tix module. - Added the master parameter in the DisplayStyle constructor. - -- Issue #27348: In the traceback module, restore the formatting of exception - messages like "Exception: None". This fixes a regression introduced in - 3.5a2. - -- Issue #25651: Allow falsy values to be used for msg parameter of subTest(). - -- Issue #27778: Fix a memory leak in os.getrandom() when the getrandom() is - interrupted by a signal and a signal handler raises a Python exception. - -- Issue #28200: Fix memory leak on Windows in the os module (fix - path_converter() function). - -- Issue #25400: RobotFileParser now correctly returns default values for - crawl_delay and request_rate. Initial patch by Peter Wirtz. - -- Issue #27932: Prevent memory leak in win32_ver(). - -- Fix UnboundLocalError in socket._sendfile_use_sendfile. - -- Issue #28075: Check for ERROR_ACCESS_DENIED in Windows implementation of - os.stat(). Patch by Eryk Sun. - -- Issue #22493: Warning message emitted by using inline flags in the middle of - regular expression now contains a (truncated) regex pattern. - Patch by Tim Graham. - -- Issue #25270: Prevent codecs.escape_encode() from raising SystemError when - an empty bytestring is passed. - -- Issue #28181: Get antigravity over HTTPS. Patch by Kaartic Sivaraam. - -- Issue #25895: Enable WebSocket URL schemes in urllib.parse.urljoin. - Patch by Gergely Imreh and Markus Holtermann. - -- Issue #28114: Fix a crash in parse_envlist() when env contains byte strings. - Patch by Eryk Sun. - -- Issue #27599: Fixed buffer overrun in binascii.b2a_qp() and binascii.a2b_qp(). - -- Issue #27906: Fix socket accept exhaustion during high TCP traffic. - Patch by Kevin Conway. - -- Issue #28174: Handle when SO_REUSEPORT isn't properly supported. - Patch by Seth Michael Larson. - -- Issue #26654: Inspect functools.partial in asyncio.Handle.__repr__. - Patch by iceboy. - -- Issue #26909: Fix slow pipes IO in asyncio. - Patch by INADA Naoki. - -- Issue #28176: Fix callbacks race in asyncio.SelectorLoop.sock_connect. - -- Issue #27759: Fix selectors incorrectly retain invalid file descriptors. - Patch by Mark Williams. - -- Issue #28325: Remove vestigial MacOS 9 macurl2path module and its tests. - -- Issue #28368: Refuse monitoring processes if the child watcher has - no loop attached. - Patch by Vincent Michel. - -- Issue #28369: Raise RuntimeError when transport's FD is used with - add_reader, add_writer, etc. - -- Issue #28370: Speedup asyncio.StreamReader.readexactly. - Patch by Коренберг Марк. - -- Issue #28371: Deprecate passing asyncio.Handles to run_in_executor. - -- Issue #28372: Fix asyncio to support formatting of non-python coroutines. - -- Issue #28399: Remove UNIX socket from FS before binding. - Patch by Коренберг Марк. - -- Issue #27972: Prohibit Tasks to await on themselves. - -- Issue #24142: Reading a corrupt config file left configparser in an - invalid state. Original patch by Florian Höch. - -Windows -------- - -- bpo-29579: Removes readme.txt from the installer. - -- Issue #25778: winreg does not truncate string correctly (Patch by Eryk Sun) - -- Issue #28896: Deprecate WindowsRegistryFinder and disable it by default - -- Issue #28522: Fixes mishandled buffer reallocation in getpathp.c - -- Issue #28402: Adds signed catalog files for stdlib on Windows. - -- Issue #28333: Enables Unicode for ps1/ps2 and input() prompts. (Patch by - Eryk Sun) - -- Issue #28251: Improvements to help manuals on Windows. - -- Issue #28110: launcher.msi has different product codes between 32-bit and - 64-bit - -- Issue #28161: Opening CON for write access fails - -- Issue #28162: WindowsConsoleIO readall() fails if first line starts with - Ctrl+Z - -- Issue #28163: WindowsConsoleIO fileno() passes wrong flags to - _open_osfhandle - -- Issue #28164: _PyIO_get_console_type fails for various paths - -- Issue #28137: Renames Windows path file to ._pth - -- Issue #28138: Windows ._pth file should allow import site - -C API ------ - -- Issue #27867: Function PySlice_GetIndicesEx() is deprecated and replaced with - a macro if Py_LIMITED_API is not set or set to the value between 0x03050400 - and 0x03060000 (not including) or 0x03060100 or higher. Added functions - PySlice_Unpack() and PySlice_AdjustIndices(). - -- Issue #29083: Fixed the declaration of some public API functions. - PyArg_VaParse() and PyArg_VaParseTupleAndKeywords() were not available in - limited API. PyArg_ValidateKeywordArguments(), PyArg_UnpackTuple() and - Py_BuildValue() were not available in limited API of version < 3.3 when - PY_SSIZE_T_CLEAN is defined. - -- Issue #28769: The result of PyUnicode_AsUTF8AndSize() and PyUnicode_AsUTF8() - is now of type ``const char *`` rather of ``char *``. - -- Issue #29058: All stable API extensions added after Python 3.2 are now - available only when Py_LIMITED_API is set to the PY_VERSION_HEX value of - the minimum Python version supporting this API. - -- Issue #28822: The index parameters *start* and *end* of PyUnicode_FindChar() - are now adjusted to behave like ``str[start:end]``. - -- Issue #28808: PyUnicode_CompareWithASCIIString() now never raises exceptions. - -- Issue #28761: The fields name and doc of structures PyMemberDef, PyGetSetDef, - PyStructSequence_Field, PyStructSequence_Desc, and wrapperbase are now of - type ``const char *`` rather of ``char *``. - -- Issue #28748: Private variable _Py_PackageContext is now of type ``const char *`` - rather of ``char *``. - -- Issue #19569: Compiler warnings are now emitted if use most of deprecated - functions. - -- Issue #28426: Deprecated undocumented functions PyUnicode_AsEncodedObject(), - PyUnicode_AsDecodedObject(), PyUnicode_AsDecodedUnicode() and - PyUnicode_AsEncodedUnicode(). - -Documentation -------------- - -- bpo-28929: Link the documentation to its source file on GitHub. - -- bpo-25008: Document smtpd.py as effectively deprecated and add a pointer to - aiosmtpd, a third-party asyncio-based replacement. - -- Issue #26355: Add canonical header link on each page to corresponding major - version of the documentation. Patch by Matthias Bussonnier. - -- Issue #29349: Fix Python 2 syntax in code for building the documentation. - -- Issue #23722: The data model reference and the porting section in the - 3.6 What's New guide now cover the additional ``__classcell__`` handling - needed for custom metaclasses to fully support PEP 487 and zero-argument - ``super()``. - -- Issue #28513: Documented command-line interface of zipfile. - -Build ------ - -- bpo-27593: sys.version and the platform module python_build(), - python_branch(), and python_revision() functions now use - git information rather than hg when building from a repo. - -- bpo-29572: Update Windows build and OS X installers to use OpenSSL 1.0.2k. - -- Issue #27659: Prohibit implicit C function declarations: use - -Werror=implicit-function-declaration when possible (GCC and Clang, but it - depends on the compiler version). Patch written by Chi Hsuan Yen. - -- Issue #29384: Remove old Be OS helper scripts. - -- Issue #26851: Set Android compilation and link flags. - -- Issue #28768: Fix implicit declaration of function _setmode. Patch by - Masayuki Yamamoto - -- Issue #29080: Removes hard dependency on hg.exe from PCBuild/build.bat - -- Issue #23903: Added missed names to PC/python3.def. - -- Issue #28762: lockf() is available on Android API level 24, but the F_LOCK - macro is not defined in android-ndk-r13. - -- Issue #28538: Fix the compilation error that occurs because if_nameindex() is - available on Android API level 24, but the if_nameindex structure is not - defined. - -- Issue #20211: Do not add the directory for installing C header files and the - directory for installing object code libraries to the cross compilation - search paths. Original patch by Thomas Petazzoni. - -- Issue #28849: Do not define sys.implementation._multiarch on Android. - -- Issue #10656: Fix out-of-tree building on AIX. Patch by Tristan Carel and - Michael Haubenwallner. - -- Issue #26359: Rename --with-optimiations to --enable-optimizations. - -- Issue #28444: Fix missing extensions modules when cross compiling. - -- Issue #28208: Update Windows build and OS X installers to use SQLite 3.14.2. - -- Issue #28248: Update Windows build and OS X installers to use OpenSSL 1.0.2j. - -- Issue #21124: Fix building the _struct module on Cygwin by passing ``NULL`` - instead of ``&PyType_Type`` to PyVarObject_HEAD_INIT. Patch by Masayuki - Yamamoto. - -- Issue #13756: Fix building extensions modules on Cygwin. Patch by Roumen - Petrov, based on original patch by Jason Tishler. - -- Issue #21085: Add configure check for siginfo_t.si_band, which Cygwin does - not provide. Patch by Masayuki Yamamoto with review and rebase by Erik Bray. - -- Issue #28258: Fixed build with Estonian locale (python-config and distclean - targets in Makefile). Patch by Arfrever Frehtes Taifersar Arahesis. - -- Issue #26661: setup.py now detects system libffi with multiarch wrapper. - -- Issue #27979: A full copy of libffi is no longer bundled for use when - building _ctypes on non-OSX UNIX platforms. An installed copy of libffi is - now required when building _ctypes on such platforms. - -- Issue #15819: Remove redundant include search directory option for building - outside the source tree. - -- Issue #28676: Prevent missing 'getentropy' declaration warning on macOS. - Patch by Gareth Rees. - -Tools/Demos ------------ -- Issue #29367: python-gdb.py now supports also ``method-wrapper`` - (``wrapperobject``) objects. - -- Issue #28023: Fix python-gdb.py didn't support new dict implementation. - -- Issue #15369: The pybench and pystone microbenchmark have been removed from - Tools. Please use the new Python benchmark suite - https://github.com/python/performance which is more reliable and includes a - portable version of pybench working on Python 2 and Python 3. - -- Issue #28102: The zipfile module CLI now prints usage to stderr. - Patch by Stephen J. Turnbull. - -Tests ------ - -- bpo-28087: Skip test_asyncore and test_eintr poll failures on macOS. - Skip some tests of select.poll when running on macOS due to unresolved - issues with the underlying system poll function on some macOS versions. - -- Issue #29571: to match the behaviour of the ``re.LOCALE`` flag, - test_re.test_locale_flag now uses ``locale.getpreferredencoding(False)`` to - determine the candidate encoding for the test regex (allowing it to correctly - skip the test when the default locale encoding is a multi-byte encoding) - -- Issue #24932: Use proper command line parsing in _testembed - -- Issue #28950: Disallow -j0 to be combined with -T/-l in regrtest - command line arguments. - -- Issue #28683: Fix the tests that bind() a unix socket and raise - PermissionError on Android for a non-root user. - - - Issue #26936: Fix the test_socket failures on Android - getservbyname(), - getservbyport() and getaddrinfo() are broken on some Android API levels. - -- Issue #28666: Now test.support.rmtree is able to remove unwritable or - unreadable directories. - -- Issue #23839: Various caches now are cleared before running every test file. - -- Issue #26944: Fix test_posix for Android where 'id -G' is entirely wrong or - missing the effective gid. - -- Issue #28409: regrtest: fix the parser of command line arguments. - -- Issue #28217: Adds _testconsole module to test console input. - -- Issue #26939: Add the support.setswitchinterval() function to fix - test_functools hanging on the Android armv7 qemu emulator. +.. towncrier release notes start What's New in Python 3.6.1 release candidate 1? diff --git a/Misc/News/build/.gitignore b/Misc/News/build/.gitignore new file mode 100644 index 00000000000000..f935021a8f8a7b --- /dev/null +++ b/Misc/News/build/.gitignore @@ -0,0 +1 @@ +!.gitignore diff --git a/Misc/News/build/bpo-#28208.feature b/Misc/News/build/bpo-#28208.feature new file mode 100644 index 00000000000000..2deaf02c6dd29a --- /dev/null +++ b/Misc/News/build/bpo-#28208.feature @@ -0,0 +1 @@ +Update Windows build and OS X installers to use SQLite 3.14.2. diff --git a/Misc/News/build/bpo-10656.bugfix b/Misc/News/build/bpo-10656.bugfix new file mode 100644 index 00000000000000..62cc5469b05ee5 --- /dev/null +++ b/Misc/News/build/bpo-10656.bugfix @@ -0,0 +1,2 @@ +Fix out-of-tree building on AIX. Patch by Tristan Carel and Michael +Haubenwallner. diff --git a/Misc/News/build/bpo-13756.bugfix b/Misc/News/build/bpo-13756.bugfix new file mode 100644 index 00000000000000..b898c922d243d0 --- /dev/null +++ b/Misc/News/build/bpo-13756.bugfix @@ -0,0 +1,2 @@ +Fix building extensions modules on Cygwin. Patch by Roumen Petrov, based on +original patch by Jason Tishler. diff --git a/Misc/News/build/bpo-15819.bugfix b/Misc/News/build/bpo-15819.bugfix new file mode 100644 index 00000000000000..b5fdd6c8b66027 --- /dev/null +++ b/Misc/News/build/bpo-15819.bugfix @@ -0,0 +1,2 @@ +Remove redundant include search directory option for building outside the +source tree. diff --git a/Misc/News/build/bpo-20211.bugfix b/Misc/News/build/bpo-20211.bugfix new file mode 100644 index 00000000000000..8bbea8d6a8a9dc --- /dev/null +++ b/Misc/News/build/bpo-20211.bugfix @@ -0,0 +1,3 @@ +Do not add the directory for installing C header files and the directory for +installing object code libraries to the cross compilation search paths. +Original patch by Thomas Petazzoni. diff --git a/Misc/News/build/bpo-21085.bugfix b/Misc/News/build/bpo-21085.bugfix new file mode 100644 index 00000000000000..0fa16fb1755ea0 --- /dev/null +++ b/Misc/News/build/bpo-21085.bugfix @@ -0,0 +1,2 @@ +Add configure check for siginfo_t.si_band, which Cygwin does not provide. Patch +by Masayuki Yamamoto with review and rebase by Erik Bray. diff --git a/Misc/News/build/bpo-21124.bugfix b/Misc/News/build/bpo-21124.bugfix new file mode 100644 index 00000000000000..85743127a28779 --- /dev/null +++ b/Misc/News/build/bpo-21124.bugfix @@ -0,0 +1,2 @@ +Fix building the _struct module on Cygwin by passing ``NULL`` instead of +``&PyType_Type`` to PyVarObject_HEAD_INIT. Patch by Masayuki Yamamoto. diff --git a/Misc/News/build/bpo-23903.bugfix b/Misc/News/build/bpo-23903.bugfix new file mode 100644 index 00000000000000..39ff22212a0af0 --- /dev/null +++ b/Misc/News/build/bpo-23903.bugfix @@ -0,0 +1 @@ +Added missed names to PC/python3.def. diff --git a/Misc/News/build/bpo-26359.bugfix b/Misc/News/build/bpo-26359.bugfix new file mode 100644 index 00000000000000..581ddaf48c4715 --- /dev/null +++ b/Misc/News/build/bpo-26359.bugfix @@ -0,0 +1 @@ +Rename --with-optimiations to --enable-optimizations. diff --git a/Misc/News/build/bpo-26661.bugfix b/Misc/News/build/bpo-26661.bugfix new file mode 100644 index 00000000000000..af6057ab7813a7 --- /dev/null +++ b/Misc/News/build/bpo-26661.bugfix @@ -0,0 +1 @@ +setup.py now detects system libffi with multiarch wrapper. diff --git a/Misc/News/build/bpo-26851.bugfix b/Misc/News/build/bpo-26851.bugfix new file mode 100644 index 00000000000000..1b34a703d330b1 --- /dev/null +++ b/Misc/News/build/bpo-26851.bugfix @@ -0,0 +1 @@ +Set Android compilation and link flags. diff --git a/Misc/News/build/bpo-27593.feature b/Misc/News/build/bpo-27593.feature new file mode 100644 index 00000000000000..5b345e67a8695c --- /dev/null +++ b/Misc/News/build/bpo-27593.feature @@ -0,0 +1,3 @@ +sys.version and the platform module python_build(), python_branch(), and +python_revision() functions now use git information rather than hg when +building from a repo. diff --git a/Misc/News/build/bpo-27659.bugfix b/Misc/News/build/bpo-27659.bugfix new file mode 100644 index 00000000000000..38fabdf4976ec2 --- /dev/null +++ b/Misc/News/build/bpo-27659.bugfix @@ -0,0 +1,3 @@ +Prohibit implicit C function declarations: use +-Werror=implicit-function-declaration when possible (GCC and Clang, but it +depends on the compiler version). Patch written by Chi Hsuan Yen. diff --git a/Misc/News/build/bpo-27979.removal b/Misc/News/build/bpo-27979.removal new file mode 100644 index 00000000000000..305fea89328533 --- /dev/null +++ b/Misc/News/build/bpo-27979.removal @@ -0,0 +1,3 @@ +A full copy of libffi is no longer bundled for use when building _ctypes on +non-OSX UNIX platforms. An installed copy of libffi is now required when +building _ctypes on such platforms. diff --git a/Misc/News/build/bpo-28248.feature b/Misc/News/build/bpo-28248.feature new file mode 100644 index 00000000000000..18d369305248de --- /dev/null +++ b/Misc/News/build/bpo-28248.feature @@ -0,0 +1 @@ +Update Windows build and OS X installers to use OpenSSL 1.0.2j. diff --git a/Misc/News/build/bpo-28258.bugfix b/Misc/News/build/bpo-28258.bugfix new file mode 100644 index 00000000000000..8485412de43447 --- /dev/null +++ b/Misc/News/build/bpo-28258.bugfix @@ -0,0 +1,2 @@ +Fixed build with Estonian locale (python-config and distclean targets in +Makefile). Patch by Arfrever Frehtes Taifersar Arahesis. diff --git a/Misc/News/build/bpo-28444.bugfix b/Misc/News/build/bpo-28444.bugfix new file mode 100644 index 00000000000000..1df68241ca96d5 --- /dev/null +++ b/Misc/News/build/bpo-28444.bugfix @@ -0,0 +1 @@ +Fix missing extensions modules when cross compiling. diff --git a/Misc/News/build/bpo-28538.bugfix b/Misc/News/build/bpo-28538.bugfix new file mode 100644 index 00000000000000..ddaf34a5c746c1 --- /dev/null +++ b/Misc/News/build/bpo-28538.bugfix @@ -0,0 +1,2 @@ +Fix the compilation error that occurs because if_nameindex() is available on +Android API level 24, but the if_nameindex structure is not defined. diff --git a/Misc/News/build/bpo-28676.bugfix b/Misc/News/build/bpo-28676.bugfix new file mode 100644 index 00000000000000..b443d7ad1753f5 --- /dev/null +++ b/Misc/News/build/bpo-28676.bugfix @@ -0,0 +1 @@ +Prevent missing 'getentropy' declaration warning on macOS. Patch by Gareth Rees. diff --git a/Misc/News/build/bpo-28762.bugfix b/Misc/News/build/bpo-28762.bugfix new file mode 100644 index 00000000000000..0bfb77e442b0e0 --- /dev/null +++ b/Misc/News/build/bpo-28762.bugfix @@ -0,0 +1,2 @@ +lockf() is available on Android API level 24, but the F_LOCK macro is not +defined in android-ndk-r13. diff --git a/Misc/News/build/bpo-28768.bugfix b/Misc/News/build/bpo-28768.bugfix new file mode 100644 index 00000000000000..702e14e1a942d0 --- /dev/null +++ b/Misc/News/build/bpo-28768.bugfix @@ -0,0 +1 @@ +Fix implicit declaration of function _setmode. Patch by Masayuki Yamamoto diff --git a/Misc/News/build/bpo-28849.bugfix b/Misc/News/build/bpo-28849.bugfix new file mode 100644 index 00000000000000..9aac0219edcf48 --- /dev/null +++ b/Misc/News/build/bpo-28849.bugfix @@ -0,0 +1 @@ +Do not define sys.implementation._multiarch on Android. diff --git a/Misc/News/build/bpo-29080.bugfix b/Misc/News/build/bpo-29080.bugfix new file mode 100644 index 00000000000000..3a4b7bf4e120ff --- /dev/null +++ b/Misc/News/build/bpo-29080.bugfix @@ -0,0 +1 @@ +Removes hard dependency on hg.exe from PCBuild/build.bat diff --git a/Misc/News/build/bpo-29384.removal b/Misc/News/build/bpo-29384.removal new file mode 100644 index 00000000000000..ccd28085fccb34 --- /dev/null +++ b/Misc/News/build/bpo-29384.removal @@ -0,0 +1 @@ +Remove old Be OS helper scripts. diff --git a/Misc/News/build/bpo-29572.feature b/Misc/News/build/bpo-29572.feature new file mode 100644 index 00000000000000..9bf71f90d8141f --- /dev/null +++ b/Misc/News/build/bpo-29572.feature @@ -0,0 +1 @@ +Update Windows build and OS X installers to use OpenSSL 1.0.2k. diff --git a/Misc/News/c-api/.gitignore b/Misc/News/c-api/.gitignore new file mode 100644 index 00000000000000..f935021a8f8a7b --- /dev/null +++ b/Misc/News/c-api/.gitignore @@ -0,0 +1 @@ +!.gitignore diff --git a/Misc/News/c-api/bpo-19569.feature b/Misc/News/c-api/bpo-19569.feature new file mode 100644 index 00000000000000..703569af382f2b --- /dev/null +++ b/Misc/News/c-api/bpo-19569.feature @@ -0,0 +1 @@ +Compiler warnings are now emitted if use most of deprecated functions. diff --git a/Misc/News/c-api/bpo-27867.feature b/Misc/News/c-api/bpo-27867.feature new file mode 100644 index 00000000000000..5d93e9de42f1d6 --- /dev/null +++ b/Misc/News/c-api/bpo-27867.feature @@ -0,0 +1 @@ +Added functions PySlice_Unpack() and PySlice_AdjustIndices(). diff --git a/Misc/News/c-api/bpo-27867.removal b/Misc/News/c-api/bpo-27867.removal new file mode 100644 index 00000000000000..05a2e0f400f2ad --- /dev/null +++ b/Misc/News/c-api/bpo-27867.removal @@ -0,0 +1,3 @@ +Function PySlice_GetIndicesEx() is deprecated and replaced with a macro if +Py_LIMITED_API is not set or set to the value between 0x03050400 and 0x03060000 +(not including) or 0x03060100 or higher. diff --git a/Misc/News/c-api/bpo-28426.removal b/Misc/News/c-api/bpo-28426.removal new file mode 100644 index 00000000000000..9f18b72511392a --- /dev/null +++ b/Misc/News/c-api/bpo-28426.removal @@ -0,0 +1,3 @@ +Deprecated undocumented functions PyUnicode_AsEncodedObject(), +PyUnicode_AsDecodedObject(), PyUnicode_AsDecodedUnicode() and +PyUnicode_AsEncodedUnicode(). diff --git a/Misc/News/c-api/bpo-28748.bugfix b/Misc/News/c-api/bpo-28748.bugfix new file mode 100644 index 00000000000000..7e82c15b87c3f0 --- /dev/null +++ b/Misc/News/c-api/bpo-28748.bugfix @@ -0,0 +1,2 @@ +Private variable _Py_PackageContext is now of type ``const char *`` rather of +``char *``. diff --git a/Misc/News/c-api/bpo-28761.bugfix b/Misc/News/c-api/bpo-28761.bugfix new file mode 100644 index 00000000000000..84ac75292fffa3 --- /dev/null +++ b/Misc/News/c-api/bpo-28761.bugfix @@ -0,0 +1,3 @@ +The fields name and doc of structures PyMemberDef, PyGetSetDef, +PyStructSequence_Field, PyStructSequence_Desc, and wrapperbase are now of type +``const char *`` rather of ``char *``. diff --git a/Misc/News/c-api/bpo-28769.bugfix b/Misc/News/c-api/bpo-28769.bugfix new file mode 100644 index 00000000000000..7602f3e07a391c --- /dev/null +++ b/Misc/News/c-api/bpo-28769.bugfix @@ -0,0 +1,2 @@ +The result of PyUnicode_AsUTF8AndSize() and PyUnicode_AsUTF8() is now of type +``const char *`` rather of ``char *``. diff --git a/Misc/News/c-api/bpo-28808.bugfix b/Misc/News/c-api/bpo-28808.bugfix new file mode 100644 index 00000000000000..61276cdcc3d6f6 --- /dev/null +++ b/Misc/News/c-api/bpo-28808.bugfix @@ -0,0 +1 @@ +PyUnicode_CompareWithASCIIString() now never raises exceptions. diff --git a/Misc/News/c-api/bpo-28822.bugfix b/Misc/News/c-api/bpo-28822.bugfix new file mode 100644 index 00000000000000..caea7d041dbf52 --- /dev/null +++ b/Misc/News/c-api/bpo-28822.bugfix @@ -0,0 +1,2 @@ +The index parameters *start* and *end* of PyUnicode_FindChar() are now adjusted +to behave like ``str[start:end]``. diff --git a/Misc/News/c-api/bpo-29058.bugfix b/Misc/News/c-api/bpo-29058.bugfix new file mode 100644 index 00000000000000..c4b66e64220f7e --- /dev/null +++ b/Misc/News/c-api/bpo-29058.bugfix @@ -0,0 +1,3 @@ +All stable API extensions added after Python 3.2 are now available only when +Py_LIMITED_API is set to the PY_VERSION_HEX value of the minimum Python version +supporting this API. diff --git a/Misc/News/c-api/bpo-29083.bugfix b/Misc/News/c-api/bpo-29083.bugfix new file mode 100644 index 00000000000000..0ec2b0164cfd06 --- /dev/null +++ b/Misc/News/c-api/bpo-29083.bugfix @@ -0,0 +1,4 @@ +Fixed the declaration of some public API functions. PyArg_VaParse() and +PyArg_VaParseTupleAndKeywords() were not available in limited API. +PyArg_ValidateKeywordArguments(), PyArg_UnpackTuple() and Py_BuildValue() were +not available in limited API of version < 3.3 when PY_SSIZE_T_CLEAN is defined. diff --git a/Misc/News/core/.gitignore b/Misc/News/core/.gitignore new file mode 100644 index 00000000000000..f935021a8f8a7b --- /dev/null +++ b/Misc/News/core/.gitignore @@ -0,0 +1 @@ +!.gitignore diff --git a/Misc/News/core/bpo-12844.feature b/Misc/News/core/bpo-12844.feature new file mode 100644 index 00000000000000..3704fbaf0fb155 --- /dev/null +++ b/Misc/News/core/bpo-12844.feature @@ -0,0 +1 @@ +More than 255 arguments can now be passed to a function. diff --git a/Misc/News/core/bpo-18287.bugfix b/Misc/News/core/bpo-18287.bugfix new file mode 100644 index 00000000000000..5ed03823842e26 --- /dev/null +++ b/Misc/News/core/bpo-18287.bugfix @@ -0,0 +1,2 @@ +PyType_Ready() now checks that tp_name is not NULL. Original patch by Niklas +Koep. diff --git a/Misc/News/core/bpo-18896.feature b/Misc/News/core/bpo-18896.feature new file mode 100644 index 00000000000000..f182101cd31848 --- /dev/null +++ b/Misc/News/core/bpo-18896.feature @@ -0,0 +1,2 @@ +Python function can now have more than 255 parameters. collections.namedtuple() +now supports tuples with more than 255 elements. diff --git a/Misc/News/core/bpo-19398.bugfix b/Misc/News/core/bpo-19398.bugfix new file mode 100644 index 00000000000000..6fea99ce6f334f --- /dev/null +++ b/Misc/News/core/bpo-19398.bugfix @@ -0,0 +1,2 @@ +Extra slash no longer added to sys.path components in case of empty +compile-time PYTHONPATH components. diff --git a/Misc/News/core/bpo-21578.bugfix b/Misc/News/core/bpo-21578.bugfix new file mode 100644 index 00000000000000..15c4de3695008b --- /dev/null +++ b/Misc/News/core/bpo-21578.bugfix @@ -0,0 +1,2 @@ +Fixed misleading error message when ImportError called with invalid keyword +args. diff --git a/Misc/News/core/bpo-23722.bugfix b/Misc/News/core/bpo-23722.bugfix new file mode 100644 index 00000000000000..b387559db31dfb --- /dev/null +++ b/Misc/News/core/bpo-23722.bugfix @@ -0,0 +1,4 @@ +Rather than silently producing a class that doesn't support zero-argument +``super()`` in methods, failing to pass the new ``__classcell__`` namespace +entry up to ``type.__new__`` now results in a ``DeprecationWarning`` and a +class that supports zero-argument ``super()``. diff --git a/Misc/News/core/bpo-23782.bugfix b/Misc/News/core/bpo-23782.bugfix new file mode 100644 index 00000000000000..36e85d8f2dcced --- /dev/null +++ b/Misc/News/core/bpo-23782.bugfix @@ -0,0 +1,2 @@ +Fixed possible memory leak in _PyTraceback_Add() and exception loss in +PyTraceBack_Here(). diff --git a/Misc/News/core/bpo-24098.bugfix b/Misc/News/core/bpo-24098.bugfix new file mode 100644 index 00000000000000..82897ed22f3453 --- /dev/null +++ b/Misc/News/core/bpo-24098.bugfix @@ -0,0 +1 @@ +Fixed possible crash when AST is changed in process of compiling it. diff --git a/Misc/News/core/bpo-25677.bugfix b/Misc/News/core/bpo-25677.bugfix new file mode 100644 index 00000000000000..b73c205a092e0c --- /dev/null +++ b/Misc/News/core/bpo-25677.bugfix @@ -0,0 +1,2 @@ +Correct the positioning of the syntax error caret for indented blocks. Based on +patch by Michael Layzell. diff --git a/Misc/News/core/bpo-26081.feature b/Misc/News/core/bpo-26081.feature new file mode 100644 index 00000000000000..ada55163762a24 --- /dev/null +++ b/Misc/News/core/bpo-26081.feature @@ -0,0 +1 @@ +Added C implementation of asyncio.Future. Original patch by Yury Selivanov. diff --git a/Misc/News/core/bpo-26110.feature b/Misc/News/core/bpo-26110.feature new file mode 100644 index 00000000000000..b0f63ad24e9077 --- /dev/null +++ b/Misc/News/core/bpo-26110.feature @@ -0,0 +1 @@ +Speed-up method calls: add LOAD_METHOD and CALL_METHOD opcodes. diff --git a/Misc/News/core/bpo-26182.bugfix b/Misc/News/core/bpo-26182.bugfix new file mode 100644 index 00000000000000..e856dd28e9f804 --- /dev/null +++ b/Misc/News/core/bpo-26182.bugfix @@ -0,0 +1 @@ +Fix a refleak in code that raises DeprecationWarning. diff --git a/Misc/News/core/bpo-26182.removal b/Misc/News/core/bpo-26182.removal new file mode 100644 index 00000000000000..a02818573c2bf4 --- /dev/null +++ b/Misc/News/core/bpo-26182.removal @@ -0,0 +1,2 @@ +Raise DeprecationWarning when async and await keywords are used as +variable/attribute/class/function name. diff --git a/Misc/News/core/bpo-26617.bugfix b/Misc/News/core/bpo-26617.bugfix new file mode 100644 index 00000000000000..c3a41396df8f53 --- /dev/null +++ b/Misc/News/core/bpo-26617.bugfix @@ -0,0 +1 @@ +Fix crash when GC runs during weakref callbacks. diff --git a/Misc/News/core/bpo-26906.bugfix b/Misc/News/core/bpo-26906.bugfix new file mode 100644 index 00000000000000..9927fc9441b787 --- /dev/null +++ b/Misc/News/core/bpo-26906.bugfix @@ -0,0 +1,2 @@ +Resolving special methods of uninitialized type now causes implicit +initialization of the type instead of a fail. diff --git a/Misc/News/core/bpo-26919.bugfix b/Misc/News/core/bpo-26919.bugfix new file mode 100644 index 00000000000000..c766b360f3a505 --- /dev/null +++ b/Misc/News/core/bpo-26919.bugfix @@ -0,0 +1,3 @@ +On Android, operating system data is now always encoded/decoded to/from UTF-8, +instead of the locale encoding to avoid inconsistencies with os.fsencode() and +os.fsdecode() which are already using UTF-8. diff --git a/Misc/News/core/bpo-26920.bugfix b/Misc/News/core/bpo-26920.bugfix new file mode 100644 index 00000000000000..7d003d075f9c31 --- /dev/null +++ b/Misc/News/core/bpo-26920.bugfix @@ -0,0 +1,2 @@ +Fix not getting the locale's charset upon initializing the interpreter, on +platforms that do not have langinfo. diff --git a/Misc/News/core/bpo-27100.bugfix b/Misc/News/core/bpo-27100.bugfix new file mode 100644 index 00000000000000..671306ef3384df --- /dev/null +++ b/Misc/News/core/bpo-27100.bugfix @@ -0,0 +1,3 @@ +The with-statement now checks for __enter__ before it checks for __exit__. This +gives less confusing error messages when both methods are missing. Patch by +Jonathan Ellington. diff --git a/Misc/News/core/bpo-27222.bugfix b/Misc/News/core/bpo-27222.bugfix new file mode 100644 index 00000000000000..93410fa121c8b0 --- /dev/null +++ b/Misc/News/core/bpo-27222.bugfix @@ -0,0 +1 @@ +Clean up redundant code in long_rshift function. Thanks Oren Milman. diff --git a/Misc/News/core/bpo-27441.bugfix b/Misc/News/core/bpo-27441.bugfix new file mode 100644 index 00000000000000..2dd799d63b3c63 --- /dev/null +++ b/Misc/News/core/bpo-27441.bugfix @@ -0,0 +1,2 @@ +Remove some redundant assignments to ob_size in longobject.c. Thanks Oren +Milman. diff --git a/Misc/News/core/bpo-27942.bugfix b/Misc/News/core/bpo-27942.bugfix new file mode 100644 index 00000000000000..ca8dfef90aecd2 --- /dev/null +++ b/Misc/News/core/bpo-27942.bugfix @@ -0,0 +1 @@ +String constants now interned recursively in tuples and frozensets. diff --git a/Misc/News/core/bpo-27955.bugfix b/Misc/News/core/bpo-27955.bugfix new file mode 100644 index 00000000000000..d0ad1a96499196 --- /dev/null +++ b/Misc/News/core/bpo-27955.bugfix @@ -0,0 +1,2 @@ +Fallback on reading /dev/urandom device when the getrandom() syscall fails with +EPERM, for example when blocked by SECCOMP. diff --git a/Misc/News/core/bpo-28086.bugfix b/Misc/News/core/bpo-28086.bugfix new file mode 100644 index 00000000000000..faa9e3cf46e3dd --- /dev/null +++ b/Misc/News/core/bpo-28086.bugfix @@ -0,0 +1,2 @@ +Single var-positional argument of tuple subtype was passed unscathed to the +C-defined function. Now it is converted to exact tuple. diff --git a/Misc/News/core/bpo-28120.bugfix b/Misc/News/core/bpo-28120.bugfix new file mode 100644 index 00000000000000..55775ebab3f919 --- /dev/null +++ b/Misc/News/core/bpo-28120.bugfix @@ -0,0 +1,2 @@ +Fix dict.pop() for splitted dictionary when trying to remove a "pending key" +(Not yet inserted in split-table). Patch by Xiang Zhang. diff --git a/Misc/News/core/bpo-28126.feature b/Misc/News/core/bpo-28126.feature new file mode 100644 index 00000000000000..3c2ae05fd2e69b --- /dev/null +++ b/Misc/News/core/bpo-28126.feature @@ -0,0 +1 @@ +Replace Py_MEMCPY with memcpy(). Visual Studio can properly optimize memcpy(). diff --git a/Misc/News/core/bpo-28128.bugfix b/Misc/News/core/bpo-28128.bugfix new file mode 100644 index 00000000000000..5f177ff9c86fda --- /dev/null +++ b/Misc/News/core/bpo-28128.bugfix @@ -0,0 +1,3 @@ +Deprecation warning for invalid str and byte escape sequences now prints better +information about where the error occurs. Patch by Serhiy Storchaka and +Eric Smith. diff --git a/Misc/News/core/bpo-28131.bugfix b/Misc/News/core/bpo-28131.bugfix new file mode 100644 index 00000000000000..f532fa17d19d34 --- /dev/null +++ b/Misc/News/core/bpo-28131.bugfix @@ -0,0 +1,2 @@ +Fix a regression in zipimport's compile_source(). zipimport should use the +same optimization level as the interpreter. diff --git a/Misc/News/core/bpo-28147.bugfix b/Misc/News/core/bpo-28147.bugfix new file mode 100644 index 00000000000000..6188211677669f --- /dev/null +++ b/Misc/News/core/bpo-28147.bugfix @@ -0,0 +1,2 @@ +Fix a memory leak in split-table dictionaries: setattr() must not convert +combined table into split table. Patch written by INADA Naoki. diff --git a/Misc/News/core/bpo-28183.feature b/Misc/News/core/bpo-28183.feature new file mode 100644 index 00000000000000..2453de1d6007f2 --- /dev/null +++ b/Misc/News/core/bpo-28183.feature @@ -0,0 +1 @@ +Optimize and cleanup dict iteration. diff --git a/Misc/News/core/bpo-28192.bugfix b/Misc/News/core/bpo-28192.bugfix new file mode 100644 index 00000000000000..cc6e57cb3d6c4a --- /dev/null +++ b/Misc/News/core/bpo-28192.bugfix @@ -0,0 +1 @@ +Don't import readline in isolated mode. diff --git a/Misc/News/core/bpo-28201.bugfix b/Misc/News/core/bpo-28201.bugfix new file mode 100644 index 00000000000000..d1b56f52909094 --- /dev/null +++ b/Misc/News/core/bpo-28201.bugfix @@ -0,0 +1,2 @@ +Dict reduces possibility of 2nd conflict in hash table when hashes have same +lower bits. diff --git a/Misc/News/core/bpo-28203.bugfix b/Misc/News/core/bpo-28203.bugfix new file mode 100644 index 00000000000000..beb55cac8dde40 --- /dev/null +++ b/Misc/News/core/bpo-28203.bugfix @@ -0,0 +1 @@ +Fix incorrect type in complex(1.0, {2:3}) error message. Patch by Soumya Sharma. diff --git a/Misc/News/core/bpo-28214.bugfix b/Misc/News/core/bpo-28214.bugfix new file mode 100644 index 00000000000000..3c3e5580fb17c0 --- /dev/null +++ b/Misc/News/core/bpo-28214.bugfix @@ -0,0 +1,2 @@ +Improved exception reporting for problematic __set_name__ attributes by looking +up on class instead of instance. diff --git a/Misc/News/core/bpo-28289.bugfix b/Misc/News/core/bpo-28289.bugfix new file mode 100644 index 00000000000000..577e3f0a9b250b --- /dev/null +++ b/Misc/News/core/bpo-28289.bugfix @@ -0,0 +1 @@ +ImportError.__init__ now resets not specified attributes. diff --git a/Misc/News/core/bpo-28350.bugfix b/Misc/News/core/bpo-28350.bugfix new file mode 100644 index 00000000000000..013b3e13fabf34 --- /dev/null +++ b/Misc/News/core/bpo-28350.bugfix @@ -0,0 +1 @@ +String constants with null character no longer interned. diff --git a/Misc/News/core/bpo-28376.bugfix b/Misc/News/core/bpo-28376.bugfix new file mode 100644 index 00000000000000..0beccca88e9cdb --- /dev/null +++ b/Misc/News/core/bpo-28376.bugfix @@ -0,0 +1,2 @@ +The type of long range iterator is now registered as Iterator. Patch by Oren +Milman. diff --git a/Misc/News/core/bpo-28376.removal b/Misc/News/core/bpo-28376.removal new file mode 100644 index 00000000000000..d21a1b7ec62478 --- /dev/null +++ b/Misc/News/core/bpo-28376.removal @@ -0,0 +1,3 @@ +Creating instances of range_iterator by calling range_iterator type now is +disallowed. Calling iter() on range instance is the only way. Patch by Oren +Milman. diff --git a/Misc/News/core/bpo-28379.bugfix b/Misc/News/core/bpo-28379.bugfix new file mode 100644 index 00000000000000..023812b6291f50 --- /dev/null +++ b/Misc/News/core/bpo-28379.bugfix @@ -0,0 +1,2 @@ +Added sanity checks and tests for PyUnicode_CopyCharacters(). Patch by Xiang +Zhang. diff --git a/Misc/News/core/bpo-28426.bugfix b/Misc/News/core/bpo-28426.bugfix new file mode 100644 index 00000000000000..f21b3db00cf532 --- /dev/null +++ b/Misc/News/core/bpo-28426.bugfix @@ -0,0 +1 @@ +Fixed potential crash in PyUnicode_AsDecodedObject() in debug build. diff --git a/Misc/News/core/bpo-28509.bugfix b/Misc/News/core/bpo-28509.bugfix new file mode 100644 index 00000000000000..040b7e7764eb26 --- /dev/null +++ b/Misc/News/core/bpo-28509.bugfix @@ -0,0 +1 @@ +dict.update() no longer allocate unnecessary large memory. diff --git a/Misc/News/core/bpo-28512.bugfix b/Misc/News/core/bpo-28512.bugfix new file mode 100644 index 00000000000000..4aa1f90eabeabe --- /dev/null +++ b/Misc/News/core/bpo-28512.bugfix @@ -0,0 +1,2 @@ +Fixed setting the offset attribute of SyntaxError by PyErr_SyntaxLocationEx() +and PyErr_SyntaxLocationObject(). diff --git a/Misc/News/core/bpo-28517.bugfix b/Misc/News/core/bpo-28517.bugfix new file mode 100644 index 00000000000000..c93909527cb2de --- /dev/null +++ b/Misc/News/core/bpo-28517.bugfix @@ -0,0 +1,2 @@ +Fixed of-by-one error in the peephole optimizer that caused keeping unreachable +code. diff --git a/Misc/News/core/bpo-28532.feature b/Misc/News/core/bpo-28532.feature new file mode 100644 index 00000000000000..3a058ac82c3367 --- /dev/null +++ b/Misc/News/core/bpo-28532.feature @@ -0,0 +1 @@ +Show sys.version when -V option is supplied twice. diff --git a/Misc/News/core/bpo-28580.feature b/Misc/News/core/bpo-28580.feature new file mode 100644 index 00000000000000..cfc9737b72babd --- /dev/null +++ b/Misc/News/core/bpo-28580.feature @@ -0,0 +1 @@ +Optimize iterating split table values. Patch by Xiang Zhang. diff --git a/Misc/News/core/bpo-28583.bugfix b/Misc/News/core/bpo-28583.bugfix new file mode 100644 index 00000000000000..207dbeed5b5955 --- /dev/null +++ b/Misc/News/core/bpo-28583.bugfix @@ -0,0 +1 @@ +PyDict_SetDefault didn't combine split table when needed. Patch by Xiang Zhang. diff --git a/Misc/News/core/bpo-28596.bugfix b/Misc/News/core/bpo-28596.bugfix new file mode 100644 index 00000000000000..9f63ef982a9d30 --- /dev/null +++ b/Misc/News/core/bpo-28596.bugfix @@ -0,0 +1 @@ +The preferred encoding is UTF-8 on Android. Patch written by Chi Hsuan Yen. diff --git a/Misc/News/core/bpo-28598.bugfix b/Misc/News/core/bpo-28598.bugfix new file mode 100644 index 00000000000000..641842b110e0b6 --- /dev/null +++ b/Misc/News/core/bpo-28598.bugfix @@ -0,0 +1,2 @@ +Support __rmod__ for subclasses of str being called before str.__mod__. Patch +by Martijn Pieters. diff --git a/Misc/News/core/bpo-28621.feature b/Misc/News/core/bpo-28621.feature new file mode 100644 index 00000000000000..7d695e9fb913eb --- /dev/null +++ b/Misc/News/core/bpo-28621.feature @@ -0,0 +1,2 @@ +Sped up converting int to float by reusing faster bits counting implementation. +Patch by Adrian Wielgosik. diff --git a/Misc/News/core/bpo-28648.bugfix b/Misc/News/core/bpo-28648.bugfix new file mode 100644 index 00000000000000..03bdfbd62e0cf0 --- /dev/null +++ b/Misc/News/core/bpo-28648.bugfix @@ -0,0 +1,2 @@ +Fixed crash in Py_DecodeLocale() in debug build on Mac OS X when decode astral +characters. Patch by Xiang Zhang. diff --git a/Misc/News/core/bpo-28665.feature b/Misc/News/core/bpo-28665.feature new file mode 100644 index 00000000000000..b9e965d11de622 --- /dev/null +++ b/Misc/News/core/bpo-28665.feature @@ -0,0 +1 @@ +Improve speed of the STORE_DEREF opcode by 40%. diff --git a/Misc/News/core/bpo-28721.bugfix b/Misc/News/core/bpo-28721.bugfix new file mode 100644 index 00000000000000..b09dea4913a7ef --- /dev/null +++ b/Misc/News/core/bpo-28721.bugfix @@ -0,0 +1,2 @@ +Fix asynchronous generators aclose() and athrow() to handle StopAsyncIteration +propagation properly. diff --git a/Misc/News/core/bpo-28731.feature b/Misc/News/core/bpo-28731.feature new file mode 100644 index 00000000000000..a2fa1d5027edea --- /dev/null +++ b/Misc/News/core/bpo-28731.feature @@ -0,0 +1,2 @@ +Optimize _PyDict_NewPresized() to create correct size dict. Improve speed of +dict literal with constant keys up to 30%. diff --git a/Misc/News/core/bpo-28739.removal b/Misc/News/core/bpo-28739.removal new file mode 100644 index 00000000000000..10be6c33d94f5c --- /dev/null +++ b/Misc/News/core/bpo-28739.removal @@ -0,0 +1,2 @@ +f-string expressions are no longer accepted as docstrings and by +ast.literal_eval() even if they do not include expressions. diff --git a/Misc/News/core/bpo-28746.bugfix b/Misc/News/core/bpo-28746.bugfix new file mode 100644 index 00000000000000..1d845661a3bf9e --- /dev/null +++ b/Misc/News/core/bpo-28746.bugfix @@ -0,0 +1,2 @@ +Fix the set_inheritable() file descriptor method on platforms that do not have +the ioctl FIOCLEX and FIONCLEX commands. diff --git a/Misc/News/core/bpo-28774.bugfix b/Misc/News/core/bpo-28774.bugfix new file mode 100644 index 00000000000000..d313b94dc2cc03 --- /dev/null +++ b/Misc/News/core/bpo-28774.bugfix @@ -0,0 +1,4 @@ +Fix error position of the unicode error in ASCII and Latin1 encoders when a +string returned by the error handler contains multiple non-encodable characters +(non-ASCII for the ASCII codec, characters out of the U+0000-U+00FF range for +Latin1). diff --git a/Misc/News/core/bpo-28782.bugfix b/Misc/News/core/bpo-28782.bugfix new file mode 100644 index 00000000000000..18aa65773035c1 --- /dev/null +++ b/Misc/News/core/bpo-28782.bugfix @@ -0,0 +1,2 @@ +Fix a bug in the implementation ``yield from`` when checking if the next +instruction is YIELD_FROM. Regression introduced by WORDCODE (bpo-26647). diff --git a/Misc/News/core/bpo-28797.bugfix b/Misc/News/core/bpo-28797.bugfix new file mode 100644 index 00000000000000..8735cad80ca18a --- /dev/null +++ b/Misc/News/core/bpo-28797.bugfix @@ -0,0 +1,3 @@ +Modifying the class __dict__ inside the __set_name__ method of a descriptor +that is used inside that class no longer prevents calling the __set_name__ +method of other descriptors. diff --git a/Misc/News/core/bpo-28799.removal b/Misc/News/core/bpo-28799.removal new file mode 100644 index 00000000000000..214190cd9aba3b --- /dev/null +++ b/Misc/News/core/bpo-28799.removal @@ -0,0 +1,4 @@ +Remove the ``PyEval_GetCallStats()`` function and deprecate the untested and +undocumented ``sys.callstats()`` function. Remove the ``CALL_PROFILE`` special +build: use the :func:`sys.setprofile` function, :mod:`cProfile` or +:mod:`profile` to profile function calls. diff --git a/Misc/News/core/bpo-28893.bugfix b/Misc/News/core/bpo-28893.bugfix new file mode 100644 index 00000000000000..15b74e714aa564 --- /dev/null +++ b/Misc/News/core/bpo-28893.bugfix @@ -0,0 +1,2 @@ +Set correct __cause__ for errors about invalid awaitables returned from +__aiter__ and __anext__. diff --git a/Misc/News/core/bpo-28918.bugfix b/Misc/News/core/bpo-28918.bugfix new file mode 100644 index 00000000000000..de52d502ae108a --- /dev/null +++ b/Misc/News/core/bpo-28918.bugfix @@ -0,0 +1,2 @@ +Fix the cross compilation of xxlimited when Python has been built with Py_DEBUG +defined. diff --git a/Misc/News/core/bpo-28927.feature b/Misc/News/core/bpo-28927.feature new file mode 100644 index 00000000000000..39358cd29c802b --- /dev/null +++ b/Misc/News/core/bpo-28927.feature @@ -0,0 +1,2 @@ +bytes.fromhex() and bytearray.fromhex() now ignore all ASCII whitespace, not +only spaces. Patch by Robert Xiao. diff --git a/Misc/News/core/bpo-28932.bugfix b/Misc/News/core/bpo-28932.bugfix new file mode 100644 index 00000000000000..e20901189b2f22 --- /dev/null +++ b/Misc/News/core/bpo-28932.bugfix @@ -0,0 +1 @@ +Do not include if it does not exist. diff --git a/Misc/News/core/bpo-28991.bugfix b/Misc/News/core/bpo-28991.bugfix new file mode 100644 index 00000000000000..bcf0f6a840256e --- /dev/null +++ b/Misc/News/core/bpo-28991.bugfix @@ -0,0 +1,2 @@ +functools.lru_cache() was susceptible to an obscure reentrancy bug triggerable +by a monkey-patched len() function. diff --git a/Misc/News/core/bpo-29000.bugfix b/Misc/News/core/bpo-29000.bugfix new file mode 100644 index 00000000000000..94c8b054e870ea --- /dev/null +++ b/Misc/News/core/bpo-29000.bugfix @@ -0,0 +1 @@ +Fixed bytes formatting of octals with zero padding in alternate form. diff --git a/Misc/News/core/bpo-29034.bugfix b/Misc/News/core/bpo-29034.bugfix new file mode 100644 index 00000000000000..a356cd784e3c04 --- /dev/null +++ b/Misc/News/core/bpo-29034.bugfix @@ -0,0 +1 @@ +Fix memory leak and use-after-free in os module (path_converter). diff --git a/Misc/News/core/bpo-29049.feature b/Misc/News/core/bpo-29049.feature new file mode 100644 index 00000000000000..3db2de7247c934 --- /dev/null +++ b/Misc/News/core/bpo-29049.feature @@ -0,0 +1,2 @@ +Call _PyObject_GC_TRACK() lazily when calling Python function. Calling function +is up to 5% faster. diff --git a/Misc/News/core/bpo-29159.bugfix b/Misc/News/core/bpo-29159.bugfix new file mode 100644 index 00000000000000..e67ea280100569 --- /dev/null +++ b/Misc/News/core/bpo-29159.bugfix @@ -0,0 +1 @@ +Fix regression in bytes(x) when x.__index__() raises Exception. diff --git a/Misc/News/core/bpo-29319.bugfix b/Misc/News/core/bpo-29319.bugfix new file mode 100644 index 00000000000000..254d8731d56a0e --- /dev/null +++ b/Misc/News/core/bpo-29319.bugfix @@ -0,0 +1 @@ +Prevent RunMainFromImporter overwriting sys.path[0]. diff --git a/Misc/News/core/bpo-29327.bugfix b/Misc/News/core/bpo-29327.bugfix new file mode 100644 index 00000000000000..f23bad0bc1a063 --- /dev/null +++ b/Misc/News/core/bpo-29327.bugfix @@ -0,0 +1 @@ +Fixed a crash when pass the iterable keyword argument to sorted(). diff --git a/Misc/News/core/bpo-29337.bugfix b/Misc/News/core/bpo-29337.bugfix new file mode 100644 index 00000000000000..201325cbf6cafc --- /dev/null +++ b/Misc/News/core/bpo-29337.bugfix @@ -0,0 +1,2 @@ +Fixed possible BytesWarning when compare the code objects. Warnings could be +emitted at compile time. diff --git a/Misc/News/core/bpo-29347.bugfix b/Misc/News/core/bpo-29347.bugfix new file mode 100644 index 00000000000000..82d21ca66e6215 --- /dev/null +++ b/Misc/News/core/bpo-29347.bugfix @@ -0,0 +1 @@ +Fixed possibly dereferencing undefined pointers when creating weakref objects. diff --git a/Misc/News/core/bpo-29438.bugfix b/Misc/News/core/bpo-29438.bugfix new file mode 100644 index 00000000000000..e3eecb6136e94a --- /dev/null +++ b/Misc/News/core/bpo-29438.bugfix @@ -0,0 +1 @@ +Fixed use-after-free problem in key sharing dict. diff --git a/Misc/News/core/bpo-29463.feature b/Misc/News/core/bpo-29463.feature new file mode 100644 index 00000000000000..463a59d30785bc --- /dev/null +++ b/Misc/News/core/bpo-29463.feature @@ -0,0 +1,3 @@ +Add ``docstring`` field to Module, ClassDef, FunctionDef, and AsyncFunctionDef +ast nodes. docstring is not first stmt in their body anymore. It affects +``co_firstlineno`` and ``co_lnotab`` of code object for module and class. diff --git a/Misc/News/core/bpo-29546.feature b/Misc/News/core/bpo-29546.feature new file mode 100644 index 00000000000000..f490bffba94143 --- /dev/null +++ b/Misc/News/core/bpo-29546.feature @@ -0,0 +1,2 @@ +Improve from-import error message with location and set the 'path' and 'name' +attribute on ImportError for ``from ... import ...``. diff --git a/Misc/News/core/bpo-29602.bugfix b/Misc/News/core/bpo-29602.bugfix new file mode 100644 index 00000000000000..cc1366caf30dab --- /dev/null +++ b/Misc/News/core/bpo-29602.bugfix @@ -0,0 +1,3 @@ +Fix incorrect handling of signed zeros in complex constructor for complex +subclasses and for inputs having a __complex__ method. Patch by Serhiy +Storchaka. diff --git a/Misc/News/core/bpo-29607.bugfix b/Misc/News/core/bpo-29607.bugfix new file mode 100644 index 00000000000000..84e3678f56b23e --- /dev/null +++ b/Misc/News/core/bpo-29607.bugfix @@ -0,0 +1 @@ +Fix stack_effect computation for CALL_FUNCTION_EX. Patch by Matthieu Dartiailh. diff --git a/Misc/News/core/bpo-29683.bugfix b/Misc/News/core/bpo-29683.bugfix new file mode 100644 index 00000000000000..5c6a62de07a498 --- /dev/null +++ b/Misc/News/core/bpo-29683.bugfix @@ -0,0 +1 @@ +Fixes to memory allocation in _PyCode_SetExtra. Patch by Brian Coleman. diff --git a/Misc/News/core/bpo-29684.bugfix b/Misc/News/core/bpo-29684.bugfix new file mode 100644 index 00000000000000..738e3fc7eb4d16 --- /dev/null +++ b/Misc/News/core/bpo-29684.bugfix @@ -0,0 +1,3 @@ +Fix minor regression of PyEval_CallObjectWithKeywords. It should raise +TypeError when kwargs is not a dict. But it might cause segv when args=NULL +and kwargs is not a dict. diff --git a/Misc/News/core/bpo-29695.removal b/Misc/News/core/bpo-29695.removal new file mode 100644 index 00000000000000..6f5ff0261d4534 --- /dev/null +++ b/Misc/News/core/bpo-29695.removal @@ -0,0 +1,2 @@ +bool(), float(), list() and tuple() no longer take keyword arguments. The first +argument of int() can now be passes only as positional argument. diff --git a/Misc/News/core/bpo-29714.bugfix b/Misc/News/core/bpo-29714.bugfix new file mode 100644 index 00000000000000..0e1c5430fb438d --- /dev/null +++ b/Misc/News/core/bpo-29714.bugfix @@ -0,0 +1 @@ +Fix a regression that bytes format may fail when containing zero bytes inside. diff --git a/Misc/News/core/bpo-7777777.misc b/Misc/News/core/bpo-7777777.misc new file mode 100644 index 00000000000000..f2223f5600a658 --- /dev/null +++ b/Misc/News/core/bpo-7777777.misc @@ -0,0 +1 @@ +This is a misc issue, it doesn't deserve a whole entry. diff --git a/Misc/News/core/bpo-8888888.misc b/Misc/News/core/bpo-8888888.misc new file mode 100644 index 00000000000000..f2223f5600a658 --- /dev/null +++ b/Misc/News/core/bpo-8888888.misc @@ -0,0 +1 @@ +This is a misc issue, it doesn't deserve a whole entry. diff --git a/Misc/News/core/bpo-9999999.misc b/Misc/News/core/bpo-9999999.misc new file mode 100644 index 00000000000000..f2223f5600a658 --- /dev/null +++ b/Misc/News/core/bpo-9999999.misc @@ -0,0 +1 @@ +This is a misc issue, it doesn't deserve a whole entry. diff --git a/Misc/News/core/bpo-unknown.feature b/Misc/News/core/bpo-unknown.feature new file mode 100644 index 00000000000000..b72692d191fcf7 --- /dev/null +++ b/Misc/News/core/bpo-unknown.feature @@ -0,0 +1 @@ +Upgrade internal unicode databases to Unicode version 9.0.0. diff --git a/Misc/News/docs/.gitignore b/Misc/News/docs/.gitignore new file mode 100644 index 00000000000000..f935021a8f8a7b --- /dev/null +++ b/Misc/News/docs/.gitignore @@ -0,0 +1 @@ +!.gitignore diff --git a/Misc/News/docs/bpo-23722.doc b/Misc/News/docs/bpo-23722.doc new file mode 100644 index 00000000000000..a157407b970b63 --- /dev/null +++ b/Misc/News/docs/bpo-23722.doc @@ -0,0 +1,3 @@ +The data model reference and the porting section in the 3.6 What's New guide +now covers the additional ``__classcell__`` handling needed for custom +metaclasses to fully support PEP 487 and zero-argument ``super()``. diff --git a/Misc/News/docs/bpo-25008.doc b/Misc/News/docs/bpo-25008.doc new file mode 100644 index 00000000000000..ea4046ead7de0d --- /dev/null +++ b/Misc/News/docs/bpo-25008.doc @@ -0,0 +1,2 @@ +Document smtpd.py as effectively deprecated and add a pointer to aiosmtpd, a +third-party asyncio-based replacement. diff --git a/Misc/News/docs/bpo-26355.doc b/Misc/News/docs/bpo-26355.doc new file mode 100644 index 00000000000000..2614c0ba850329 --- /dev/null +++ b/Misc/News/docs/bpo-26355.doc @@ -0,0 +1,2 @@ +Add canonical header link on each page to corresponding major version of the +documentation. Patch by Matthias Bussonnier. diff --git a/Misc/News/docs/bpo-28513.doc b/Misc/News/docs/bpo-28513.doc new file mode 100644 index 00000000000000..b758724fb71358 --- /dev/null +++ b/Misc/News/docs/bpo-28513.doc @@ -0,0 +1 @@ +Documented command-line interface of zipfile. diff --git a/Misc/News/docs/bpo-28929.doc b/Misc/News/docs/bpo-28929.doc new file mode 100644 index 00000000000000..acacdd01322edf --- /dev/null +++ b/Misc/News/docs/bpo-28929.doc @@ -0,0 +1 @@ +Link the documentation to its source file on GitHub. diff --git a/Misc/News/docs/bpo-29349.doc b/Misc/News/docs/bpo-29349.doc new file mode 100644 index 00000000000000..09f6f3889b5989 --- /dev/null +++ b/Misc/News/docs/bpo-29349.doc @@ -0,0 +1 @@ +Fix Python 2 syntax in code for building the documentation. diff --git a/Misc/News/extensions/.gitignore b/Misc/News/extensions/.gitignore new file mode 100644 index 00000000000000..f935021a8f8a7b --- /dev/null +++ b/Misc/News/extensions/.gitignore @@ -0,0 +1 @@ +!.gitignore diff --git a/Misc/News/extensions/bpo-29169.feature b/Misc/News/extensions/bpo-29169.feature new file mode 100644 index 00000000000000..96d066d41d2e66 --- /dev/null +++ b/Misc/News/extensions/bpo-29169.feature @@ -0,0 +1 @@ +Update zlib to 1.2.11. diff --git a/Misc/News/library/.gitignore b/Misc/News/library/.gitignore new file mode 100644 index 00000000000000..f935021a8f8a7b --- /dev/null +++ b/Misc/News/library/.gitignore @@ -0,0 +1 @@ +!.gitignore diff --git a/Misc/News/library/bpo-13051.bugfix b/Misc/News/library/bpo-13051.bugfix new file mode 100644 index 00000000000000..87fe36e34a61e0 --- /dev/null +++ b/Misc/News/library/bpo-13051.bugfix @@ -0,0 +1,2 @@ +Fixed recursion errors in large or resized curses.textpad.Textbox. Based on +patch by Tycho Andersen. diff --git a/Misc/News/library/bpo-15812.bugfix b/Misc/News/library/bpo-15812.bugfix new file mode 100644 index 00000000000000..b673ecf4efbe07 --- /dev/null +++ b/Misc/News/library/bpo-15812.bugfix @@ -0,0 +1,2 @@ +inspect.getframeinfo() now correctly shows the first line of a context. Patch +by Sam Breese. diff --git a/Misc/News/library/bpo-16255.bugfix b/Misc/News/library/bpo-16255.bugfix new file mode 100644 index 00000000000000..c7fd44b6651772 --- /dev/null +++ b/Misc/News/library/bpo-16255.bugfix @@ -0,0 +1,2 @@ +subprocess.Popen uses /system/bin/sh on Android as the shell, instead of +/bin/sh. diff --git a/Misc/News/library/bpo-16285.bugfix b/Misc/News/library/bpo-16285.bugfix new file mode 100644 index 00000000000000..e778ed36342003 --- /dev/null +++ b/Misc/News/library/bpo-16285.bugfix @@ -0,0 +1,3 @@ +urrlib.parse.quote is now based on RFC 3986 and hence includes '~' in the set +of characters that is not quoted by default. Patch by Christian Theune and +Ratnadeep Debnath. diff --git a/Misc/News/library/bpo-18219.feature b/Misc/News/library/bpo-18219.feature new file mode 100644 index 00000000000000..9906188d5ff95d --- /dev/null +++ b/Misc/News/library/bpo-18219.feature @@ -0,0 +1 @@ +Optimize csv.DictWriter for large number of columns. Patch by Mariatta Wijaya. diff --git a/Misc/News/library/bpo-18844.feature b/Misc/News/library/bpo-18844.feature new file mode 100644 index 00000000000000..e4073ca3b2b78d --- /dev/null +++ b/Misc/News/library/bpo-18844.feature @@ -0,0 +1,3 @@ +random.choices() now has k as a keyword-only argument to improve the +readability of common cases and come into line with the signature used in other +languages. diff --git a/Misc/News/library/bpo-18893.bugfix b/Misc/News/library/bpo-18893.bugfix new file mode 100644 index 00000000000000..93a3b0bc7ba534 --- /dev/null +++ b/Misc/News/library/bpo-18893.bugfix @@ -0,0 +1,2 @@ +Fix invalid exception handling in Lib/ctypes/macholib/dyld.py. Patch by Madison +May. diff --git a/Misc/News/library/bpo-19542.bugfix b/Misc/News/library/bpo-19542.bugfix new file mode 100644 index 00000000000000..b2e4e06d79a513 --- /dev/null +++ b/Misc/News/library/bpo-19542.bugfix @@ -0,0 +1,2 @@ +Fix bugs in WeakValueDictionary.setdefault() and WeakValueDictionary.pop() when +a GC collection happens in another thread. diff --git a/Misc/News/library/bpo-19717.bugfix b/Misc/News/library/bpo-19717.bugfix new file mode 100644 index 00000000000000..74ed00bd8b2feb --- /dev/null +++ b/Misc/News/library/bpo-19717.bugfix @@ -0,0 +1 @@ +Makes Path.resolve() succeed on paths that do not exist. Patch by Vajrasky Kok diff --git a/Misc/News/library/bpo-20191.bugfix b/Misc/News/library/bpo-20191.bugfix new file mode 100644 index 00000000000000..8ea757bb42fc24 --- /dev/null +++ b/Misc/News/library/bpo-20191.bugfix @@ -0,0 +1,2 @@ +Fixed a crash in resource.prlimit() when passing a sequence that doesn't own +its elements as limits. diff --git a/Misc/News/library/bpo-20491.bugfix b/Misc/News/library/bpo-20491.bugfix new file mode 100644 index 00000000000000..89c4c2dfb325d1 --- /dev/null +++ b/Misc/News/library/bpo-20491.bugfix @@ -0,0 +1,2 @@ +The textwrap.TextWrapper class now honors non-breaking spaces. Based on patch +by Kaarle Ritvanen. diff --git a/Misc/News/library/bpo-20572.removal b/Misc/News/library/bpo-20572.removal new file mode 100644 index 00000000000000..f46906f5e4c117 --- /dev/null +++ b/Misc/News/library/bpo-20572.removal @@ -0,0 +1,2 @@ +Remove the subprocess.Popen.wait endtime parameter. It was deprecated in 3.4 +and undocumented prior to that. diff --git a/Misc/News/library/bpo-20766.bugfix b/Misc/News/library/bpo-20766.bugfix new file mode 100644 index 00000000000000..5495b7835680a4 --- /dev/null +++ b/Misc/News/library/bpo-20766.bugfix @@ -0,0 +1 @@ +Fix references leaked by pdb in the handling of SIGINT handlers. diff --git a/Misc/News/library/bpo-20804.bugfix b/Misc/News/library/bpo-20804.bugfix new file mode 100644 index 00000000000000..90423a13d9fdea --- /dev/null +++ b/Misc/News/library/bpo-20804.bugfix @@ -0,0 +1,2 @@ +The unittest.mock.sentinel attributes now preserve their identity when they are +copied or pickled. diff --git a/Misc/News/library/bpo-22493.bugfix b/Misc/News/library/bpo-22493.bugfix new file mode 100644 index 00000000000000..fedd5a5fd101ed --- /dev/null +++ b/Misc/News/library/bpo-22493.bugfix @@ -0,0 +1,2 @@ +Warning message emitted by using inline flags in the middle of regular +expression now contains a (truncated) regex pattern. Patch by Tim Graham. diff --git a/Misc/News/library/bpo-22807.feature b/Misc/News/library/bpo-22807.feature new file mode 100644 index 00000000000000..e1721ee9cab0b6 --- /dev/null +++ b/Misc/News/library/bpo-22807.feature @@ -0,0 +1,2 @@ +Add uuid.SafeUUID and uuid.UUID.is_safe to relay information from the platform +about whether generated UUIDs are generated with a multiprocessing safe method. diff --git a/Misc/News/library/bpo-23214.bugfix b/Misc/News/library/bpo-23214.bugfix new file mode 100644 index 00000000000000..a09e1d8cba6704 --- /dev/null +++ b/Misc/News/library/bpo-23214.bugfix @@ -0,0 +1,3 @@ +In the "io" module, the argument to BufferedReader and BytesIO's read1() +methods is now optional and can be -1, matching the BufferedIOBase +specification. diff --git a/Misc/News/library/bpo-23262.feature b/Misc/News/library/bpo-23262.feature new file mode 100644 index 00000000000000..26a345062e7f06 --- /dev/null +++ b/Misc/News/library/bpo-23262.feature @@ -0,0 +1,2 @@ +The webbrowser module now supports Firefox 36+ and derived browsers. Based on +patch by Oleg Broytman. diff --git a/Misc/News/library/bpo-24142.bugfix b/Misc/News/library/bpo-24142.bugfix new file mode 100644 index 00000000000000..4d288566054e8c --- /dev/null +++ b/Misc/News/library/bpo-24142.bugfix @@ -0,0 +1,2 @@ +Reading a corrupt config file left configparser in an invalid state. Original +patch by Florian Höch. diff --git a/Misc/News/library/bpo-24241.feature b/Misc/News/library/bpo-24241.feature new file mode 100644 index 00000000000000..0aa7db90a9368b --- /dev/null +++ b/Misc/News/library/bpo-24241.feature @@ -0,0 +1,4 @@ +The webbrowser in an X environment now prefers using the default browser +directly. Also, the webbrowser register() function now has a documented +'preferred' argument, to specify browsers to be returned by get() with no +arguments. Patch by David Steele diff --git a/Misc/News/library/bpo-24452.feature b/Misc/News/library/bpo-24452.feature new file mode 100644 index 00000000000000..26bb026dd00b02 --- /dev/null +++ b/Misc/News/library/bpo-24452.feature @@ -0,0 +1 @@ +Make webbrowser support Chrome on Mac OS X. Patch by Ned Batchelder. diff --git a/Misc/News/library/bpo-25270.bugfix b/Misc/News/library/bpo-25270.bugfix new file mode 100644 index 00000000000000..fe11915953de0b --- /dev/null +++ b/Misc/News/library/bpo-25270.bugfix @@ -0,0 +1,2 @@ +Prevent codecs.escape_encode() from raising SystemError when an empty +bytestring is passed. diff --git a/Misc/News/library/bpo-25400.bugfix b/Misc/News/library/bpo-25400.bugfix new file mode 100644 index 00000000000000..5683ec48b5929f --- /dev/null +++ b/Misc/News/library/bpo-25400.bugfix @@ -0,0 +1,2 @@ +RobotFileParser now correctly returns default values for crawl_delay and +request_rate. Initial patch by Peter Wirtz. diff --git a/Misc/News/library/bpo-25464.bugfix b/Misc/News/library/bpo-25464.bugfix new file mode 100644 index 00000000000000..7c2ada57f1a690 --- /dev/null +++ b/Misc/News/library/bpo-25464.bugfix @@ -0,0 +1,2 @@ +Fixed HList.header_exists() in tkinter.tix module by addin a workaround to Tix +library bug. diff --git a/Misc/News/library/bpo-25651.feature b/Misc/News/library/bpo-25651.feature new file mode 100644 index 00000000000000..33809ea0f3713e --- /dev/null +++ b/Misc/News/library/bpo-25651.feature @@ -0,0 +1 @@ +Allow falsy values to be used for msg parameter of subTest(). diff --git a/Misc/News/library/bpo-25659.bugfix b/Misc/News/library/bpo-25659.bugfix new file mode 100644 index 00000000000000..8c12033b7c0d99 --- /dev/null +++ b/Misc/News/library/bpo-25659.bugfix @@ -0,0 +1,2 @@ +In ctypes, prevent a crash calling the from_buffer() and from_buffer_copy() +methods on abstract classes like Array. diff --git a/Misc/News/library/bpo-25895.feature b/Misc/News/library/bpo-25895.feature new file mode 100644 index 00000000000000..8690675e56e5ca --- /dev/null +++ b/Misc/News/library/bpo-25895.feature @@ -0,0 +1,2 @@ +Enable WebSocket URL schemes in urllib.parse.urljoin. Patch by Gergely Imreh +and Markus Holtermann. diff --git a/Misc/News/library/bpo-25953.bugfix b/Misc/News/library/bpo-25953.bugfix new file mode 100644 index 00000000000000..28615fb4fb2b9b --- /dev/null +++ b/Misc/News/library/bpo-25953.bugfix @@ -0,0 +1,4 @@ +re.sub() now raises an error for invalid numerical group reference in +replacement template even if the pattern is not found in the string. Error +message for invalid group reference now includes the group index and the +position of the reference. Based on patch by SilentGhost. diff --git a/Misc/News/library/bpo-26273.feature b/Misc/News/library/bpo-26273.feature new file mode 100644 index 00000000000000..021c042fba976c --- /dev/null +++ b/Misc/News/library/bpo-26273.feature @@ -0,0 +1,3 @@ +Add new :data:`socket.TCP_CONGESTION` (Linux 2.6.13) and +:data:`socket.TCP_USER_TIMEOUT` (Linux 2.6.37) constants. Patch written by Omar +Sandoval. diff --git a/Misc/News/library/bpo-26293.bugfix b/Misc/News/library/bpo-26293.bugfix new file mode 100644 index 00000000000000..28c0eca23a4fe9 --- /dev/null +++ b/Misc/News/library/bpo-26293.bugfix @@ -0,0 +1,3 @@ +Fixed writing ZIP files that starts not from the start of the file. Offsets in +ZIP file now are relative to the start of the archive in conforming to the +specification. diff --git a/Misc/News/library/bpo-26654.bugfix b/Misc/News/library/bpo-26654.bugfix new file mode 100644 index 00000000000000..81f3f525c618fd --- /dev/null +++ b/Misc/News/library/bpo-26654.bugfix @@ -0,0 +1 @@ +Inspect functools.partial in asyncio.Handle.__repr__. Patch by iceboy. diff --git a/Misc/News/library/bpo-26909.bugfix b/Misc/News/library/bpo-26909.bugfix new file mode 100644 index 00000000000000..1add3ddc3177b9 --- /dev/null +++ b/Misc/News/library/bpo-26909.bugfix @@ -0,0 +1 @@ +Fix slow pipes IO in asyncio. Patch by INADA Naoki. diff --git a/Misc/News/library/bpo-26937.bugfix b/Misc/News/library/bpo-26937.bugfix new file mode 100644 index 00000000000000..f9637075265884 --- /dev/null +++ b/Misc/News/library/bpo-26937.bugfix @@ -0,0 +1,2 @@ +The chown() method of the tarfile.TarFile class does not fail now when the grp +module cannot be imported, as for example on Android platforms. diff --git a/Misc/News/library/bpo-27025.feature b/Misc/News/library/bpo-27025.feature new file mode 100644 index 00000000000000..3b8ad56700c36b --- /dev/null +++ b/Misc/News/library/bpo-27025.feature @@ -0,0 +1,2 @@ +Generated names for Tkinter widgets now start by the "!" prefix for readability +(was "\`"). diff --git a/Misc/News/library/bpo-27030.bugfix b/Misc/News/library/bpo-27030.bugfix new file mode 100644 index 00000000000000..a05f572ad173e7 --- /dev/null +++ b/Misc/News/library/bpo-27030.bugfix @@ -0,0 +1,2 @@ +Unknown escapes consisting of ``'\'`` and an ASCII letter in re.sub() +replacement templates regular expressions now are errors. diff --git a/Misc/News/library/bpo-27172.feature b/Misc/News/library/bpo-27172.feature new file mode 100644 index 00000000000000..d3a02db12d8750 --- /dev/null +++ b/Misc/News/library/bpo-27172.feature @@ -0,0 +1,3 @@ +To assist with upgrades from 2.7, the previously documented deprecation of +``inspect.getfullargspec()`` has been reversed. This decision may be revisited +again after the Python 2.7 branch is no longer officially supported. diff --git a/Misc/News/library/bpo-27348.bugfix b/Misc/News/library/bpo-27348.bugfix new file mode 100644 index 00000000000000..846b80adfab77e --- /dev/null +++ b/Misc/News/library/bpo-27348.bugfix @@ -0,0 +1,2 @@ +In the traceback module, restore the formatting of exception messages like +"Exception: None". This fixes a regression introduced in 3.5a2. diff --git a/Misc/News/library/bpo-27358.feature b/Misc/News/library/bpo-27358.feature new file mode 100644 index 00000000000000..0b7763e7ee8ffb --- /dev/null +++ b/Misc/News/library/bpo-27358.feature @@ -0,0 +1,2 @@ +Optimized merging var-keyword arguments and improved error message when passing +a non-mapping as a var-keyword argument. diff --git a/Misc/News/library/bpo-27517.bugfix b/Misc/News/library/bpo-27517.bugfix new file mode 100644 index 00000000000000..714dbcb42798a1 --- /dev/null +++ b/Misc/News/library/bpo-27517.bugfix @@ -0,0 +1,2 @@ +LZMA compressor and decompressor no longer raise exceptions if given empty data +twice. Patch by Benjamin Fogle. diff --git a/Misc/News/library/bpo-27599.bugfix b/Misc/News/library/bpo-27599.bugfix new file mode 100644 index 00000000000000..71905507f180ff --- /dev/null +++ b/Misc/News/library/bpo-27599.bugfix @@ -0,0 +1 @@ +Fixed buffer overrun in binascii.b2a_qp() and binascii.a2b_qp(). diff --git a/Misc/News/library/bpo-27611.bugfix b/Misc/News/library/bpo-27611.bugfix new file mode 100644 index 00000000000000..090049151b66b5 --- /dev/null +++ b/Misc/News/library/bpo-27611.bugfix @@ -0,0 +1,2 @@ +Fixed support of default root window in the tkinter.tix module. Added the +master parameter in the DisplayStyle constructor. diff --git a/Misc/News/library/bpo-27759.bugfix b/Misc/News/library/bpo-27759.bugfix new file mode 100644 index 00000000000000..f262c84a51b54f --- /dev/null +++ b/Misc/News/library/bpo-27759.bugfix @@ -0,0 +1,2 @@ +Fix selectors incorrectly retain invalid file descriptors. Patch by Mark +Williams. diff --git a/Misc/News/library/bpo-27778.bugfix b/Misc/News/library/bpo-27778.bugfix new file mode 100644 index 00000000000000..8e4d1c93492c6d --- /dev/null +++ b/Misc/News/library/bpo-27778.bugfix @@ -0,0 +1,2 @@ +Fix a memory leak in os.getrandom() when the getrandom() is interrupted by a +signal and a signal handler raises a Python exception. diff --git a/Misc/News/library/bpo-27897.bugfix b/Misc/News/library/bpo-27897.bugfix new file mode 100644 index 00000000000000..32219bdc1e8dc3 --- /dev/null +++ b/Misc/News/library/bpo-27897.bugfix @@ -0,0 +1,2 @@ +Fixed possible crash in sqlite3.Connection.create_collation() if pass invalid +string-like object as a name. Patch by Xiang Zhang. diff --git a/Misc/News/library/bpo-27906.bugfix b/Misc/News/library/bpo-27906.bugfix new file mode 100644 index 00000000000000..9e261ccd858190 --- /dev/null +++ b/Misc/News/library/bpo-27906.bugfix @@ -0,0 +1 @@ +Fix socket accept exhaustion during high TCP traffic. Patch by Kevin Conway. diff --git a/Misc/News/library/bpo-27932.bugfix b/Misc/News/library/bpo-27932.bugfix new file mode 100644 index 00000000000000..d60eefe4667b95 --- /dev/null +++ b/Misc/News/library/bpo-27932.bugfix @@ -0,0 +1 @@ +Prevent memory leak in win32_ver(). diff --git a/Misc/News/library/bpo-27939.bugfix b/Misc/News/library/bpo-27939.bugfix new file mode 100644 index 00000000000000..c675c30338499a --- /dev/null +++ b/Misc/News/library/bpo-27939.bugfix @@ -0,0 +1,3 @@ +Fixed bugs in tkinter.ttk.LabeledScale and tkinter.Scale caused by representing +the scale as float value internally in Tk. tkinter.IntVar now works if float +value is set to underlying Tk variable. diff --git a/Misc/News/library/bpo-27972.bugfix b/Misc/News/library/bpo-27972.bugfix new file mode 100644 index 00000000000000..6ffaab0e73d860 --- /dev/null +++ b/Misc/News/library/bpo-27972.bugfix @@ -0,0 +1 @@ +Prohibit Tasks to await on themselves. diff --git a/Misc/News/library/bpo-27998.bugfix b/Misc/News/library/bpo-27998.bugfix new file mode 100644 index 00000000000000..040b4c0888ffa5 --- /dev/null +++ b/Misc/News/library/bpo-27998.bugfix @@ -0,0 +1 @@ +Fixed bytes path support in os.scandir() on Windows. Patch by Eryk Sun. diff --git a/Misc/News/library/bpo-28075.bugfix b/Misc/News/library/bpo-28075.bugfix new file mode 100644 index 00000000000000..5d6991656f1e19 --- /dev/null +++ b/Misc/News/library/bpo-28075.bugfix @@ -0,0 +1,2 @@ +Check for ERROR_ACCESS_DENIED in Windows implementation of os.stat(). Patch by +Eryk Sun. diff --git a/Misc/News/library/bpo-28114.bugfix b/Misc/News/library/bpo-28114.bugfix new file mode 100644 index 00000000000000..9c567f0c1ce6c5 --- /dev/null +++ b/Misc/News/library/bpo-28114.bugfix @@ -0,0 +1,2 @@ +Fix a crash in parse_envlist() when env contains byte strings. Patch by Eryk +Sun. diff --git a/Misc/News/library/bpo-28115.feature b/Misc/News/library/bpo-28115.feature new file mode 100644 index 00000000000000..8591867757d8fc --- /dev/null +++ b/Misc/News/library/bpo-28115.feature @@ -0,0 +1,2 @@ +Command-line interface of the zipfile module now uses argparse. Added support +of long options. diff --git a/Misc/News/library/bpo-28148.bugfix b/Misc/News/library/bpo-28148.bugfix new file mode 100644 index 00000000000000..9e9b509d2594fe --- /dev/null +++ b/Misc/News/library/bpo-28148.bugfix @@ -0,0 +1,4 @@ +Stop using localtime() and gmtime() in the time module. + +Introduced platform independent _PyTime_localtime API that is similar to POSIX +localtime_r, but available on all platforms. Patch by Ed Schouten. diff --git a/Misc/News/library/bpo-28174.bugfix b/Misc/News/library/bpo-28174.bugfix new file mode 100644 index 00000000000000..adf2edfa9502d6 --- /dev/null +++ b/Misc/News/library/bpo-28174.bugfix @@ -0,0 +1 @@ +Handle when SO_REUSEPORT isn't properly supported. Patch by Seth Michael Larson. diff --git a/Misc/News/library/bpo-28176.bugfix b/Misc/News/library/bpo-28176.bugfix new file mode 100644 index 00000000000000..79bdb480d2ff01 --- /dev/null +++ b/Misc/News/library/bpo-28176.bugfix @@ -0,0 +1 @@ +Fix callbacks race in asyncio.SelectorLoop.sock_connect. diff --git a/Misc/News/library/bpo-28181.bugfix b/Misc/News/library/bpo-28181.bugfix new file mode 100644 index 00000000000000..104fa1a011b62f --- /dev/null +++ b/Misc/News/library/bpo-28181.bugfix @@ -0,0 +1 @@ +Get antigravity over HTTPS. Patch by Kaartic Sivaraam. diff --git a/Misc/News/library/bpo-28200.bugfix b/Misc/News/library/bpo-28200.bugfix new file mode 100644 index 00000000000000..8cb460c76b9098 --- /dev/null +++ b/Misc/News/library/bpo-28200.bugfix @@ -0,0 +1 @@ +Fix memory leak on Windows in the os module (fix path_converter() function). diff --git a/Misc/News/library/bpo-28225.feature b/Misc/News/library/bpo-28225.feature new file mode 100644 index 00000000000000..4b67cca3fc25ff --- /dev/null +++ b/Misc/News/library/bpo-28225.feature @@ -0,0 +1 @@ +bz2 module now supports pathlib. Initial patch by Ethan Furman. diff --git a/Misc/News/library/bpo-28226.feature b/Misc/News/library/bpo-28226.feature new file mode 100644 index 00000000000000..fc5d14e38c5498 --- /dev/null +++ b/Misc/News/library/bpo-28226.feature @@ -0,0 +1 @@ +compileall now supports pathlib. diff --git a/Misc/News/library/bpo-28227.feature b/Misc/News/library/bpo-28227.feature new file mode 100644 index 00000000000000..83fc8f2738ba0b --- /dev/null +++ b/Misc/News/library/bpo-28227.feature @@ -0,0 +1 @@ +gzip now supports pathlib. Patch by Ethan Furman. diff --git a/Misc/News/library/bpo-28228.feature b/Misc/News/library/bpo-28228.feature new file mode 100644 index 00000000000000..b3e7ba5bf1ec85 --- /dev/null +++ b/Misc/News/library/bpo-28228.feature @@ -0,0 +1 @@ +imghdr now supports pathlib. diff --git a/Misc/News/library/bpo-28229.feature b/Misc/News/library/bpo-28229.feature new file mode 100644 index 00000000000000..5d2a7763cb76a4 --- /dev/null +++ b/Misc/News/library/bpo-28229.feature @@ -0,0 +1 @@ +lzma module now supports pathlib. diff --git a/Misc/News/library/bpo-28240.bugfix b/Misc/News/library/bpo-28240.bugfix new file mode 100644 index 00000000000000..2e0f8a080b43cf --- /dev/null +++ b/Misc/News/library/bpo-28240.bugfix @@ -0,0 +1,5 @@ +timeit now repeats the benchmarks 5 times instead of only 3 to make benchmarks +more reliable. In addition autorange now uses a single loop iteration if the +benchmark takes less than 10 seconds, instead of 10 iterations. +"python3 -m timeit -s 'import time' 'time.sleep(1)'" now takes 4 seconds +instead of 40 seconds. diff --git a/Misc/News/library/bpo-28240.removal b/Misc/News/library/bpo-28240.removal new file mode 100644 index 00000000000000..0cfe6abf9e85e8 --- /dev/null +++ b/Misc/News/library/bpo-28240.removal @@ -0,0 +1,2 @@ +timeit: remove ``-c/--clock`` and ``-t/--time`` command line options which were +deprecated since Python 3.3. diff --git a/Misc/News/library/bpo-28253.bugfix b/Misc/News/library/bpo-28253.bugfix new file mode 100644 index 00000000000000..b25f9817469b98 --- /dev/null +++ b/Misc/News/library/bpo-28253.bugfix @@ -0,0 +1,4 @@ +Fixed calendar functions for extreme months: 0001-01 and 9999-12. + +Methods itermonthdays() and itermonthdays2() are reimplemented so that they +don't call itermonthdates() which can cause datetime.date under/overflow. diff --git a/Misc/News/library/bpo-28255.bugfix b/Misc/News/library/bpo-28255.bugfix new file mode 100644 index 00000000000000..b6a48b424eb104 --- /dev/null +++ b/Misc/News/library/bpo-28255.bugfix @@ -0,0 +1,3 @@ +calendar.TextCalendar.prweek() no longer prints a space after a weeks's +calendar. calendar.TextCalendar.pryear() no longer prints redundant newline +after a year's calendar. Based on patch by Xiang Zhang. diff --git a/Misc/News/library/bpo-28257.feature b/Misc/News/library/bpo-28257.feature new file mode 100644 index 00000000000000..6a6c8f0f6a437e --- /dev/null +++ b/Misc/News/library/bpo-28257.feature @@ -0,0 +1,2 @@ +Improved error message when passing a non-iterable as a var-positional +argument. Added opcode BUILD_TUPLE_UNPACK_WITH_CALL. diff --git a/Misc/News/library/bpo-28275.bugfix b/Misc/News/library/bpo-28275.bugfix new file mode 100644 index 00000000000000..cff7838f5247aa --- /dev/null +++ b/Misc/News/library/bpo-28275.bugfix @@ -0,0 +1,2 @@ +Fixed possible use after free in the decompress() methods of the +LZMADecompressor and BZ2Decompressor classes. Original patch by John Leitch. diff --git a/Misc/News/library/bpo-28314.bugfix b/Misc/News/library/bpo-28314.bugfix new file mode 100644 index 00000000000000..7f9b9afa6b472c --- /dev/null +++ b/Misc/News/library/bpo-28314.bugfix @@ -0,0 +1,2 @@ +Fix function declaration (C flags) for the getiterator() method of +xml.etree.ElementTree.Element. diff --git a/Misc/News/library/bpo-28317.bugfix b/Misc/News/library/bpo-28317.bugfix new file mode 100644 index 00000000000000..3d3a19ba472980 --- /dev/null +++ b/Misc/News/library/bpo-28317.bugfix @@ -0,0 +1 @@ +The disassembler now decodes FORMAT_VALUE argument. diff --git a/Misc/News/library/bpo-28321.bugfix b/Misc/News/library/bpo-28321.bugfix new file mode 100644 index 00000000000000..69bd193641db47 --- /dev/null +++ b/Misc/News/library/bpo-28321.bugfix @@ -0,0 +1 @@ +Fixed writing non-BMP characters with binary format in plistlib. diff --git a/Misc/News/library/bpo-28322.bugfix b/Misc/News/library/bpo-28322.bugfix new file mode 100644 index 00000000000000..80c86fca3ceaae --- /dev/null +++ b/Misc/News/library/bpo-28322.bugfix @@ -0,0 +1,2 @@ +Fixed possible crashes when unpickle itertools objects from incorrect pickle +data. Based on patch by John Leitch. diff --git a/Misc/News/library/bpo-28325.removal b/Misc/News/library/bpo-28325.removal new file mode 100644 index 00000000000000..8a53daac3c8c93 --- /dev/null +++ b/Misc/News/library/bpo-28325.removal @@ -0,0 +1 @@ +Remove vestigial MacOS 9 macurl2path module and its tests. diff --git a/Misc/News/library/bpo-28332.removal b/Misc/News/library/bpo-28332.removal new file mode 100644 index 00000000000000..5897c63e78416c --- /dev/null +++ b/Misc/News/library/bpo-28332.removal @@ -0,0 +1,2 @@ +Deprecated silent truncations in socket.htons and socket.ntohs. Original patch +by Oren Milman. diff --git a/Misc/News/library/bpo-28353.bugfix b/Misc/News/library/bpo-28353.bugfix new file mode 100644 index 00000000000000..74f33025c1362e --- /dev/null +++ b/Misc/News/library/bpo-28353.bugfix @@ -0,0 +1 @@ +os.fwalk() no longer fails on broken links. diff --git a/Misc/News/library/bpo-28368.bugfix b/Misc/News/library/bpo-28368.bugfix new file mode 100644 index 00000000000000..f150778ffb797f --- /dev/null +++ b/Misc/News/library/bpo-28368.bugfix @@ -0,0 +1,2 @@ +Refuse monitoring processes if the child watcher has no loop attached. Patch by +Vincent Michel. diff --git a/Misc/News/library/bpo-28369.bugfix b/Misc/News/library/bpo-28369.bugfix new file mode 100644 index 00000000000000..0d1c149af6a414 --- /dev/null +++ b/Misc/News/library/bpo-28369.bugfix @@ -0,0 +1 @@ +Raise RuntimeError when transport's FD is used with add_reader, add_writer, etc. diff --git a/Misc/News/library/bpo-28370.feature b/Misc/News/library/bpo-28370.feature new file mode 100644 index 00000000000000..5a8ab80e0dd873 --- /dev/null +++ b/Misc/News/library/bpo-28370.feature @@ -0,0 +1 @@ +Speedup asyncio.StreamReader.readexactly. Patch by Коренберг Марк. diff --git a/Misc/News/library/bpo-28371.removal b/Misc/News/library/bpo-28371.removal new file mode 100644 index 00000000000000..bf3594afff5315 --- /dev/null +++ b/Misc/News/library/bpo-28371.removal @@ -0,0 +1 @@ +Deprecate passing asyncio.Handles to run_in_executor. diff --git a/Misc/News/library/bpo-28372.bugfix b/Misc/News/library/bpo-28372.bugfix new file mode 100644 index 00000000000000..9adfb940811a95 --- /dev/null +++ b/Misc/News/library/bpo-28372.bugfix @@ -0,0 +1 @@ +Fix asyncio to support formatting of non-python coroutines. diff --git a/Misc/News/library/bpo-28380.bugfix b/Misc/News/library/bpo-28380.bugfix new file mode 100644 index 00000000000000..35d26ae41ee14f --- /dev/null +++ b/Misc/News/library/bpo-28380.bugfix @@ -0,0 +1,2 @@ +unittest.mock Mock autospec functions now properly support assert_called, +assert_not_called, and assert_called_once. diff --git a/Misc/News/library/bpo-28387.bugfix b/Misc/News/library/bpo-28387.bugfix new file mode 100644 index 00000000000000..aa8e29d97c6d8c --- /dev/null +++ b/Misc/News/library/bpo-28387.bugfix @@ -0,0 +1,2 @@ +Fixed possible crash in _io.TextIOWrapper deallocator when the garbage +collector is invoked in other thread. Based on patch by Sebastian Cufre. diff --git a/Misc/News/library/bpo-28399.bugfix b/Misc/News/library/bpo-28399.bugfix new file mode 100644 index 00000000000000..f3becad1775c0a --- /dev/null +++ b/Misc/News/library/bpo-28399.bugfix @@ -0,0 +1 @@ +Remove UNIX socket from FS before binding. Patch by Коренберг Марк. diff --git a/Misc/News/library/bpo-28427.bugfix b/Misc/News/library/bpo-28427.bugfix new file mode 100644 index 00000000000000..c351a3efa4885f --- /dev/null +++ b/Misc/News/library/bpo-28427.bugfix @@ -0,0 +1,2 @@ +old keys should not remove new values from WeakValueDictionary when collecting +from another thread. diff --git a/Misc/News/library/bpo-28430.bugfix b/Misc/News/library/bpo-28430.bugfix new file mode 100644 index 00000000000000..d34bf0cc00aca6 --- /dev/null +++ b/Misc/News/library/bpo-28430.bugfix @@ -0,0 +1,2 @@ +Fix iterator of C implemented asyncio.Future doesn't accept non-None value is +passed to it.send(val). diff --git a/Misc/News/library/bpo-28448.bugfix b/Misc/News/library/bpo-28448.bugfix new file mode 100644 index 00000000000000..bb3f32b3740009 --- /dev/null +++ b/Misc/News/library/bpo-28448.bugfix @@ -0,0 +1 @@ +Fix C implemented asyncio.Future didn't work on Windows. diff --git a/Misc/News/library/bpo-28449.bugfix b/Misc/News/library/bpo-28449.bugfix new file mode 100644 index 00000000000000..e996b2a71c06a8 --- /dev/null +++ b/Misc/News/library/bpo-28449.bugfix @@ -0,0 +1,3 @@ +tarfile.open() with mode "r" or "r:" now tries to open a tar file with +compression before trying to open it without compression. Otherwise it +had 50% chance failed with ignore_zeros=True. diff --git a/Misc/News/library/bpo-28469.bugfix b/Misc/News/library/bpo-28469.bugfix new file mode 100644 index 00000000000000..9627354edb049e --- /dev/null +++ b/Misc/News/library/bpo-28469.bugfix @@ -0,0 +1,2 @@ +timeit now uses the sequence 1, 2, 5, 10, 20, 50,... instead of 1, 10, 100,... +for autoranging. diff --git a/Misc/News/library/bpo-28480.bugfix b/Misc/News/library/bpo-28480.bugfix new file mode 100644 index 00000000000000..786ff2c1a6a84a --- /dev/null +++ b/Misc/News/library/bpo-28480.bugfix @@ -0,0 +1 @@ +Fix error building socket module when multithreading is disabled. diff --git a/Misc/News/library/bpo-28488.bugfix b/Misc/News/library/bpo-28488.bugfix new file mode 100644 index 00000000000000..f8d370c0b24bc4 --- /dev/null +++ b/Misc/News/library/bpo-28488.bugfix @@ -0,0 +1 @@ +shutil.make_archive() no longer adds entry "./" to ZIP archive. diff --git a/Misc/News/library/bpo-28518.bugfix b/Misc/News/library/bpo-28518.bugfix new file mode 100644 index 00000000000000..a6b936bd5fa2e1 --- /dev/null +++ b/Misc/News/library/bpo-28518.bugfix @@ -0,0 +1 @@ +Start a transaction implicitly before a DML statement. Patch by Aviv Palivoda. diff --git a/Misc/News/library/bpo-28548.bugfix b/Misc/News/library/bpo-28548.bugfix new file mode 100644 index 00000000000000..ffd271be6c2a33 --- /dev/null +++ b/Misc/News/library/bpo-28548.bugfix @@ -0,0 +1,2 @@ +In the "http.server" module, parse the protocol version if possible, to avoid +using HTTP 0.9 in some error responses. diff --git a/Misc/News/library/bpo-28549.bugfix b/Misc/News/library/bpo-28549.bugfix new file mode 100644 index 00000000000000..237e66dd085898 --- /dev/null +++ b/Misc/News/library/bpo-28549.bugfix @@ -0,0 +1 @@ +Fixed segfault in curses's addch() with ncurses6. diff --git a/Misc/News/library/bpo-28556.feature b/Misc/News/library/bpo-28556.feature new file mode 100644 index 00000000000000..5a3b436324dd8b --- /dev/null +++ b/Misc/News/library/bpo-28556.feature @@ -0,0 +1,3 @@ +Various updates to typing module: typing.Counter, typing.ChainMap, improved ABC +caching, etc. Original PRs by Jelle Zijlstra, Ivan Levkivskyi, Manuel Krebber, +and Łukasz Langa. diff --git a/Misc/News/library/bpo-28563.bugfix b/Misc/News/library/bpo-28563.bugfix new file mode 100644 index 00000000000000..9da96ab9ba693e --- /dev/null +++ b/Misc/News/library/bpo-28563.bugfix @@ -0,0 +1,3 @@ +Fixed possible DoS and arbitrary code execution when handle plural form +selections in the gettext module. The expression parser now supports exact +syntax supported by GNU gettext. diff --git a/Misc/News/library/bpo-28624.bugfix b/Misc/News/library/bpo-28624.bugfix new file mode 100644 index 00000000000000..0366856e8dbc70 --- /dev/null +++ b/Misc/News/library/bpo-28624.bugfix @@ -0,0 +1,2 @@ +Add a test that checks that cwd parameter of Popen() accepts PathLike objects. +Patch by Sayan Chowdhury. diff --git a/Misc/News/library/bpo-28727.bugfix b/Misc/News/library/bpo-28727.bugfix new file mode 100644 index 00000000000000..460665aec19705 --- /dev/null +++ b/Misc/News/library/bpo-28727.bugfix @@ -0,0 +1,4 @@ +Regular expression patterns, _sre.SRE_Pattern objects created by re.compile(), +become comparable (only x==y and x!=y operators). This change should fix the +issue #18383: don't duplicate warning filters when the warnings module is +reloaded (thing usually only done in unit tests). diff --git a/Misc/News/library/bpo-28735.bugfix b/Misc/News/library/bpo-28735.bugfix new file mode 100644 index 00000000000000..1ec6247bb9c93f --- /dev/null +++ b/Misc/News/library/bpo-28735.bugfix @@ -0,0 +1 @@ +Fixed the comparison of mock.MagickMock with mock.ANY. diff --git a/Misc/News/library/bpo-28740.feature b/Misc/News/library/bpo-28740.feature new file mode 100644 index 00000000000000..1e3a461c0646ea --- /dev/null +++ b/Misc/News/library/bpo-28740.feature @@ -0,0 +1,2 @@ +Add sys.getandroidapilevel(): return the build time API version of Android as +an integer. Function only available on Android. diff --git a/Misc/News/library/bpo-28752.bugfix b/Misc/News/library/bpo-28752.bugfix new file mode 100644 index 00000000000000..0c5730600f0294 --- /dev/null +++ b/Misc/News/library/bpo-28752.bugfix @@ -0,0 +1 @@ +Restored the __reduce__() methods of datetime objects. diff --git a/Misc/News/library/bpo-28779.bugfix b/Misc/News/library/bpo-28779.bugfix new file mode 100644 index 00000000000000..5aba7c00d36b25 --- /dev/null +++ b/Misc/News/library/bpo-28779.bugfix @@ -0,0 +1,2 @@ +multiprocessing.set_forkserver_preload() would crash the forkserver process if +a preloaded module instantiated some multiprocessing objects such as locks. diff --git a/Misc/News/library/bpo-28835.bugfix b/Misc/News/library/bpo-28835.bugfix new file mode 100644 index 00000000000000..402fae72a11b49 --- /dev/null +++ b/Misc/News/library/bpo-28835.bugfix @@ -0,0 +1,2 @@ +Fix a regression introduced in warnings.catch_warnings(): call +warnings.showwarning() if it was overriden inside the context manager. diff --git a/Misc/News/library/bpo-28847.bugfix b/Misc/News/library/bpo-28847.bugfix new file mode 100644 index 00000000000000..79384e412db28b --- /dev/null +++ b/Misc/News/library/bpo-28847.bugfix @@ -0,0 +1,4 @@ +dbm.dumb now supports reading read-only files and no longer writes the index +file when it is not changed. A deprecation warning is now emitted if the index +file is missed and recreated in the 'r' and 'w' modes (will be an error in +future Python releases). diff --git a/Misc/News/library/bpo-28871.bugfix b/Misc/News/library/bpo-28871.bugfix new file mode 100644 index 00000000000000..43830548b8ce39 --- /dev/null +++ b/Misc/News/library/bpo-28871.bugfix @@ -0,0 +1 @@ +Fixed a crash when deallocate deep ElementTree. diff --git a/Misc/News/library/bpo-28923.bugfix b/Misc/News/library/bpo-28923.bugfix new file mode 100644 index 00000000000000..5470585f69f249 --- /dev/null +++ b/Misc/News/library/bpo-28923.bugfix @@ -0,0 +1 @@ +Remove editor artifacts from Tix.py. diff --git a/Misc/News/library/bpo-28961.bugfix b/Misc/News/library/bpo-28961.bugfix new file mode 100644 index 00000000000000..2cd61ed9a25866 --- /dev/null +++ b/Misc/News/library/bpo-28961.bugfix @@ -0,0 +1,2 @@ +Fix unittest.mock._Call helper: don't ignore the name parameter anymore. Patch +written by Jiajun Huang. diff --git a/Misc/News/library/bpo-28963.bugfix b/Misc/News/library/bpo-28963.bugfix new file mode 100644 index 00000000000000..eadd5691c6ffc8 --- /dev/null +++ b/Misc/News/library/bpo-28963.bugfix @@ -0,0 +1,2 @@ +Fix out of bound iteration in asyncio.Future.remove_done_callback implemented +in C. diff --git a/Misc/News/library/bpo-28969.bugfix b/Misc/News/library/bpo-28969.bugfix new file mode 100644 index 00000000000000..8b83eace78268d --- /dev/null +++ b/Misc/News/library/bpo-28969.bugfix @@ -0,0 +1,3 @@ +Fixed race condition in C implementation of functools.lru_cache. KeyError could +be raised when cached function with full cache was simultaneously called from +different threads with the same uncached arguments. diff --git a/Misc/News/library/bpo-28985.bugfix b/Misc/News/library/bpo-28985.bugfix new file mode 100644 index 00000000000000..8b41a1f6312045 --- /dev/null +++ b/Misc/News/library/bpo-28985.bugfix @@ -0,0 +1 @@ +Update authorizer constants in sqlite3 module. Patch by Dingyuan Wang. diff --git a/Misc/News/library/bpo-29079.bugfix b/Misc/News/library/bpo-29079.bugfix new file mode 100644 index 00000000000000..2bc4cd41157d50 --- /dev/null +++ b/Misc/News/library/bpo-29079.bugfix @@ -0,0 +1 @@ +Prevent infinite loop in pathlib.resolve() on Windows diff --git a/Misc/News/library/bpo-29094.bugfix b/Misc/News/library/bpo-29094.bugfix new file mode 100644 index 00000000000000..568e24735d9e11 --- /dev/null +++ b/Misc/News/library/bpo-29094.bugfix @@ -0,0 +1,2 @@ +Offsets in a ZIP file created with extern file object and modes "w" and "x" now +are relative to the start of the file. diff --git a/Misc/News/library/bpo-29100.bugfix b/Misc/News/library/bpo-29100.bugfix new file mode 100644 index 00000000000000..d12217a34bd46a --- /dev/null +++ b/Misc/News/library/bpo-29100.bugfix @@ -0,0 +1,2 @@ +Fix datetime.fromtimestamp() regression introduced in Python 3.6.0: check +minimum and maximum years. diff --git a/Misc/News/library/bpo-29110.bugfix b/Misc/News/library/bpo-29110.bugfix new file mode 100644 index 00000000000000..a83003b4ccfbed --- /dev/null +++ b/Misc/News/library/bpo-29110.bugfix @@ -0,0 +1,2 @@ +Fix file object leak in aifc.open() when file is given as a filesystem path and +is not in valid AIFF format. Patch by Anthony Zhang. diff --git a/Misc/News/library/bpo-29142.bugfix b/Misc/News/library/bpo-29142.bugfix new file mode 100644 index 00000000000000..a749e432a231ac --- /dev/null +++ b/Misc/News/library/bpo-29142.bugfix @@ -0,0 +1,3 @@ +In urllib.request, suffixes in no_proxy environment variable with leading dots +could match related hostnames again (e.g. .b.c matches a.b.c). Patch by Milan +Oberkirch. diff --git a/Misc/News/library/bpo-29192.removal b/Misc/News/library/bpo-29192.removal new file mode 100644 index 00000000000000..e23778956be18f --- /dev/null +++ b/Misc/News/library/bpo-29192.removal @@ -0,0 +1 @@ +Removed deprecated features in the http.cookies module. diff --git a/Misc/News/library/bpo-29193.removal b/Misc/News/library/bpo-29193.removal new file mode 100644 index 00000000000000..0561d6093f75af --- /dev/null +++ b/Misc/News/library/bpo-29193.removal @@ -0,0 +1 @@ +A format string argument for string.Formatter.format() is now positional-only. diff --git a/Misc/News/library/bpo-29195.removal b/Misc/News/library/bpo-29195.removal new file mode 100644 index 00000000000000..47123d98f6ce31 --- /dev/null +++ b/Misc/News/library/bpo-29195.removal @@ -0,0 +1,2 @@ +Removed support of deprecated undocumented keyword arguments in methods of +regular expression objects. diff --git a/Misc/News/library/bpo-29197.removal b/Misc/News/library/bpo-29197.removal new file mode 100644 index 00000000000000..9e9fc4fbcf8b97 --- /dev/null +++ b/Misc/News/library/bpo-29197.removal @@ -0,0 +1 @@ +Removed deprecated function ntpath.splitunc(). diff --git a/Misc/News/library/bpo-29210.removal b/Misc/News/library/bpo-29210.removal new file mode 100644 index 00000000000000..02452fe88d5028 --- /dev/null +++ b/Misc/News/library/bpo-29210.removal @@ -0,0 +1 @@ +Removed support of deprecated argument "exclude" in tarfile.TarFile.add(). diff --git a/Misc/News/library/bpo-29218.removal b/Misc/News/library/bpo-29218.removal new file mode 100644 index 00000000000000..569cec7d39e3df --- /dev/null +++ b/Misc/News/library/bpo-29218.removal @@ -0,0 +1,2 @@ +Unused install_misc command is now removed. It has been documented as unused +since 2000. Patch by Eric N. Vander Weele. diff --git a/Misc/News/library/bpo-29219.bugfix b/Misc/News/library/bpo-29219.bugfix new file mode 100644 index 00000000000000..ab6725f596a791 --- /dev/null +++ b/Misc/News/library/bpo-29219.bugfix @@ -0,0 +1 @@ +Fixed infinite recursion in the repr of uninitialized ctypes.CDLL instances. diff --git a/Misc/News/library/bpo-29271.bugfix b/Misc/News/library/bpo-29271.bugfix new file mode 100644 index 00000000000000..fd3f2aea90695f --- /dev/null +++ b/Misc/News/library/bpo-29271.bugfix @@ -0,0 +1,2 @@ +Fix Task.current_task and Task.all_tasks implemented in C to accept None +argument as their pure Python implementation. diff --git a/Misc/News/library/bpo-29290.bugfix b/Misc/News/library/bpo-29290.bugfix new file mode 100644 index 00000000000000..a4ac1f0725f2ce --- /dev/null +++ b/Misc/News/library/bpo-29290.bugfix @@ -0,0 +1,2 @@ +Fix a regression in argparse that help messages would wrap at non-breaking +spaces. diff --git a/Misc/News/library/bpo-29335.bugfix b/Misc/News/library/bpo-29335.bugfix new file mode 100644 index 00000000000000..79e1748229933f --- /dev/null +++ b/Misc/News/library/bpo-29335.bugfix @@ -0,0 +1,2 @@ +Fix subprocess.Popen.wait() when the child process has exited to a stopped +instead of terminated state (ex: when under ptrace). diff --git a/Misc/News/library/bpo-29338.bugfix b/Misc/News/library/bpo-29338.bugfix new file mode 100644 index 00000000000000..47f7419613dcf4 --- /dev/null +++ b/Misc/News/library/bpo-29338.bugfix @@ -0,0 +1,2 @@ +The help of a builtin or extension class now includes the constructor signature +if __text_signature__ is provided for the class. diff --git a/Misc/News/library/bpo-29368.feature b/Misc/News/library/bpo-29368.feature new file mode 100644 index 00000000000000..b26f2e5e857ca6 --- /dev/null +++ b/Misc/News/library/bpo-29368.feature @@ -0,0 +1,3 @@ +The extend() method is now called instead of the append() method when unpickle +collections.deque and other list-like objects. This can speed up unpickling to +2 times. diff --git a/Misc/News/library/bpo-29376.bugfix b/Misc/News/library/bpo-29376.bugfix new file mode 100644 index 00000000000000..5b610c458955f2 --- /dev/null +++ b/Misc/News/library/bpo-29376.bugfix @@ -0,0 +1 @@ +Fix assertion error in threading._DummyThread.is_alive(). diff --git a/Misc/News/library/bpo-29377.feature b/Misc/News/library/bpo-29377.feature new file mode 100644 index 00000000000000..e3dc2dd30d4a57 --- /dev/null +++ b/Misc/News/library/bpo-29377.feature @@ -0,0 +1,2 @@ +Add SlotWrapperType, MethodWrapperType, and MethodDescriptorType built-in types +to types module. Original patch by Manuel Krebber. diff --git a/Misc/News/library/bpo-29416.bugfix b/Misc/News/library/bpo-29416.bugfix new file mode 100644 index 00000000000000..b0b9838b3737a2 --- /dev/null +++ b/Misc/News/library/bpo-29416.bugfix @@ -0,0 +1 @@ +Prevent infinite loop in pathlib.Path.mkdir diff --git a/Misc/News/library/bpo-29444.bugfix b/Misc/News/library/bpo-29444.bugfix new file mode 100644 index 00000000000000..05e96fb79da59b --- /dev/null +++ b/Misc/News/library/bpo-29444.bugfix @@ -0,0 +1,2 @@ +Fixed out-of-bounds buffer access in the group() method of the match object. +Based on patch by WGH. diff --git a/Misc/News/library/bpo-29532.bugfix b/Misc/News/library/bpo-29532.bugfix new file mode 100644 index 00000000000000..828ed51da4bb86 --- /dev/null +++ b/Misc/News/library/bpo-29532.bugfix @@ -0,0 +1,2 @@ +Altering a kwarg dictionary passed to functools.partial() no longer affects a +partial object after creation. diff --git a/Misc/News/library/bpo-29534.bugfix b/Misc/News/library/bpo-29534.bugfix new file mode 100644 index 00000000000000..0898c89c7fb864 --- /dev/null +++ b/Misc/News/library/bpo-29534.bugfix @@ -0,0 +1,2 @@ +Fixed different behaviour of Decimal.from_float() for _decimal and _pydecimal. +Thanks Andrew Nester. diff --git a/Misc/News/library/bpo-29576.bugfix b/Misc/News/library/bpo-29576.bugfix new file mode 100644 index 00000000000000..789bb3e688d67d --- /dev/null +++ b/Misc/News/library/bpo-29576.bugfix @@ -0,0 +1,2 @@ +Improve some deprecations in importlib. Some deprecated methods now emit +DeprecationWarnings and have better descriptive messages. diff --git a/Misc/News/library/bpo-29615.bugfix b/Misc/News/library/bpo-29615.bugfix new file mode 100644 index 00000000000000..4cef50404a52de --- /dev/null +++ b/Misc/News/library/bpo-29615.bugfix @@ -0,0 +1,2 @@ +SimpleXMLRPCDispatcher no longer chains KeyError (or any other exception) to +exception(s) raised in the dispatched methods. Patch by Petr Motejlek. diff --git a/Misc/News/library/bpo-29623.feature b/Misc/News/library/bpo-29623.feature new file mode 100644 index 00000000000000..331fc02ae5a880 --- /dev/null +++ b/Misc/News/library/bpo-29623.feature @@ -0,0 +1,2 @@ +Allow use of path-like object as a single argument in ConfigParser.read(). +Patch by David Ellis. diff --git a/Misc/News/library/bpo-29703.bugfix b/Misc/News/library/bpo-29703.bugfix new file mode 100644 index 00000000000000..ce844f7b2ba6cb --- /dev/null +++ b/Misc/News/library/bpo-29703.bugfix @@ -0,0 +1 @@ +Fix asyncio to support instantiation of new event loops in child processes. diff --git a/Misc/News/library/bpo-29704.bugfix b/Misc/News/library/bpo-29704.bugfix new file mode 100644 index 00000000000000..d9475afcccdcff --- /dev/null +++ b/Misc/News/library/bpo-29704.bugfix @@ -0,0 +1,2 @@ +asyncio.subprocess.SubprocessStreamProtocol no longer closes before all pipes +are closed. diff --git a/Misc/News/library/bpo-7769.feature b/Misc/News/library/bpo-7769.feature new file mode 100644 index 00000000000000..a9ccebebb9dfcb --- /dev/null +++ b/Misc/News/library/bpo-7769.feature @@ -0,0 +1,2 @@ +Method register_function() of xmlrpc.server.SimpleXMLRPCDispatcher and its +subclasses can now be used as a decorator. diff --git a/Misc/News/library/bpo-9303.bugfix b/Misc/News/library/bpo-9303.bugfix new file mode 100644 index 00000000000000..c6631f30b5fa9b --- /dev/null +++ b/Misc/News/library/bpo-9303.bugfix @@ -0,0 +1 @@ +Migrate sqlite3 module to _v2 API. Patch by Aviv Palivoda. diff --git a/Misc/News/library/bpo-9770.bugfix b/Misc/News/library/bpo-9770.bugfix new file mode 100644 index 00000000000000..18abe3d6d2c4bf --- /dev/null +++ b/Misc/News/library/bpo-9770.bugfix @@ -0,0 +1 @@ +curses.ascii predicates now work correctly with negative integers. diff --git a/Misc/News/library/hide-011698d6-bd92-4321-b872-3a17ce67c9e3.bugfix b/Misc/News/library/hide-011698d6-bd92-4321-b872-3a17ce67c9e3.bugfix new file mode 100644 index 00000000000000..89905590114068 --- /dev/null +++ b/Misc/News/library/hide-011698d6-bd92-4321-b872-3a17ce67c9e3.bugfix @@ -0,0 +1,3 @@ +Distutils.sdist now looks for README and setup.py files with case sensitivity. +This behavior matches that found in Setuptools 6.0 and later. See +`setuptools 100 `_ for rationale. diff --git a/Misc/News/library/hide-e5edf785-97bc-49ff-8b9e-1cb036590314.bugfix b/Misc/News/library/hide-e5edf785-97bc-49ff-8b9e-1cb036590314.bugfix new file mode 100644 index 00000000000000..8dd432b9643afa --- /dev/null +++ b/Misc/News/library/hide-e5edf785-97bc-49ff-8b9e-1cb036590314.bugfix @@ -0,0 +1 @@ +Fix UnboundLocalError in socket._sendfile_use_sendfile. diff --git a/Misc/News/template.rst b/Misc/News/template.rst new file mode 100644 index 00000000000000..12884d146b26fd --- /dev/null +++ b/Misc/News/template.rst @@ -0,0 +1,29 @@ +{% for section in sections %} +{% set underline = "-" %} +{% if sections[section] %} +{% if section %} +{{section}} +{{ underline * section|length }}{% set underline = "~" %} + + +{% endif %} +{% for category, val in definitions.items() if category in sections[section]%} +{% if sections[section][category] %} +{% if sections[section]|length > 1 %} +{{ definitions[category]['name'] }} +{{ underline * definitions[category]['name']|length }} + +{% endif %} +{% if definitions[category]['showcontent'] %} +{% for text, values in sections[section][category]|dictsort(by='value') %} +- {{ text }} ({{ values|sort|join(', ') }}) +{% endfor %} +{% else %} +- {{ sections[section][category]['']|sort|join(', ') }} +{% endif %} +{% endif %} + +{% endfor %} + +{% endif %} +{% endfor %} diff --git a/Misc/News/tests/.gitignore b/Misc/News/tests/.gitignore new file mode 100644 index 00000000000000..f935021a8f8a7b --- /dev/null +++ b/Misc/News/tests/.gitignore @@ -0,0 +1 @@ +!.gitignore diff --git a/Misc/News/tests/bpo-23839.bugfix b/Misc/News/tests/bpo-23839.bugfix new file mode 100644 index 00000000000000..8cf2627787e9da --- /dev/null +++ b/Misc/News/tests/bpo-23839.bugfix @@ -0,0 +1 @@ +Various caches now are cleared before running every test file. diff --git a/Misc/News/tests/bpo-24932.bugfix b/Misc/News/tests/bpo-24932.bugfix new file mode 100644 index 00000000000000..044e7a40dda359 --- /dev/null +++ b/Misc/News/tests/bpo-24932.bugfix @@ -0,0 +1 @@ +Use proper command line parsing in _testembed diff --git a/Misc/News/tests/bpo-26936.bugfix b/Misc/News/tests/bpo-26936.bugfix new file mode 100644 index 00000000000000..bdb2396fe2ccf0 --- /dev/null +++ b/Misc/News/tests/bpo-26936.bugfix @@ -0,0 +1,2 @@ +Fix the test_socket failures on Android - getservbyname(), getservbyport() and +getaddrinfo() are broken on some Android API levels. diff --git a/Misc/News/tests/bpo-26939.bugfix b/Misc/News/tests/bpo-26939.bugfix new file mode 100644 index 00000000000000..a489532222447b --- /dev/null +++ b/Misc/News/tests/bpo-26939.bugfix @@ -0,0 +1,2 @@ +Add the support.setswitchinterval() function to fix test_functools hanging on +the Android armv7 qemu emulator. diff --git a/Misc/News/tests/bpo-26944.bugfix b/Misc/News/tests/bpo-26944.bugfix new file mode 100644 index 00000000000000..78384ffb4c1f65 --- /dev/null +++ b/Misc/News/tests/bpo-26944.bugfix @@ -0,0 +1,2 @@ +Fix test_posix for Android where 'id -G' is entirely wrong or missing the +effective gid. diff --git a/Misc/News/tests/bpo-28087.bugfix b/Misc/News/tests/bpo-28087.bugfix new file mode 100644 index 00000000000000..c5bb11343200d4 --- /dev/null +++ b/Misc/News/tests/bpo-28087.bugfix @@ -0,0 +1,3 @@ +Skip test_asyncore and test_eintr poll failures on macOS. Skip some tests of +select.poll when running on macOS due to unresolved issues with the underlying +system poll function on some macOS versions. diff --git a/Misc/News/tests/bpo-28217.bugfix b/Misc/News/tests/bpo-28217.bugfix new file mode 100644 index 00000000000000..90fb8631c107d0 --- /dev/null +++ b/Misc/News/tests/bpo-28217.bugfix @@ -0,0 +1 @@ +Adds _testconsole module to test console input. diff --git a/Misc/News/tests/bpo-28409.bugfix b/Misc/News/tests/bpo-28409.bugfix new file mode 100644 index 00000000000000..27af4a2135ab32 --- /dev/null +++ b/Misc/News/tests/bpo-28409.bugfix @@ -0,0 +1 @@ +regrtest: fix the parser of command line arguments. diff --git a/Misc/News/tests/bpo-28666.bugfix b/Misc/News/tests/bpo-28666.bugfix new file mode 100644 index 00000000000000..f5a18e0f5b4a99 --- /dev/null +++ b/Misc/News/tests/bpo-28666.bugfix @@ -0,0 +1 @@ +Now test.support.rmtree is able to remove unwritable or unreadable directories. diff --git a/Misc/News/tests/bpo-28683.bugfix b/Misc/News/tests/bpo-28683.bugfix new file mode 100644 index 00000000000000..2dd5006f2c5304 --- /dev/null +++ b/Misc/News/tests/bpo-28683.bugfix @@ -0,0 +1,2 @@ +Fix the tests that bind() a unix socket and raise PermissionError on Android +for a non-root user. diff --git a/Misc/News/tests/bpo-28950.bugfix b/Misc/News/tests/bpo-28950.bugfix new file mode 100644 index 00000000000000..c7421780b2d641 --- /dev/null +++ b/Misc/News/tests/bpo-28950.bugfix @@ -0,0 +1 @@ +Disallow -j0 to be combined with -T/-l in regrtest command line arguments. diff --git a/Misc/News/tests/bpo-29571.bugfix b/Misc/News/tests/bpo-29571.bugfix new file mode 100644 index 00000000000000..acae4eadfd8769 --- /dev/null +++ b/Misc/News/tests/bpo-29571.bugfix @@ -0,0 +1,4 @@ +To match the behaviour of the ``re.LOCALE`` flag, test_re.test_locale_flag now +uses ``locale.getpreferredencoding(False)`` to determine the candidate encoding +for the test regex (allowing it to correctly skip the test when the default +locale encoding is a multi-byte encoding) diff --git a/Misc/News/tools/.gitignore b/Misc/News/tools/.gitignore new file mode 100644 index 00000000000000..f935021a8f8a7b --- /dev/null +++ b/Misc/News/tools/.gitignore @@ -0,0 +1 @@ +!.gitignore diff --git a/Misc/News/tools/bpo-15369.removal b/Misc/News/tools/bpo-15369.removal new file mode 100644 index 00000000000000..469bf4b8d22aa4 --- /dev/null +++ b/Misc/News/tools/bpo-15369.removal @@ -0,0 +1,4 @@ +The pybench and pystone microbenchmark have been removed from Tools. Please use +the new Python benchmark suite https://github.com/python/performance which is +more reliable and includes a portable version of pybench working on Python 2 +and Python 3. diff --git a/Misc/News/tools/bpo-28023.bugfix b/Misc/News/tools/bpo-28023.bugfix new file mode 100644 index 00000000000000..515c7175a792f9 --- /dev/null +++ b/Misc/News/tools/bpo-28023.bugfix @@ -0,0 +1 @@ +Fix python-gdb.py didn't support new dict implementation. diff --git a/Misc/News/tools/bpo-28102.feature b/Misc/News/tools/bpo-28102.feature new file mode 100644 index 00000000000000..ed3af07b05a3d4 --- /dev/null +++ b/Misc/News/tools/bpo-28102.feature @@ -0,0 +1 @@ +The zipfile module CLI now prints usage to stderr. Patch by Stephen J. Turnbull. diff --git a/Misc/News/tools/bpo-29367.feature b/Misc/News/tools/bpo-29367.feature new file mode 100644 index 00000000000000..bfe5a2400a0234 --- /dev/null +++ b/Misc/News/tools/bpo-29367.feature @@ -0,0 +1 @@ +python-gdb.py now supports also ``method-wrapper`` (``wrapperobject``) objects. diff --git a/Misc/News/windows/.gitignore b/Misc/News/windows/.gitignore new file mode 100644 index 00000000000000..f935021a8f8a7b --- /dev/null +++ b/Misc/News/windows/.gitignore @@ -0,0 +1 @@ +!.gitignore diff --git a/Misc/News/windows/bpo-25778.bugfix b/Misc/News/windows/bpo-25778.bugfix new file mode 100644 index 00000000000000..efe97458158d9d --- /dev/null +++ b/Misc/News/windows/bpo-25778.bugfix @@ -0,0 +1 @@ +winreg does not truncate string correctly (Patch by Eryk Sun) diff --git a/Misc/News/windows/bpo-28110.bugfix b/Misc/News/windows/bpo-28110.bugfix new file mode 100644 index 00000000000000..174690e49ae71f --- /dev/null +++ b/Misc/News/windows/bpo-28110.bugfix @@ -0,0 +1 @@ +launcher.msi has different product codes between 32-bit and 64-bit diff --git a/Misc/News/windows/bpo-28137.bugfix b/Misc/News/windows/bpo-28137.bugfix new file mode 100644 index 00000000000000..fd98a660c9a00c --- /dev/null +++ b/Misc/News/windows/bpo-28137.bugfix @@ -0,0 +1 @@ +Renames Windows path file to ._pth diff --git a/Misc/News/windows/bpo-28138.bugfix b/Misc/News/windows/bpo-28138.bugfix new file mode 100644 index 00000000000000..fb06e8ea32357d --- /dev/null +++ b/Misc/News/windows/bpo-28138.bugfix @@ -0,0 +1 @@ +Windows ._pth file should allow import site diff --git a/Misc/News/windows/bpo-28161.bugfix b/Misc/News/windows/bpo-28161.bugfix new file mode 100644 index 00000000000000..667817a2fd9846 --- /dev/null +++ b/Misc/News/windows/bpo-28161.bugfix @@ -0,0 +1 @@ +Opening CON for write access fails diff --git a/Misc/News/windows/bpo-28162.bugfix b/Misc/News/windows/bpo-28162.bugfix new file mode 100644 index 00000000000000..2568d3676b55f6 --- /dev/null +++ b/Misc/News/windows/bpo-28162.bugfix @@ -0,0 +1 @@ +WindowsConsoleIO readall() fails if first line starts with Ctrl+Z diff --git a/Misc/News/windows/bpo-28163.bugfix b/Misc/News/windows/bpo-28163.bugfix new file mode 100644 index 00000000000000..0c44499e74a5e9 --- /dev/null +++ b/Misc/News/windows/bpo-28163.bugfix @@ -0,0 +1 @@ +WindowsConsoleIO fileno() passes wrong flags to _open_osfhandle diff --git a/Misc/News/windows/bpo-28164.bugfix b/Misc/News/windows/bpo-28164.bugfix new file mode 100644 index 00000000000000..83ee2eb8df0f23 --- /dev/null +++ b/Misc/News/windows/bpo-28164.bugfix @@ -0,0 +1 @@ +_PyIO_get_console_type fails for various paths diff --git a/Misc/News/windows/bpo-28251.bugfix b/Misc/News/windows/bpo-28251.bugfix new file mode 100644 index 00000000000000..16d5ad08d80fab --- /dev/null +++ b/Misc/News/windows/bpo-28251.bugfix @@ -0,0 +1 @@ +Improvements to help manuals on Windows. diff --git a/Misc/News/windows/bpo-28333.feature b/Misc/News/windows/bpo-28333.feature new file mode 100644 index 00000000000000..564c925e182dd8 --- /dev/null +++ b/Misc/News/windows/bpo-28333.feature @@ -0,0 +1 @@ +Enables Unicode for ps1/ps2 and input() prompts. (Patch by Eryk Sun) diff --git a/Misc/News/windows/bpo-28402.feature b/Misc/News/windows/bpo-28402.feature new file mode 100644 index 00000000000000..cdf17e1685dfe8 --- /dev/null +++ b/Misc/News/windows/bpo-28402.feature @@ -0,0 +1 @@ +Adds signed catalog files for stdlib on Windows. diff --git a/Misc/News/windows/bpo-28522.bugfix b/Misc/News/windows/bpo-28522.bugfix new file mode 100644 index 00000000000000..9b91f326d77564 --- /dev/null +++ b/Misc/News/windows/bpo-28522.bugfix @@ -0,0 +1 @@ +Fixes mishandled buffer reallocation in getpathp.c diff --git a/Misc/News/windows/bpo-28896.removal b/Misc/News/windows/bpo-28896.removal new file mode 100644 index 00000000000000..727830c38997db --- /dev/null +++ b/Misc/News/windows/bpo-28896.removal @@ -0,0 +1 @@ +Deprecate WindowsRegistryFinder and disable it by default diff --git a/Misc/News/windows/bpo-29579.removal b/Misc/News/windows/bpo-29579.removal new file mode 100644 index 00000000000000..13c5b0d9dfd262 --- /dev/null +++ b/Misc/News/windows/bpo-29579.removal @@ -0,0 +1 @@ +Removes readme.txt from the installer. diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000000000..70f99b20318551 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,71 @@ +[tool.towncrier] +package = "Python" +filename = "Misc/NEWS.rst" +directory = "Misc/News/" +title_format = """ +What's New in {name} {version}? +=============================\n +*Release date: {project_date}*\n +""" +template = "Misc/News/template.rst" + + [[tool.towncrier.section]] + name = "Core and Builtins" + path = "core/" + + [[tool.towncrier.section]] + name = "Extension Modules" + path = "extensions/" + + [[tool.towncrier.section]] + name = "Library" + path = "library/" + + [[tool.towncrier.section]] + name = "Windows" + path = "windows/" + + [[tool.towncrier.section]] + name = "C API" + path = "c-api/" + + [[tool.towncrier.section]] + name = "Documentation" + path = "docs/" + + [[tool.towncrier.section]] + name = "Build" + path = "build/" + + [[tool.towncrier.section]] + name = "Tools/Demos" + path = "tools/" + + [[tool.towncrier.section]] + name = "Tests" + path = "tests/" + + [[tool.towncrier.type]] + directory = "feature" + name = "Features" + showcontent = true + + [[tool.towncrier.type]] + directory = "removal" + name = "Removal" + showcontent = true + + [[tool.towncrier.type]] + directory = "bugfix" + name = "Bug Fixes" + showcontent = true + + [[tool.towncrier.type]] + directory = "doc" + name = "Improved Documentation" + showcontent = true + + [[tool.towncrier.type]] + directory = "misc" + name = "Misc" + showcontent = false