diff options
Diffstat (limited to 'Misc/NEWS.d')
501 files changed, 25702 insertions, 0 deletions
diff --git a/Misc/NEWS.d/3.5.0.rst b/Misc/NEWS.d/3.5.0.rst new file mode 100644 index 0000000..59575d1 --- /dev/null +++ b/Misc/NEWS.d/3.5.0.rst @@ -0,0 +1,8 @@ +.. bpo: 25071 +.. date: 7965 +.. nonce: EwjXl1 +.. release date: 2015-09-13 +.. section: Build + +Windows installer should not require TargetDir parameter when installing +quietly. diff --git a/Misc/NEWS.d/3.5.0a1.rst b/Misc/NEWS.d/3.5.0a1.rst new file mode 100644 index 0000000..bc83544 --- /dev/null +++ b/Misc/NEWS.d/3.5.0a1.rst @@ -0,0 +1,5869 @@ +.. bpo: 23285 +.. date: 7608 +.. nonce: bJJA8B +.. release date: 2015-02-08 +.. section: Core and Builtins + +PEP 475 - EINTR handling. + +.. + +.. bpo: 22735 +.. date: 7607 +.. nonce: mFEX9n +.. section: Core and Builtins + +Fix many edge cases (including crashes) involving custom mro() +implementations. + +.. + +.. bpo: 22896 +.. date: 7606 +.. nonce: xSDAHK +.. section: Core and Builtins + +Avoid using PyObject_AsCharBuffer(), PyObject_AsReadBuffer() and +PyObject_AsWriteBuffer(). + +.. + +.. bpo: 21295 +.. date: 7605 +.. nonce: LYq9nF +.. section: Core and Builtins + +Revert some changes (issue #16795) to AST line numbers and column offsets +that constituted a regression. + +.. + +.. bpo: 22986 +.. date: 7604 +.. nonce: yay2Lv +.. section: Core and Builtins + +Allow changing an object's __class__ between a dynamic type and static type +in some cases. + +.. + +.. bpo: 15859 +.. date: 7603 +.. nonce: Fs5mE2 +.. section: Core and Builtins + +PyUnicode_EncodeFSDefault(), PyUnicode_EncodeMBCS() and +PyUnicode_EncodeCodePage() now raise an exception if the object is not a +Unicode object. For PyUnicode_EncodeFSDefault(), it was already the case on +platforms other than Windows. Patch written by Campbell Barton. + +.. + +.. bpo: 21408 +.. date: 7602 +.. nonce: Lz6P3P +.. section: Core and Builtins + +The default __ne__() now returns NotImplemented if __eq__() returned +NotImplemented. Original patch by Martin Panter. + +.. + +.. bpo: 23321 +.. date: 7601 +.. nonce: HQelge +.. section: Core and Builtins + +Fixed a crash in str.decode() when error handler returned replacment string +longer than mailformed input data. + +.. + +.. bpo: 22286 +.. date: 7600 +.. nonce: l6Qyy1 +.. section: Core and Builtins + +The "backslashreplace" error handlers now works with decoding and +translating. + +.. + +.. bpo: 23253 +.. date: 7599 +.. nonce: p4B1H- +.. section: Core and Builtins + +Delay-load ShellExecute[AW] in os.startfile for reduced startup overhead on +Windows. + +.. + +.. bpo: 22038 +.. date: 7598 +.. nonce: BMZUHx +.. section: Core and Builtins + +pyatomic.h now uses stdatomic.h or GCC built-in functions for atomic memory +access if available. Patch written by Vitor de Lima and Gustavo Temple. + +.. + +.. bpo: 20284 +.. date: 7597 +.. nonce: CH8wpD +.. section: Core and Builtins + +%-interpolation (aka printf) formatting added for bytes and bytearray. + +.. + +.. bpo: 23048 +.. date: 7596 +.. nonce: X5BUd3 +.. section: Core and Builtins + +Fix jumping out of an infinite while loop in the pdb. + +.. + +.. bpo: 20335 +.. date: 7595 +.. nonce: YcAPOs +.. section: Core and Builtins + +bytes constructor now raises TypeError when encoding or errors is specified +with non-string argument. Based on patch by Renaud Blanch. + +.. + +.. bpo: 22834 +.. date: 7594 +.. nonce: N1kAXN +.. section: Core and Builtins + +If the current working directory ends up being set to a non-existent +directory then import will no longer raise FileNotFoundError. + +.. + +.. bpo: 22869 +.. date: 7593 +.. nonce: rAWg-V +.. section: Core and Builtins + +Move the interpreter startup & shutdown code to a new dedicated +pylifecycle.c module + +.. + +.. bpo: 22847 +.. date: 7592 +.. nonce: 6baj9f +.. section: Core and Builtins + +Improve method cache efficiency. + +.. + +.. bpo: 22335 +.. date: 7591 +.. nonce: DWsXiy +.. section: Core and Builtins + +Fix crash when trying to enlarge a bytearray to 0x7fffffff bytes on a 32-bit +platform. + +.. + +.. bpo: 22653 +.. date: 7590 +.. nonce: pCNlpv +.. section: Core and Builtins + +Fix an assertion failure in debug mode when doing a reentrant dict insertion +in debug mode. + +.. + +.. bpo: 22643 +.. date: 7589 +.. nonce: xv8xev +.. section: Core and Builtins + +Fix integer overflow in Unicode case operations (upper, lower, title, +swapcase, casefold). + +.. + +.. bpo: 17636 +.. date: 7588 +.. nonce: wiqnhw +.. section: Core and Builtins + +Circular imports involving relative imports are now supported. + +.. + +.. bpo: 22604 +.. date: 7587 +.. nonce: yii-It +.. section: Core and Builtins + +Fix assertion error in debug mode when dividing a complex number by +(nan+0j). + +.. + +.. bpo: 21052 +.. date: 7586 +.. nonce: -sf3tp +.. section: Core and Builtins + +Do not raise ImportWarning when sys.path_hooks or sys.meta_path are set to +None. + +.. + +.. bpo: 16518 +.. date: 7585 +.. nonce: UADwcN +.. section: Core and Builtins + +Use 'bytes-like object required' in error messages that previously used the +far more cryptic "'x' does not support the buffer protocol. + +.. + +.. bpo: 22470 +.. date: 7584 +.. nonce: igrgN2 +.. section: Core and Builtins + +Fixed integer overflow issues in "backslashreplace", "xmlcharrefreplace", +and "surrogatepass" error handlers. + +.. + +.. bpo: 22540 +.. date: 7583 +.. nonce: FM72m- +.. section: Core and Builtins + +speed up `PyObject_IsInstance` and `PyObject_IsSubclass` in the common case +that the second argument has metaclass `type`. + +.. + +.. bpo: 18711 +.. date: 7582 +.. nonce: ds5wQa +.. section: Core and Builtins + +Add a new `PyErr_FormatV` function, similar to `PyErr_Format` but accepting +a `va_list` argument. + +.. + +.. bpo: 22520 +.. date: 7581 +.. nonce: ZPJXSq +.. section: Core and Builtins + +Fix overflow checking when generating the repr of a unicode object. + +.. + +.. bpo: 22519 +.. date: 7580 +.. nonce: xvJVg0 +.. section: Core and Builtins + +Fix overflow checking in PyBytes_Repr. + +.. + +.. bpo: 22518 +.. date: 7579 +.. nonce: C9T6ed +.. section: Core and Builtins + +Fix integer overflow issues in latin-1 encoding. + +.. + +.. bpo: 16324 +.. date: 7578 +.. nonce: YfrBNz +.. section: Core and Builtins + +_charset parameter of MIMEText now also accepts email.charset.Charset +instances. Initial patch by Claude Paroz. + +.. + +.. bpo: 1764286 +.. date: 7577 +.. nonce: L4seL2 +.. section: Core and Builtins + +Fix inspect.getsource() to support decorated functions. Patch by Claudiu +Popa. + +.. + +.. bpo: 18554 +.. date: 7576 +.. nonce: hxnaui +.. section: Core and Builtins + +os.__all__ includes posix functions. + +.. + +.. bpo: 21391 +.. date: 7575 +.. nonce: 3jntPd +.. section: Core and Builtins + +Use os.path.abspath in the shutil module. + +.. + +.. bpo: 11471 +.. date: 7574 +.. nonce: Uu752F +.. section: Core and Builtins + +avoid generating a JUMP_FORWARD instruction at the end of an if-block if +there is no else-clause. Original patch by Eugene Toder. + +.. + +.. bpo: 22215 +.. date: 7573 +.. nonce: IBFi6H +.. section: Core and Builtins + +Now ValueError is raised instead of TypeError when str or bytes argument +contains not permitted null character or byte. + +.. + +.. bpo: 22258 +.. date: 7572 +.. nonce: 4FszMt +.. section: Core and Builtins + +Fix the internal function set_inheritable() on Illumos. This platform +exposes the function ``ioctl(FIOCLEX)``, but calling it fails with errno is +ENOTTY: "Inappropriate ioctl for device". set_inheritable() now falls back +to the slower ``fcntl()`` (``F_GETFD`` and then ``F_SETFD``). + +.. + +.. bpo: 21389 +.. date: 7571 +.. nonce: dnWZBn +.. section: Core and Builtins + +Displaying the __qualname__ of the underlying function in the repr of a +bound method. + +.. + +.. bpo: 22206 +.. date: 7570 +.. nonce: 0i_ihB +.. section: Core and Builtins + +Using pthread, PyThread_create_key() now sets errno to ENOMEM and returns -1 +(error) on integer overflow. + +.. + +.. bpo: 20184 +.. date: 7569 +.. nonce: bb3uHY +.. section: Core and Builtins + +Argument Clinic based signature introspection added for 30 of the builtin +functions. + +.. + +.. bpo: 22116 +.. date: 7568 +.. nonce: auVmIt +.. section: Core and Builtins + +C functions and methods (of the 'builtin_function_or_method' type) can now +be weakref'ed. Patch by Wei Wu. + +.. + +.. bpo: 22077 +.. date: 7567 +.. nonce: KZUDR- +.. section: Core and Builtins + +Improve index error messages for bytearrays, bytes, lists, and tuples by +adding 'or slices'. Added ', not <typename>' for bytearrays. Original patch +by Claudiu Popa. + +.. + +.. bpo: 20179 +.. date: 7566 +.. nonce: Nvhffc +.. section: Core and Builtins + +Apply Argument Clinic to bytes and bytearray. Patch by Tal Einat. + +.. + +.. bpo: 22082 +.. date: 7565 +.. nonce: 6X8Qmg +.. section: Core and Builtins + +Clear interned strings in slotdefs. + +.. + +.. bpo: 0 +.. date: 7564 +.. nonce: tuMnCc +.. section: Core and Builtins + +Upgrade Unicode database to Unicode 7.0.0. + +.. + +.. bpo: 21897 +.. date: 7563 +.. nonce: kiOGHe +.. section: Core and Builtins + +Fix a crash with the f_locals attribute with closure variables when +frame.clear() has been called. + +.. + +.. bpo: 21205 +.. date: 7562 +.. nonce: wZsx1K +.. section: Core and Builtins + +Add a new ``__qualname__`` attribute to generator, the qualified name, and +use it in the representation of a generator (``repr(gen)``). The default +name of the generator (``__name__`` attribute) is now get from the function +instead of the code. Use ``gen.gi_code.co_name`` to get the name of the +code. + +.. + +.. bpo: 21669 +.. date: 7561 +.. nonce: DFDrBA +.. section: Core and Builtins + +With the aid of heuristics in SyntaxError.__init__, the parser now attempts +to generate more meaningful (or at least more search engine friendly) error +messages when "exec" and "print" are used as statements. + +.. + +.. bpo: 21642 +.. date: 7560 +.. nonce: -lWoKz +.. section: Core and Builtins + +In the conditional if-else expression, allow an integer written with no +space between itself and the ``else`` keyword (e.g. ``True if 42else +False``) to be valid syntax. + +.. + +.. bpo: 21523 +.. date: 7559 +.. nonce: f_PPYO +.. section: Core and Builtins + +Fix over-pessimistic computation of the stack effect of some opcodes in the +compiler. This also fixes a quadratic compilation time issue noticeable +when compiling code with a large number of "and" and "or" operators. + +.. + +.. bpo: 21418 +.. date: 7558 +.. nonce: z9jp1_ +.. section: Core and Builtins + +Fix a crash in the builtin function super() when called without argument and +without current frame (ex: embedded Python). + +.. + +.. bpo: 21425 +.. date: 7557 +.. nonce: i3Teb8 +.. section: Core and Builtins + +Fix flushing of standard streams in the interactive interpreter. + +.. + +.. bpo: 21435 +.. date: 7556 +.. nonce: ZojVOT +.. section: Core and Builtins + +In rare cases, when running finalizers on objects in cyclic trash a bad +pointer dereference could occur due to a subtle flaw in internal iteration +logic. + +.. + +.. bpo: 21377 +.. date: 7555 +.. nonce: OawYfl +.. section: Core and Builtins + +PyBytes_Concat() now tries to concatenate in-place when the first argument +has a reference count of 1. Patch by Nikolaus Rath. + +.. + +.. bpo: 20355 +.. date: 7554 +.. nonce: OrCNkZ +.. section: Core and Builtins + +-W command line options now have higher priority than the PYTHONWARNINGS +environment variable. Patch by Arfrever. + +.. + +.. bpo: 21274 +.. date: 7553 +.. nonce: fVGfwq +.. section: Core and Builtins + +Define PATH_MAX for GNU/Hurd in Python/pythonrun.c. + +.. + +.. bpo: 20904 +.. date: 7552 +.. nonce: fAGdj2 +.. section: Core and Builtins + +Support setting FPU precision on m68k. + +.. + +.. bpo: 21209 +.. date: 7551 +.. nonce: nMljFr +.. section: Core and Builtins + +Fix sending tuples to custom generator objects with the yield from syntax. + +.. + +.. bpo: 21193 +.. date: 7550 +.. nonce: Dg98Oo +.. section: Core and Builtins + +pow(a, b, c) now raises ValueError rather than TypeError when b is negative. +Patch by Josh Rosenberg. + +.. + +.. bpo: 21176 +.. date: 7549 +.. nonce: mitDhW +.. section: Core and Builtins + +PEP 465: Add the '@' operator for matrix multiplication. + +.. + +.. bpo: 21134 +.. date: 7548 +.. nonce: ZL4SKo +.. section: Core and Builtins + +Fix segfault when str is called on an uninitialized UnicodeEncodeError, +UnicodeDecodeError, or UnicodeTranslateError object. + +.. + +.. bpo: 19537 +.. date: 7547 +.. nonce: AkuC_J +.. section: Core and Builtins + +Fix PyUnicode_DATA() alignment under m68k. Patch by Andreas Schwab. + +.. + +.. bpo: 20929 +.. date: 7546 +.. nonce: 9NlUR7 +.. section: Core and Builtins + +Add a type cast to avoid shifting a negative number. + +.. + +.. bpo: 20731 +.. date: 7545 +.. nonce: _03SZg +.. section: Core and Builtins + +Properly position in source code files even if they are opened in text mode. +Patch by Serhiy Storchaka. + +.. + +.. bpo: 20637 +.. date: 7544 +.. nonce: ppYU0o +.. section: Core and Builtins + +Key-sharing now also works for instance dictionaries of subclasses. Patch +by Peter Ingebretson. + +.. + +.. bpo: 8297 +.. date: 7543 +.. nonce: _XdGON +.. section: Core and Builtins + +Attributes missing from modules now include the module name in the error +text. Original patch by ysj.ray. + +.. + +.. bpo: 19995 +.. date: 7542 +.. nonce: mnHEzX +.. section: Core and Builtins + +%c, %o, %x, and %X now raise TypeError on non-integer input. + +.. + +.. bpo: 19655 +.. date: 7541 +.. nonce: JgVdes +.. section: Core and Builtins + +The ASDL parser - used by the build process to generate code for managing +the Python AST in C - was rewritten. The new parser is self contained and +does not require to carry long the spark.py parser-generator library; +spark.py was removed from the source base. + +.. + +.. bpo: 12546 +.. date: 7540 +.. nonce: 09naZ9 +.. section: Core and Builtins + +Allow ``\x00`` to be used as a fill character when using str, int, float, +and complex __format__ methods. + +.. + +.. bpo: 20480 +.. date: 7539 +.. nonce: TIYPLo +.. section: Core and Builtins + +Add ipaddress.reverse_pointer. Patch by Leon Weber. + +.. + +.. bpo: 13598 +.. date: 7538 +.. nonce: GJelrw +.. section: Core and Builtins + +Modify string.Formatter to support auto-numbering of replacement fields. It +now matches the behavior of str.format() in this regard. Patches by Phil +Elson and Ramchandra Apte. + +.. + +.. bpo: 8931 +.. date: 7537 +.. nonce: M05x4f +.. section: Core and Builtins + +Make alternate formatting ('#') for type 'c' raise an exception. In versions +prior to 3.5, '#' with 'c' had no effect. Now specifying it is an error. +Patch by Torsten Landschoff. + +.. + +.. bpo: 23165 +.. date: 7536 +.. nonce: lk8uCE +.. section: Core and Builtins + +Perform overflow checks before allocating memory in the _Py_char2wchar +function. + +.. + +.. bpo: 23399 +.. date: 7535 +.. nonce: hXMYgA +.. section: Library + +pyvenv creates relative symlinks where possible. + +.. + +.. bpo: 20289 +.. date: 7534 +.. nonce: nio1N- +.. section: Library + +cgi.FieldStorage() now supports the context management protocol. + +.. + +.. bpo: 13128 +.. date: 7533 +.. nonce: vqEcsy +.. section: Library + +Print response headers for CONNECT requests when debuglevel > 0. Patch by +Demian Brecht. + +.. + +.. bpo: 15381 +.. date: 7532 +.. nonce: Xv-wu8 +.. section: Library + +Optimized io.BytesIO to make less allocations and copyings. + +.. + +.. bpo: 22818 +.. date: 7531 +.. nonce: NYdAc9 +.. section: Library + +Splitting on a pattern that could match an empty string now raises a +warning. Patterns that can only match empty strings are now rejected. + +.. + +.. bpo: 23099 +.. date: 7530 +.. nonce: ZASrUo +.. section: Library + +Closing io.BytesIO with exported buffer is rejected now to prevent +corrupting exported buffer. + +.. + +.. bpo: 23326 +.. date: 7529 +.. nonce: 8VzlZD +.. section: Library + +Removed __ne__ implementations. Since fixing default __ne__ implementation +in issue #21408 they are redundant. + +.. + +.. bpo: 23363 +.. date: 7528 +.. nonce: -koaol +.. section: Library + +Fix possible overflow in itertools.permutations. + +.. + +.. bpo: 23364 +.. date: 7527 +.. nonce: 3yBV-6 +.. section: Library + +Fix possible overflow in itertools.product. + +.. + +.. bpo: 23366 +.. date: 7526 +.. nonce: tyAfm8 +.. section: Library + +Fixed possible integer overflow in itertools.combinations. + +.. + +.. bpo: 23369 +.. date: 7525 +.. nonce: nqChyE +.. section: Library + +Fixed possible integer overflow in _json.encode_basestring_ascii. + +.. + +.. bpo: 23353 +.. date: 7524 +.. nonce: Iytkpc +.. section: Library + +Fix the exception handling of generators in PyEval_EvalFrameEx(). At entry, +save or swap the exception state even if PyEval_EvalFrameEx() is called with +throwflag=0. At exit, the exception state is now always restored or swapped, +not only if why is WHY_YIELD or WHY_RETURN. Patch co-written with Antoine +Pitrou. + +.. + +.. bpo: 14099 +.. date: 7523 +.. nonce: t9-HVE +.. section: Library + +Restored support of writing ZIP files to tellable but non-seekable streams. + +.. + +.. bpo: 14099 +.. date: 7522 +.. nonce: Myxxww +.. section: Library + +Writing to ZipFile and reading multiple ZipExtFiles is threadsafe now. + +.. + +.. bpo: 19361 +.. date: 7521 +.. nonce: 2mvrV3 +.. section: Library + +JSON decoder now raises JSONDecodeError instead of ValueError. + +.. + +.. bpo: 18518 +.. date: 7520 +.. nonce: JXgicC +.. section: Library + +timeit now rejects statements which can't be compiled outside a function or +a loop (e.g. "return" or "break"). + +.. + +.. bpo: 23094 +.. date: 7519 +.. nonce: -8AXSi +.. section: Library + +Fixed readline with frames in Python implementation of pickle. + +.. + +.. bpo: 23268 +.. date: 7518 +.. nonce: ATtRa5 +.. section: Library + +Fixed bugs in the comparison of ipaddress classes. + +.. + +.. bpo: 21408 +.. date: 7517 +.. nonce: 0rI6tx +.. section: Library + +Removed incorrect implementations of __ne__() which didn't returned +NotImplemented if __eq__() returned NotImplemented. The default __ne__() +now works correctly. + +.. + +.. bpo: 19996 +.. date: 7516 +.. nonce: 2-SiMf +.. section: Library + +:class:`email.feedparser.FeedParser` now handles (malformed) headers with no +key rather than assuming the body has started. + +.. + +.. bpo: 20188 +.. date: 7515 +.. nonce: xocY-2 +.. section: Library + +Support Application-Layer Protocol Negotiation (ALPN) in the ssl module. + +.. + +.. bpo: 23133 +.. date: 7514 +.. nonce: 8p2Wnl +.. section: Library + +Pickling of ipaddress objects now produces more compact and portable +representation. + +.. + +.. bpo: 23248 +.. date: 7513 +.. nonce: FjcyCP +.. section: Library + +Update ssl error codes from latest OpenSSL git master. + +.. + +.. bpo: 23266 +.. date: 7512 +.. nonce: Mo7alR +.. section: Library + +Much faster implementation of ipaddress.collapse_addresses() when there are +many non-consecutive addresses. + +.. + +.. bpo: 23098 +.. date: 7511 +.. nonce: 7VwF3K +.. section: Library + +64-bit dev_t is now supported in the os module. + +.. + +.. bpo: 21817 +.. date: 7510 +.. nonce: xYUW-9 +.. section: Library + +When an exception is raised in a task submitted to a ProcessPoolExecutor, +the remote traceback is now displayed in the parent process. Patch by +Claudiu Popa. + +.. + +.. bpo: 15955 +.. date: 7509 +.. nonce: uvpBL4 +.. section: Library + +Add an option to limit output size when decompressing LZMA data. Patch by +Nikolaus Rath and Martin Panter. + +.. + +.. bpo: 23250 +.. date: 7508 +.. nonce: qNGAUf +.. section: Library + +In the http.cookies module, capitalize "HttpOnly" and "Secure" as they are +written in the standard. + +.. + +.. bpo: 23063 +.. date: 7507 +.. nonce: 9-UJRs +.. section: Library + +In the disutils' check command, fix parsing of reST with code or code-block +directives. + +.. + +.. bpo: 23209 +.. date: 7506 +.. nonce: I0bCCH +.. section: Library + +selectors.BaseSelector.get_key() now raises a RuntimeError if the selector +is closed. And selectors.BaseSelector.close() now clears its internal +reference to the selector mapping to break a reference cycle. Initial patch +written by Martin Richard. (See also: bpo-23225) + +.. + +.. bpo: 17911 +.. date: 7505 +.. nonce: yg65Iu +.. section: Library + +Provide a way to seed the linecache for a PEP-302 module without actually +loading the code. + +.. + +.. bpo: 17911 +.. date: 7504 +.. nonce: qeTePa +.. section: Library + +Provide a new object API for traceback, including the ability to not lookup +lines at all until the traceback is actually rendered, without any trace of +the original objects being kept alive. + +.. + +.. bpo: 19777 +.. date: 7503 +.. nonce: H_NDIA +.. section: Library + +Provide a home() classmethod on Path objects. Contributed by Victor Salgado +and Mayank Tripathi. + +.. + +.. bpo: 23206 +.. date: 7502 +.. nonce: xSiYwq +.. section: Library + +Make ``json.dumps(..., ensure_ascii=False)`` as fast as the default case of +``ensure_ascii=True``. Patch by Naoki Inada. + +.. + +.. bpo: 23185 +.. date: 7501 +.. nonce: KHyoSO +.. section: Library + +Add math.inf and math.nan constants. + +.. + +.. bpo: 23186 +.. date: 7500 +.. nonce: KzWLP2 +.. section: Library + +Add ssl.SSLObject.shared_ciphers() and ssl.SSLSocket.shared_ciphers() to +fetch the client's list ciphers sent at handshake. + +.. + +.. bpo: 23143 +.. date: 7499 +.. nonce: AWxJXV +.. section: Library + +Remove compatibility with OpenSSLs older than 0.9.8. + +.. + +.. bpo: 23132 +.. date: 7498 +.. nonce: pbQcut +.. section: Library + +Improve performance and introspection support of comparison methods created +by functool.total_ordering. + +.. + +.. bpo: 19776 +.. date: 7497 +.. nonce: BxNgxd +.. section: Library + +Add an expanduser() method on Path objects. + +.. + +.. bpo: 23112 +.. date: 7496 +.. nonce: dZGf82 +.. section: Library + +Fix SimpleHTTPServer to correctly carry the query string and fragment when +it redirects to add a trailing slash. + +.. + +.. bpo: 21793 +.. date: 7495 +.. nonce: T1kQBL +.. section: Library + +Added http.HTTPStatus enums (i.e. HTTPStatus.OK, HTTPStatus.NOT_FOUND). +Patch by Demian Brecht. + +.. + +.. bpo: 23093 +.. date: 7494 +.. nonce: cP7OqD +.. section: Library + +In the io, module allow more operations to work on detached streams. + +.. + +.. bpo: 23111 +.. date: 7493 +.. nonce: A34IA4 +.. section: Library + +In the ftplib, make ssl.PROTOCOL_SSLv23 the default protocol version. + +.. + +.. bpo: 22585 +.. date: 7492 +.. nonce: F4BkNo +.. section: Library + +On OpenBSD 5.6 and newer, os.urandom() now calls getentropy(), instead of +reading /dev/urandom, to get pseudo-random bytes. + +.. + +.. bpo: 19104 +.. date: 7491 +.. nonce: _eIThy +.. section: Library + +pprint now produces evaluable output for wrapped strings. + +.. + +.. bpo: 23071 +.. date: 7490 +.. nonce: 3BSqF7 +.. section: Library + +Added missing names to codecs.__all__. Patch by Martin Panter. + +.. + +.. bpo: 22783 +.. date: 7489 +.. nonce: OfYxBd +.. section: Library + +Pickling now uses the NEWOBJ opcode instead of the NEWOBJ_EX opcode if +possible. + +.. + +.. bpo: 15513 +.. date: 7488 +.. nonce: 7yVnRE +.. section: Library + +Added a __sizeof__ implementation for pickle classes. + +.. + +.. bpo: 19858 +.. date: 7487 +.. nonce: cqOlIt +.. section: Library + +pickletools.optimize() now aware of the MEMOIZE opcode, can produce more +compact result and no longer produces invalid output if input data contains +MEMOIZE opcodes together with PUT or BINPUT opcodes. + +.. + +.. bpo: 22095 +.. date: 7486 +.. nonce: iISzxM +.. section: Library + +Fixed HTTPConnection.set_tunnel with default port. The port value in the +host header was set to "None". Patch by Demian Brecht. + +.. + +.. bpo: 23016 +.. date: 7485 +.. nonce: LyrPd_ +.. section: Library + +A warning no longer produces an AttributeError when the program is run with +pythonw.exe. + +.. + +.. bpo: 21775 +.. date: 7484 +.. nonce: ELR_Al +.. section: Library + +shutil.copytree(): fix crash when copying to VFAT. An exception handler +assumed that OSError objects always have a 'winerror' attribute. That is not +the case, so the exception handler itself raised AttributeError when run on +Linux (and, presumably, any other non-Windows OS). Patch by Greg Ward. + +.. + +.. bpo: 1218234 +.. date: 7483 +.. nonce: 4GcoQK +.. section: Library + +Fix inspect.getsource() to load updated source of reloaded module. Initial +patch by Berker Peksag. + +.. + +.. bpo: 21740 +.. date: 7482 +.. nonce: TtAApO +.. section: Library + +Support wrapped callables in doctest. Patch by Claudiu Popa. + +.. + +.. bpo: 23009 +.. date: 7481 +.. nonce: -sW7gk +.. section: Library + +Make sure selectors.EpollSelecrtor.select() works when no FD is registered. + +.. + +.. bpo: 22959 +.. date: 7480 +.. nonce: Vxt3EP +.. section: Library + +In the constructor of http.client.HTTPSConnection, prefer the context's +check_hostname attribute over the *check_hostname* parameter. + +.. + +.. bpo: 22696 +.. date: 7479 +.. nonce: pvdcxs +.. section: Library + +Add function :func:`sys.is_finalizing` to know about interpreter shutdown. + +.. + +.. bpo: 16043 +.. date: 7478 +.. nonce: TGIC7t +.. section: Library + +Add a default limit for the amount of data xmlrpclib.gzip_decode will +return. This resolves CVE-2013-1753. + +.. + +.. bpo: 14099 +.. date: 7477 +.. nonce: GJ5meQ +.. section: Library + +ZipFile.open() no longer reopen the underlying file. Objects returned by +ZipFile.open() can now operate independently of the ZipFile even if the +ZipFile was created by passing in a file-like object as the first argument +to the constructor. + +.. + +.. bpo: 22966 +.. date: 7476 +.. nonce: zIxDrT +.. section: Library + +Fix __pycache__ pyc file name clobber when pyc_compile is asked to compile a +source file containing multiple dots in the source file name. + +.. + +.. bpo: 21971 +.. date: 7475 +.. nonce: XlTc22 +.. section: Library + +Update turtledemo doc and add module to the index. + +.. + +.. bpo: 21032 +.. date: 7474 +.. nonce: wxT_41 +.. section: Library + +Fixed socket leak if HTTPConnection.getresponse() fails. Original patch by +Martin Panter. + +.. + +.. bpo: 22407 +.. date: 7473 +.. nonce: CWi1wX +.. section: Library + +Deprecated the use of re.LOCALE flag with str patterns or re.ASCII. It was +newer worked. + +.. + +.. bpo: 22902 +.. date: 7472 +.. nonce: ZqXriA +.. section: Library + +The "ip" command is now used on Linux to determine MAC address in +uuid.getnode(). Pach by Bruno Cauet. + +.. + +.. bpo: 22960 +.. date: 7471 +.. nonce: 2VDILT +.. section: Library + +Add a context argument to xmlrpclib.ServerProxy constructor. + +.. + +.. bpo: 22389 +.. date: 7470 +.. nonce: 82DuwD +.. section: Library + +Add contextlib.redirect_stderr(). + +.. + +.. bpo: 21356 +.. date: 7469 +.. nonce: 8NY75J +.. section: Library + +Make ssl.RAND_egd() optional to support LibreSSL. The availability of the +function is checked during the compilation. Patch written by Bernard Spil. + +.. + +.. bpo: 22915 +.. date: 7468 +.. nonce: 709UAo +.. section: Library + +SAX parser now supports files opened with file descriptor or bytes path. + +.. + +.. bpo: 22609 +.. date: 7467 +.. nonce: mmLoeb +.. section: Library + +Constructors and update methods of mapping classes in the collections module +now accept the self keyword argument. + +.. + +.. bpo: 22940 +.. date: 7466 +.. nonce: SP99Nf +.. section: Library + +Add readline.append_history_file. + +.. + +.. bpo: 19676 +.. date: 7465 +.. nonce: Wijwr8 +.. section: Library + +Added the "namereplace" error handler. + +.. + +.. bpo: 22788 +.. date: 7464 +.. nonce: vofL9e +.. section: Library + +Add *context* parameter to logging.handlers.HTTPHandler. + +.. + +.. bpo: 22921 +.. date: 7463 +.. nonce: a4wx1C +.. section: Library + +Allow SSLContext to take the *hostname* parameter even if OpenSSL doesn't +support SNI. + +.. + +.. bpo: 22894 +.. date: 7462 +.. nonce: 4AkwPA +.. section: Library + +TestCase.subTest() would cause the test suite to be stopped when in failfast +mode, even in the absence of failures. + +.. + +.. bpo: 22796 +.. date: 7461 +.. nonce: _pFPFA +.. section: Library + +HTTP cookie parsing is now stricter, in order to protect against potential +injection attacks. + +.. + +.. bpo: 22370 +.. date: 7460 +.. nonce: j4y21u +.. section: Library + +Windows detection in pathlib is now more robust. + +.. + +.. bpo: 22841 +.. date: 7459 +.. nonce: 8wpk7T +.. section: Library + +Reject coroutines in asyncio add_signal_handler(). Patch by Ludovic.Gasc. + +.. + +.. bpo: 19494 +.. date: 7458 +.. nonce: 7O5O8k +.. section: Library + +Added urllib.request.HTTPBasicPriorAuthHandler. Patch by Matej Cepl. + +.. + +.. bpo: 22578 +.. date: 7457 +.. nonce: 6XZ0Jf +.. section: Library + +Added attributes to the re.error class. + +.. + +.. bpo: 22849 +.. date: 7456 +.. nonce: AqBPyj +.. section: Library + +Fix possible double free in the io.TextIOWrapper constructor. + +.. + +.. bpo: 12728 +.. date: 7455 +.. nonce: rHZmXO +.. section: Library + +Different Unicode characters having the same uppercase but different +lowercase are now matched in case-insensitive regular expressions. + +.. + +.. bpo: 22821 +.. date: 7454 +.. nonce: 30cQ-U +.. section: Library + +Fixed fcntl() with integer argument on 64-bit big-endian platforms. + +.. + +.. bpo: 21650 +.. date: 7453 +.. nonce: 62MLqr +.. section: Library + +Add an `--sort-keys` option to json.tool CLI. + +.. + +.. bpo: 22824 +.. date: 7452 +.. nonce: d5Txvr +.. section: Library + +Updated reprlib output format for sets to use set literals. Patch +contributed by Berker Peksag. + +.. + +.. bpo: 22824 +.. date: 7451 +.. nonce: H_r9uH +.. section: Library + +Updated reprlib output format for arrays to display empty arrays without an +unnecessary empty list. Suggested by Serhiy Storchaka. + +.. + +.. bpo: 22406 +.. date: 7450 +.. nonce: sPlVbI +.. section: Library + +Fixed the uu_codec codec incorrectly ported to 3.x. Based on patch by Martin +Panter. + +.. + +.. bpo: 17293 +.. date: 7449 +.. nonce: Hk06bO +.. section: Library + +uuid.getnode() now determines MAC address on AIX using netstat. Based on +patch by Aivars Kalvāns. + +.. + +.. bpo: 22769 +.. date: 7448 +.. nonce: PunnvQ +.. section: Library + +Fixed ttk.Treeview.tag_has() when called without arguments. + +.. + +.. bpo: 22417 +.. date: 7447 +.. nonce: To4b7U +.. section: Library + +Verify certificates by default in httplib (PEP 476). + +.. + +.. bpo: 22775 +.. date: 7446 +.. nonce: V5aCUz +.. section: Library + +Fixed unpickling of http.cookies.SimpleCookie with protocol 2 and above. +Patch by Tim Graham. + +.. + +.. bpo: 22776 +.. date: 7445 +.. nonce: xNcRse +.. section: Library + +Brought excluded code into the scope of a try block in SysLogHandler.emit(). + +.. + +.. bpo: 22665 +.. date: 7444 +.. nonce: j6Jlp8 +.. section: Library + +Add missing get_terminal_size and SameFileError to shutil.__all__. + +.. + +.. bpo: 6623 +.. date: 7443 +.. nonce: 6LOidS +.. section: Library + +Remove deprecated Netrc class in the ftplib module. Patch by Matt Chaput. + +.. + +.. bpo: 17381 +.. date: 7442 +.. nonce: 4J5yv7 +.. section: Library + +Fixed handling of case-insensitive ranges in regular expressions. + +.. + +.. bpo: 22410 +.. date: 7441 +.. nonce: 99YFdd +.. section: Library + +Module level functions in the re module now cache compiled locale-dependent +regular expressions taking into account the locale. + +.. + +.. bpo: 22759 +.. date: 7440 +.. nonce: BJPdiL +.. section: Library + +Query methods on pathlib.Path() (exists(), is_dir(), etc.) now return False +when the underlying stat call raises NotADirectoryError. + +.. + +.. bpo: 8876 +.. date: 7439 +.. nonce: A83Av4 +.. section: Library + +distutils now falls back to copying files when hard linking doesn't work. +This allows use with special filesystems such as VirtualBox shared folders. + +.. + +.. bpo: 22217 +.. date: 7438 +.. nonce: nXzGur +.. section: Library + +Implemented reprs of classes in the zipfile module. + +.. + +.. bpo: 22457 +.. date: 7437 +.. nonce: Xd2Mk- +.. section: Library + +Honour load_tests in the start_dir of discovery. + +.. + +.. bpo: 18216 +.. date: 7436 +.. nonce: trTZw4 +.. section: Library + +gettext now raises an error when a .mo file has an unsupported major version +number. Patch by Aaron Hill. + +.. + +.. bpo: 13918 +.. date: 7435 +.. nonce: -OnUhD +.. section: Library + +Provide a locale.delocalize() function which can remove locale-specific +number formatting from a string representing a number, without then +converting it to a specific type. Patch by Cédric Krier. + +.. + +.. bpo: 22676 +.. date: 7434 +.. nonce: d2v8QM +.. section: Library + +Make the pickling of global objects which don't have a __module__ attribute +less slow. + +.. + +.. bpo: 18853 +.. date: 7433 +.. nonce: 76DrPD +.. section: Library + +Fixed ResourceWarning in shlex.__nain__. + +.. + +.. bpo: 9351 +.. date: 7432 +.. nonce: u5UI-6 +.. section: Library + +Defaults set with set_defaults on an argparse subparser are no longer +ignored when also set on the parent parser. + +.. + +.. bpo: 7559 +.. date: 7431 +.. nonce: QG35ZP +.. section: Library + +unittest test loading ImportErrors are reported as import errors with their +import exception rather than as attribute errors after the import has +already failed. + +.. + +.. bpo: 19746 +.. date: 7430 +.. nonce: S1dg1K +.. section: Library + +Make it possible to examine the errors from unittest discovery without +executing the test suite. The new `errors` attribute on TestLoader exposes +these non-fatal errors encountered during discovery. + +.. + +.. bpo: 21991 +.. date: 7429 +.. nonce: Mkm0IN +.. section: Library + +Make email.headerregistry's header 'params' attributes be read-only +(MappingProxyType). Previously the dictionary was modifiable but a new one +was created on each access of the attribute. + +.. + +.. bpo: 22638 +.. date: 7428 +.. nonce: Ur73gJ +.. section: Library + +SSLv3 is now disabled throughout the standard library. It can still be +enabled by instantiating a SSLContext manually. + +.. + +.. bpo: 22641 +.. date: 7427 +.. nonce: m0ldtl +.. section: Library + +In asyncio, the default SSL context for client connections is now created +using ssl.create_default_context(), for stronger security. + +.. + +.. bpo: 17401 +.. date: 7426 +.. nonce: SZd19P +.. section: Library + +Include closefd in io.FileIO repr. + +.. + +.. bpo: 21338 +.. date: 7425 +.. nonce: evDyHD +.. section: Library + +Add silent mode for compileall. quiet parameters of compile_{dir, file, +path} functions now have a multilevel value. Also, -q option of the CLI now +have a multilevel value. Patch by Thomas Kluyver. + +.. + +.. bpo: 20152 +.. date: 7424 +.. nonce: 9_o92A +.. section: Library + +Convert the array and cmath modules to Argument Clinic. + +.. + +.. bpo: 18643 +.. date: 7423 +.. nonce: 6Qdc0J +.. section: Library + +Add socket.socketpair() on Windows. + +.. + +.. bpo: 22435 +.. date: 7422 +.. nonce: s2U7Zm +.. section: Library + +Fix a file descriptor leak when socketserver bind fails. + +.. + +.. bpo: 13096 +.. date: 7421 +.. nonce: rsailB +.. section: Library + +Fixed segfault in CTypes POINTER handling of large values. + +.. + +.. bpo: 11694 +.. date: 7420 +.. nonce: JuDrch +.. section: Library + +Raise ConversionError in xdrlib as documented. Patch by Filip Gruszczyński +and Claudiu Popa. + +.. + +.. bpo: 19380 +.. date: 7419 +.. nonce: nqgoRQ +.. section: Library + +Optimized parsing of regular expressions. + +.. + +.. bpo: 1519638 +.. date: 7418 +.. nonce: 2pbuog +.. section: Library + +Now unmatched groups are replaced with empty strings in re.sub() and +re.subn(). + +.. + +.. bpo: 18615 +.. date: 7417 +.. nonce: 65TxnY +.. section: Library + +sndhdr.what/whathdr now return a namedtuple. + +.. + +.. bpo: 22462 +.. date: 7416 +.. nonce: 1h4Kpr +.. section: Library + +Fix pyexpat's creation of a dummy frame to make it appear in exception +tracebacks. + +.. + +.. bpo: 21965 +.. date: 7415 +.. nonce: n_jnXs +.. section: Library + +Add support for in-memory SSL to the ssl module. Patch by Geert Jansen. + +.. + +.. bpo: 21173 +.. date: 7414 +.. nonce: egkbEx +.. section: Library + +Fix len() on a WeakKeyDictionary when .clear() was called with an iterator +alive. + +.. + +.. bpo: 11866 +.. date: 7413 +.. nonce: xrvbIC +.. section: Library + +Eliminated race condition in the computation of names for new threads. + +.. + +.. bpo: 21905 +.. date: 7412 +.. nonce: coKyRo +.. section: Library + +Avoid RuntimeError in pickle.whichmodule() when sys.modules is mutated while +iterating. Patch by Olivier Grisel. + +.. + +.. bpo: 11271 +.. date: 7411 +.. nonce: ZYiJru +.. section: Library + +concurrent.futures.Executor.map() now takes a *chunksize* argument to allow +batching of tasks in child processes and improve performance of +ProcessPoolExecutor. Patch by Dan O'Reilly. + +.. + +.. bpo: 21883 +.. date: 7410 +.. nonce: qpuQu6 +.. section: Library + +os.path.join() and os.path.relpath() now raise a TypeError with more helpful +error message for unsupported or mismatched types of arguments. + +.. + +.. bpo: 22219 +.. date: 7409 +.. nonce: l9Enh9 +.. section: Library + +The zipfile module CLI now adds entries for directories (including empty +directories) in ZIP file. + +.. + +.. bpo: 22449 +.. date: 7408 +.. nonce: nFW_Fl +.. section: Library + +In the ssl.SSLContext.load_default_certs, consult the environmental +variables SSL_CERT_DIR and SSL_CERT_FILE on Windows. + +.. + +.. bpo: 22508 +.. date: 7407 +.. nonce: 2LbnGQ +.. section: Library + +The email.__version__ variable has been removed; the email code is no longer +shipped separately from the stdlib, and __version__ hasn't been updated in +several releases. + +.. + +.. bpo: 20076 +.. date: 7406 +.. nonce: -7OIVB +.. section: Library + +Added non derived UTF-8 aliases to locale aliases table. + +.. + +.. bpo: 20079 +.. date: 7405 +.. nonce: qM949O +.. section: Library + +Added locales supported in glibc 2.18 to locale alias table. + +.. + +.. bpo: 20218 +.. date: 7404 +.. nonce: CMgOyE +.. section: Library + +Added convenience methods read_text/write_text and read_bytes/ write_bytes +to pathlib.Path objects. + +.. + +.. bpo: 22396 +.. date: 7403 +.. nonce: cQSizA +.. section: Library + +On 32-bit AIX platform, don't expose os.posix_fadvise() nor +os.posix_fallocate() because their prototypes in system headers are wrong. + +.. + +.. bpo: 22517 +.. date: 7402 +.. nonce: qT6-aB +.. section: Library + +When an io.BufferedRWPair object is deallocated, clear its weakrefs. + +.. + +.. bpo: 22437 +.. date: 7401 +.. nonce: MRVnmQ +.. section: Library + +Number of capturing groups in regular expression is no longer limited by +100. + +.. + +.. bpo: 17442 +.. date: 7400 +.. nonce: rnc87D +.. section: Library + +InteractiveInterpreter now displays the full chained traceback in its +showtraceback method, to match the built in interactive interpreter. + +.. + +.. bpo: 23392 +.. date: 7399 +.. nonce: Pe7_WK +.. section: Library + +Added tests for marshal C API that works with FILE*. + +.. + +.. bpo: 10510 +.. date: 7398 +.. nonce: N-ntcD +.. section: Library + +distutils register and upload methods now use HTML standards compliant CRLF +line endings. + +.. + +.. bpo: 9850 +.. date: 7397 +.. nonce: D-UnVi +.. section: Library + +Fixed macpath.join() for empty first component. Patch by Oleg Oshmyan. + +.. + +.. bpo: 5309 +.. date: 7396 +.. nonce: pVMmQ8 +.. section: Library + +distutils' build and build_ext commands now accept a ``-j`` option to enable +parallel building of extension modules. + +.. + +.. bpo: 22448 +.. date: 7395 +.. nonce: fAapvE +.. section: Library + +Improve canceled timer handles cleanup to prevent unbound memory usage. +Patch by Joshua Moore-Oliva. + +.. + +.. bpo: 22427 +.. date: 7394 +.. nonce: TZ5S_u +.. section: Library + +TemporaryDirectory no longer attempts to clean up twice when used in the +with statement in generator. + +.. + +.. bpo: 22362 +.. date: 7393 +.. nonce: xIBThN +.. section: Library + +Forbidden ambiguous octal escapes out of range 0-0o377 in regular +expressions. + +.. + +.. bpo: 20912 +.. date: 7392 +.. nonce: cAq3mZ +.. section: Library + +Now directories added to ZIP file have correct Unix and MS-DOS directory +attributes. + +.. + +.. bpo: 21866 +.. date: 7391 +.. nonce: hSc4wM +.. section: Library + +ZipFile.close() no longer writes ZIP64 central directory records if +allowZip64 is false. + +.. + +.. bpo: 22278 +.. date: 7390 +.. nonce: abqBXZ +.. section: Library + +Fix urljoin problem with relative urls, a regression observed after changes +to issue22118 were submitted. + +.. + +.. bpo: 22415 +.. date: 7389 +.. nonce: xJLAvI +.. section: Library + +Fixed debugging output of the GROUPREF_EXISTS opcode in the re module. +Removed trailing spaces in debugging output. + +.. + +.. bpo: 22423 +.. date: 7388 +.. nonce: Rtb4oT +.. section: Library + +Unhandled exception in thread no longer causes unhandled AttributeError when +sys.stderr is None. + +.. + +.. bpo: 21332 +.. date: 7387 +.. nonce: Gwxwlr +.. section: Library + +Ensure that ``bufsize=1`` in subprocess.Popen() selects line buffering, +rather than block buffering. Patch by Akira Li. + +.. + +.. bpo: 21091 +.. date: 7386 +.. nonce: M5hAtT +.. section: Library + +Fix API bug: email.message.EmailMessage.is_attachment is now a method. + +.. + +.. bpo: 21079 +.. date: 7385 +.. nonce: czVcL8 +.. section: Library + +Fix email.message.EmailMessage.is_attachment to return the correct result +when the header has parameters as well as a value. + +.. + +.. bpo: 22247 +.. date: 7384 +.. nonce: sGIpR3 +.. section: Library + +Add NNTPError to nntplib.__all__. + +.. + +.. bpo: 22366 +.. date: 7383 +.. nonce: Dd1eFj +.. section: Library + +urllib.request.urlopen will accept a context object (SSLContext) as an +argument which will then be used for HTTPS connection. Patch by Alex Gaynor. + +.. + +.. bpo: 4180 +.. date: 7382 +.. nonce: QBx0JK +.. section: Library + +The warnings registries are now reset when the filters are modified. + +.. + +.. bpo: 22419 +.. date: 7381 +.. nonce: FqH4aC +.. section: Library + +Limit the length of incoming HTTP request in wsgiref server to 65536 bytes +and send a 414 error code for higher lengths. Patch contributed by Devin +Cook. + +.. + +.. bpo: 0 +.. date: 7380 +.. nonce: y7r3O2 +.. section: Library + +Lax cookie parsing in http.cookies could be a security issue when combined +with non-standard cookie handling in some Web browsers. Reported by Sergey +Bobrov. + +.. + +.. bpo: 20537 +.. date: 7379 +.. nonce: E0CE54 +.. section: Library + +logging methods now accept an exception instance as well as a Boolean value +or exception tuple. Thanks to Yury Selivanov for the patch. + +.. + +.. bpo: 22384 +.. date: 7378 +.. nonce: -Nl4He +.. section: Library + +An exception in Tkinter callback no longer crashes the program when it is +run with pythonw.exe. + +.. + +.. bpo: 22168 +.. date: 7377 +.. nonce: vLeKWC +.. section: Library + +Prevent turtle AttributeError with non-default Canvas on OS X. + +.. + +.. bpo: 21147 +.. date: 7376 +.. nonce: w9DE17 +.. section: Library + +sqlite3 now raises an exception if the request contains a null character +instead of truncating it. Based on patch by Victor Stinner. + +.. + +.. bpo: 13968 +.. date: 7375 +.. nonce: 1okGqm +.. section: Library + +The glob module now supports recursive search in subdirectories using the +``**`` pattern. + +.. + +.. bpo: 21951 +.. date: 7374 +.. nonce: 3vS4LK +.. section: Library + +Fixed a crash in Tkinter on AIX when called Tcl command with empty string or +tuple argument. + +.. + +.. bpo: 21951 +.. date: 7373 +.. nonce: _CCC4v +.. section: Library + +Tkinter now most likely raises MemoryError instead of crash if the memory +allocation fails. + +.. + +.. bpo: 22338 +.. date: 7372 +.. nonce: rKlCMz +.. section: Library + +Fix a crash in the json module on memory allocation failure. + +.. + +.. bpo: 12410 +.. date: 7371 +.. nonce: oFf-cB +.. section: Library + +imaplib.IMAP4 now supports the context management protocol. Original patch +by Tarek Ziadé. + +.. + +.. bpo: 21270 +.. date: 7370 +.. nonce: qMBaY- +.. section: Library + +We now override tuple methods in mock.call objects so that they can be used +as normal call attributes. + +.. + +.. bpo: 16662 +.. date: 7369 +.. nonce: Nghn-Y +.. section: Library + +load_tests() is now unconditionally run when it is present in a package's +__init__.py. TestLoader.loadTestsFromModule() still accepts use_load_tests, +but it is deprecated and ignored. A new keyword-only attribute `pattern` is +added and documented. Patch given by Robert Collins, tweaked by Barry +Warsaw. + +.. + +.. bpo: 22226 +.. date: 7368 +.. nonce: T1ZMPY +.. section: Library + +First letter no longer is stripped from the "status" key in the result of +Treeview.heading(). + +.. + +.. bpo: 19524 +.. date: 7367 +.. nonce: EQJjlF +.. section: Library + +Fixed resource leak in the HTTP connection when an invalid response is +received. Patch by Martin Panter. + +.. + +.. bpo: 20421 +.. date: 7366 +.. nonce: iR0S1s +.. section: Library + +Add a .version() method to SSL sockets exposing the actual protocol version +in use. + +.. + +.. bpo: 19546 +.. date: 7365 +.. nonce: 8VdYBK +.. section: Library + +configparser exceptions no longer expose implementation details. Chained +KeyErrors are removed, which leads to cleaner tracebacks. Patch by Claudiu +Popa. + +.. + +.. bpo: 22051 +.. date: 7364 +.. nonce: cUjFqL +.. section: Library + +turtledemo no longer reloads examples to re-run them. Initialization of +variables and gui setup should be done in main(), which is called each time +a demo is run, but not on import. + +.. + +.. bpo: 21933 +.. date: 7363 +.. nonce: IhMjN1 +.. section: Library + +Turtledemo users can change the code font size with a menu selection or +control(command) '-' or '+' or control-mousewheel. Original patch by Lita +Cho. + +.. + +.. bpo: 21597 +.. date: 7362 +.. nonce: aPTCWJ +.. section: Library + +The separator between the turtledemo text pane and the drawing canvas can +now be grabbed and dragged with a mouse. The code text pane can be widened +to easily view or copy the full width of the text. The canvas can be +widened on small screens. Original patches by Jan Kanis and Lita Cho. + +.. + +.. bpo: 18132 +.. date: 7361 +.. nonce: 2R2nwM +.. section: Library + +Turtledemo buttons no longer disappear when the window is shrunk. Original +patches by Jan Kanis and Lita Cho. + +.. + +.. bpo: 22043 +.. date: 7360 +.. nonce: Q6RvGL +.. section: Library + +time.monotonic() is now always available. ``threading.Lock.acquire()``, +``threading.RLock.acquire()`` and socket operations now use a monotonic +clock, instead of the system clock, when a timeout is used. + +.. + +.. bpo: 21527 +.. date: 7359 +.. nonce: N5WPxr +.. section: Library + +Add a default number of workers to ThreadPoolExecutor equal to 5 times the +number of CPUs. Patch by Claudiu Popa. + +.. + +.. bpo: 22216 +.. date: 7358 +.. nonce: Cmalu6 +.. section: Library + +smtplib now resets its state more completely after a quit. The most obvious +consequence of the previous behavior was a STARTTLS failure during a +connect/starttls/quit/connect/starttls sequence. + +.. + +.. bpo: 22098 +.. date: 7357 +.. nonce: 5JYiQN +.. section: Library + +ctypes' BigEndianStructure and LittleEndianStructure now define an empty +__slots__ so that subclasses don't always get an instance dict. Patch by +Claudiu Popa. + +.. + +.. bpo: 22185 +.. date: 7356 +.. nonce: 1SCCIK +.. section: Library + +Fix an occasional RuntimeError in threading.Condition.wait() caused by +mutation of the waiters queue without holding the lock. Patch by Doug +Zongker. + +.. + +.. bpo: 22287 +.. date: 7355 +.. nonce: awH2AI +.. section: Library + +On UNIX, _PyTime_gettimeofday() now uses clock_gettime(CLOCK_REALTIME) if +available. As a side effect, Python now depends on the librt library on +Solaris and on Linux (only with glibc older than 2.17). + +.. + +.. bpo: 22182 +.. date: 7354 +.. nonce: 5EG1Bc +.. section: Library + +Use e.args to unpack exceptions correctly in distutils.file_util.move_file. +Patch by Claudiu Popa. + +.. + +.. bpo: 0 +.. date: 7353 +.. nonce: zBfe8J +.. section: Library + +The webbrowser module now uses subprocess's start_new_session=True rather +than a potentially risky preexec_fn=os.setsid call. + +.. + +.. bpo: 22042 +.. date: 7352 +.. nonce: WZvb8s +.. section: Library + +signal.set_wakeup_fd(fd) now raises an exception if the file descriptor is +in blocking mode. + +.. + +.. bpo: 16808 +.. date: 7351 +.. nonce: kPy_5U +.. section: Library + +inspect.stack() now returns a named tuple instead of a tuple. Patch by +Daniel Shahaf. + +.. + +.. bpo: 22236 +.. date: 7350 +.. nonce: 1utXkg +.. section: Library + +Fixed Tkinter images copying operations in NoDefaultRoot mode. + +.. + +.. bpo: 2527 +.. date: 7349 +.. nonce: fR2GS6 +.. section: Library + +Add a *globals* argument to timeit functions, in order to override the +globals namespace in which the timed code is executed. Patch by Ben Roberts. + +.. + +.. bpo: 22118 +.. date: 7348 +.. nonce: 3gdkOF +.. section: Library + +Switch urllib.parse to use RFC 3986 semantics for the resolution of relative +URLs, rather than RFCs 1808 and 2396. Patch by Demian Brecht. + +.. + +.. bpo: 21549 +.. date: 7347 +.. nonce: i1LVvg +.. section: Library + +Added the "members" parameter to TarFile.list(). + +.. + +.. bpo: 19628 +.. date: 7346 +.. nonce: ssQVP8 +.. section: Library + +Allow compileall recursion depth to be specified with a -r option. + +.. + +.. bpo: 15696 +.. date: 7345 +.. nonce: PTwXYJ +.. section: Library + +Add a __sizeof__ implementation for mmap objects on Windows. + +.. + +.. bpo: 22068 +.. date: 7344 +.. nonce: wCdaW0 +.. section: Library + +Avoided reference loops with Variables and Fonts in Tkinter. + +.. + +.. bpo: 22165 +.. date: 7343 +.. nonce: J1np4o +.. section: Library + +SimpleHTTPRequestHandler now supports undecodable file names. + +.. + +.. bpo: 15381 +.. date: 7342 +.. nonce: Ia8pf6 +.. section: Library + +Optimized line reading in io.BytesIO. + +.. + +.. bpo: 8797 +.. date: 7341 +.. nonce: aJcIPu +.. section: Library + +Raise HTTPError on failed Basic Authentication immediately. Initial patch by +Sam Bull. + +.. + +.. bpo: 20729 +.. date: 7340 +.. nonce: I-1Lap +.. section: Library + +Restored the use of lazy iterkeys()/itervalues()/iteritems() in the mailbox +module. + +.. + +.. bpo: 21448 +.. date: 7339 +.. nonce: THJSYB +.. section: Library + +Changed FeedParser feed() to avoid O(N**2) behavior when parsing long line. +Original patch by Raymond Hettinger. + +.. + +.. bpo: 22184 +.. date: 7338 +.. nonce: UCbSOt +.. section: Library + +The functools LRU Cache decorator factory now gives an earlier and clearer +error message when the user forgets the required parameters. + +.. + +.. bpo: 17923 +.. date: 7337 +.. nonce: YI_QjG +.. section: Library + +glob() patterns ending with a slash no longer match non-dirs on AIX. Based +on patch by Delhallt. + +.. + +.. bpo: 21725 +.. date: 7336 +.. nonce: eIu-2N +.. section: Library + +Added support for RFC 6531 (SMTPUTF8) in smtpd. + +.. + +.. bpo: 22176 +.. date: 7335 +.. nonce: rgbRyg +.. section: Library + +Update the ctypes module's libffi to v3.1. This release adds support for +the Linux AArch64 and POWERPC ELF ABIv2 little endian architectures. + +.. + +.. bpo: 5411 +.. date: 7334 +.. nonce: 5Utapn +.. section: Library + +Added support for the "xztar" format in the shutil module. + +.. + +.. bpo: 21121 +.. date: 7333 +.. nonce: ZLsRil +.. section: Library + +Don't force 3rd party C extensions to be built with -Werror=declaration- +after-statement. + +.. + +.. bpo: 21975 +.. date: 7332 +.. nonce: MI8ntO +.. section: Library + +Fixed crash when using uninitialized sqlite3.Row (in particular when +unpickling pickled sqlite3.Row). sqlite3.Row is now initialized in the +__new__() method. + +.. + +.. bpo: 20170 +.. date: 7331 +.. nonce: 8QfhN7 +.. section: Library + +Convert posixmodule to use Argument Clinic. + +.. + +.. bpo: 21539 +.. date: 7330 +.. nonce: YccmZF +.. section: Library + +Add an *exists_ok* argument to `Pathlib.mkdir()` to mimic `mkdir -p` and +`os.makedirs()` functionality. When true, ignore FileExistsErrors. Patch +by Berker Peksag. + +.. + +.. bpo: 22127 +.. date: 7329 +.. nonce: 0l2OO5 +.. section: Library + +Bypass IDNA for pure-ASCII host names in the socket module (in particular +for numeric IPs). + +.. + +.. bpo: 21047 +.. date: 7328 +.. nonce: XfUQG3 +.. section: Library + +set the default value for the *convert_charrefs* argument of HTMLParser to +True. Patch by Berker Peksag. + +.. + +.. bpo: 0 +.. date: 7327 +.. nonce: 56bAnQ +.. section: Library + +Add an __all__ to html.entities. + +.. + +.. bpo: 15114 +.. date: 7326 +.. nonce: jXwseC +.. section: Library + +the strict mode and argument of HTMLParser, HTMLParser.error, and the +HTMLParserError exception have been removed. + +.. + +.. bpo: 22085 +.. date: 7325 +.. nonce: 3JM_Aw +.. section: Library + +Dropped support of Tk 8.3 in Tkinter. + +.. + +.. bpo: 21580 +.. date: 7324 +.. nonce: 3ssycS +.. section: Library + +Now Tkinter correctly handles bytes arguments passed to Tk. In particular +this allows initializing images from binary data. + +.. + +.. bpo: 22003 +.. date: 7323 +.. nonce: 4ZIDS1 +.. section: Library + +When initialized from a bytes object, io.BytesIO() now defers making a copy +until it is mutated, improving performance and memory use on some use cases. +Patch by David Wilson. + +.. + +.. bpo: 22018 +.. date: 7322 +.. nonce: 6ApxSH +.. section: Library + +On Windows, signal.set_wakeup_fd() now also supports sockets. A side effect +is that Python depends to the WinSock library. + +.. + +.. bpo: 22054 +.. date: 7321 +.. nonce: zp6Svw +.. section: Library + +Add os.get_blocking() and os.set_blocking() functions to get and set the +blocking mode of a file descriptor (False if the O_NONBLOCK flag is set, +True otherwise). These functions are not available on Windows. + +.. + +.. bpo: 17172 +.. date: 7320 +.. nonce: R_LI_2 +.. section: Library + +Make turtledemo start as active on OS X even when run with subprocess. +Patch by Lita Cho. + +.. + +.. bpo: 21704 +.. date: 7319 +.. nonce: gL3ikj +.. section: Library + +Fix build error for _multiprocessing when semaphores are not available. +Patch by Arfrever Frehtes Taifersar Arahesis. + +.. + +.. bpo: 20173 +.. date: 7318 +.. nonce: FAL-4L +.. section: Library + +Convert sha1, sha256, sha512 and md5 to ArgumentClinic. Patch by Vajrasky +Kok. + +.. + +.. bpo: 0 +.. date: 7317 +.. nonce: G25tq3 +.. section: Library + +Fix repr(_socket.socket) on Windows 64-bit: don't fail with OverflowError on +closed socket. repr(socket.socket) already works fine. + +.. + +.. bpo: 22033 +.. date: 7316 +.. nonce: nkBNci +.. section: Library + +Reprs of most Python implemened classes now contain actual class name +instead of hardcoded one. + +.. + +.. bpo: 21947 +.. date: 7315 +.. nonce: mlisu- +.. section: Library + +The dis module can now disassemble generator-iterator objects based on their +gi_code attribute. Patch by Clement Rouault. + +.. + +.. bpo: 16133 +.. date: 7314 +.. nonce: tYuYQF +.. section: Library + +The asynchat.async_chat.handle_read() method now ignores BlockingIOError +exceptions. + +.. + +.. bpo: 22044 +.. date: 7313 +.. nonce: t09GRU +.. section: Library + +Fixed premature DECREF in call_tzinfo_method. Patch by Tom Flanagan. + +.. + +.. bpo: 19884 +.. date: 7312 +.. nonce: v73gSn +.. section: Library + +readline: Disable the meta modifier key if stdout is not a terminal to not +write the ANSI sequence ``"\033[1034h"`` into stdout. This sequence is used +on some terminal (ex: TERM=xterm-256color") to enable support of 8 bit +characters. + +.. + +.. bpo: 4350 +.. date: 7311 +.. nonce: nrTzJn +.. section: Library + +Removed a number of out-of-dated and non-working for a long time Tkinter +methods. + +.. + +.. bpo: 6167 +.. date: 7310 +.. nonce: n9dV_D +.. section: Library + +Scrollbar.activate() now returns the name of active element if the argument +is not specified. Scrollbar.set() now always accepts only 2 arguments. + +.. + +.. bpo: 15275 +.. date: 7309 +.. nonce: jk0tTI +.. section: Library + +Clean up and speed up the ntpath module. + +.. + +.. bpo: 21888 +.. date: 7308 +.. nonce: danlpz +.. section: Library + +plistlib's load() and loads() now work if the fmt parameter is specified. + +.. + +.. bpo: 22032 +.. date: 7307 +.. nonce: UklzQW +.. section: Library + +__qualname__ instead of __name__ is now always used to format fully +qualified class names of Python implemented classes. + +.. + +.. bpo: 22031 +.. date: 7306 +.. nonce: 9aazp1 +.. section: Library + +Reprs now always use hexadecimal format with the "0x" prefix when contain an +id in form " at 0x...". + +.. + +.. bpo: 22018 +.. date: 7305 +.. nonce: b_JTHH +.. section: Library + +signal.set_wakeup_fd() now raises an OSError instead of a ValueError on +``fstat()`` failure. + +.. + +.. bpo: 21044 +.. date: 7304 +.. nonce: 16xo9u +.. section: Library + +tarfile.open() now handles fileobj with an integer 'name' attribute. Based +on patch by Antoine Pietri. + +.. + +.. bpo: 21966 +.. date: 7303 +.. nonce: hHD9MK +.. section: Library + +Respect -q command-line option when code module is ran. + +.. + +.. bpo: 19076 +.. date: 7302 +.. nonce: xCoIai +.. section: Library + +Don't pass the redundant 'file' argument to self.error(). + +.. + +.. bpo: 16382 +.. date: 7301 +.. nonce: -XBK7z +.. section: Library + +Improve exception message of warnings.warn() for bad category. Initial patch +by Phil Elson. + +.. + +.. bpo: 21932 +.. date: 7300 +.. nonce: LK_5S1 +.. section: Library + +os.read() now uses a :c:func:`Py_ssize_t` type instead of :c:type:`int` for +the size to support reading more than 2 GB at once. On Windows, the size is +truncted to INT_MAX. As any call to os.read(), the OS may read less bytes +than the number of requested bytes. + +.. + +.. bpo: 21942 +.. date: 7299 +.. nonce: TLOS41 +.. section: Library + +Fixed source file viewing in pydoc's server mode on Windows. + +.. + +.. bpo: 11259 +.. date: 7298 +.. nonce: GxfYnE +.. section: Library + +asynchat.async_chat().set_terminator() now raises a ValueError if the number +of received bytes is negative. + +.. + +.. bpo: 12523 +.. date: 7297 +.. nonce: XBdAky +.. section: Library + +asynchat.async_chat.push() now raises a TypeError if it doesn't get a bytes +string + +.. + +.. bpo: 21707 +.. date: 7296 +.. nonce: rrY_wd +.. section: Library + +Add missing kwonlyargcount argument to ModuleFinder.replace_paths_in_code(). + +.. + +.. bpo: 20639 +.. date: 7295 +.. nonce: YdvOpp +.. section: Library + +calling Path.with_suffix('') allows removing the suffix again. Patch by +July Tikhonov. + +.. + +.. bpo: 21714 +.. date: 7294 +.. nonce: HhkGXW +.. section: Library + +Disallow the construction of invalid paths using Path.with_name(). Original +patch by Antony Lee. + +.. + +.. bpo: 15014 +.. date: 7293 +.. nonce: dB50zb +.. section: Library + +Added 'auth' method to smtplib to make implementing auth mechanisms simpler, +and used it internally in the login method. + +.. + +.. bpo: 21151 +.. date: 7292 +.. nonce: o7IuiD +.. section: Library + +Fixed a segfault in the winreg module when ``None`` is passed as a +``REG_BINARY`` value to SetValueEx. Patch by John Ehresman. + +.. + +.. bpo: 21090 +.. date: 7291 +.. nonce: 20Ooif +.. section: Library + +io.FileIO.readall() does not ignore I/O errors anymore. Before, it ignored +I/O errors if at least the first C call read() succeed. + +.. + +.. bpo: 5800 +.. date: 7290 +.. nonce: ZJiLZP +.. section: Library + +headers parameter of wsgiref.headers.Headers is now optional. Initial patch +by Pablo Torres Navarrete and SilentGhost. + +.. + +.. bpo: 21781 +.. date: 7289 +.. nonce: u_oiv9 +.. section: Library + +ssl.RAND_add() now supports strings longer than 2 GB. + +.. + +.. bpo: 21679 +.. date: 7288 +.. nonce: CTVT9A +.. section: Library + +Prevent extraneous fstat() calls during open(). Patch by Bohuslav Kabrda. + +.. + +.. bpo: 21863 +.. date: 7287 +.. nonce: BzbwSL +.. section: Library + +cProfile now displays the module name of C extension functions, in addition +to their own name. + +.. + +.. bpo: 11453 +.. date: 7286 +.. nonce: 53Gr_R +.. section: Library + +asyncore: emit a ResourceWarning when an unclosed file_wrapper object is +destroyed. The destructor now closes the file if needed. The close() method +can now be called twice: the second call does nothing. + +.. + +.. bpo: 21858 +.. date: 7285 +.. nonce: 0hbFBG +.. section: Library + +Better handling of Python exceptions in the sqlite3 module. + +.. + +.. bpo: 21476 +.. date: 7284 +.. nonce: VN-5pW +.. section: Library + +Make sure the email.parser.BytesParser TextIOWrapper is discarded after +parsing, so the input file isn't unexpectedly closed. + +.. + +.. bpo: 20295 +.. date: 7283 +.. nonce: U1MPhw +.. section: Library + +imghdr now recognizes OpenEXR format images. + +.. + +.. bpo: 21729 +.. date: 7282 +.. nonce: dk7o_U +.. section: Library + +Used the "with" statement in the dbm.dumb module to ensure files closing. +Patch by Claudiu Popa. + +.. + +.. bpo: 21491 +.. date: 7281 +.. nonce: Zxmut- +.. section: Library + +socketserver: Fix a race condition in child processes reaping. + +.. + +.. bpo: 21719 +.. date: 7280 +.. nonce: DhQz3I +.. section: Library + +Added the ``st_file_attributes`` field to os.stat_result on Windows. + +.. + +.. bpo: 21832 +.. date: 7279 +.. nonce: PBA0Uu +.. section: Library + +Require named tuple inputs to be exact strings. + +.. + +.. bpo: 21722 +.. date: 7278 +.. nonce: WTHuRy +.. section: Library + +The distutils "upload" command now exits with a non-zero return code when +uploading fails. Patch by Martin Dengler. + +.. + +.. bpo: 21723 +.. date: 7277 +.. nonce: r86fwb +.. section: Library + +asyncio.Queue: support any type of number (ex: float) for the maximum size. +Patch written by Vajrasky Kok. + +.. + +.. bpo: 21711 +.. date: 7276 +.. nonce: JWPFQZ +.. section: Library + +support for "site-python" directories has now been removed from the site +module (it was deprecated in 3.4). + +.. + +.. bpo: 17552 +.. date: 7275 +.. nonce: NunErD +.. section: Library + +new socket.sendfile() method allowing a file to be sent over a socket by +using high-performance os.sendfile() on UNIX. Patch by Giampaolo Rodola'. + +.. + +.. bpo: 18039 +.. date: 7274 +.. nonce: vC9hNy +.. section: Library + +dbm.dump.open() now always creates a new database when the flag has the +value 'n'. Patch by Claudiu Popa. + +.. + +.. bpo: 21326 +.. date: 7273 +.. nonce: Y6iW3s +.. section: Library + +Add a new is_closed() method to asyncio.BaseEventLoop. run_forever() and +run_until_complete() methods of asyncio.BaseEventLoop now raise an exception +if the event loop was closed. + +.. + +.. bpo: 21766 +.. date: 7272 +.. nonce: 0xk_xC +.. section: Library + +Prevent a security hole in CGIHTTPServer by URL unquoting paths before +checking for a CGI script at that path. + +.. + +.. bpo: 21310 +.. date: 7271 +.. nonce: 2mjByJ +.. section: Library + +Fixed possible resource leak in failed open(). + +.. + +.. bpo: 21256 +.. date: 7270 +.. nonce: dGq6cw +.. section: Library + +Printout of keyword args should be in deterministic order in a mock function +call. This will help to write better doctests. + +.. + +.. bpo: 21677 +.. date: 7269 +.. nonce: 58CDDD +.. section: Library + +Fixed chaining nonnormalized exceptions in io close() methods. + +.. + +.. bpo: 11709 +.. date: 7268 +.. nonce: JdObvL +.. section: Library + +Fix the pydoc.help function to not fail when sys.stdin is not a valid file. + +.. + +.. bpo: 21515 +.. date: 7267 +.. nonce: D9TLJF +.. section: Library + +tempfile.TemporaryFile now uses os.O_TMPFILE flag is available. + +.. + +.. bpo: 13223 +.. date: 7266 +.. nonce: 9AzEbN +.. section: Library + +Fix pydoc.writedoc so that the HTML documentation for methods that use +'self' in the example code is generated correctly. + +.. + +.. bpo: 21463 +.. date: 7265 +.. nonce: 09PsgH +.. section: Library + +In urllib.request, fix pruning of the FTP cache. + +.. + +.. bpo: 21618 +.. date: 7264 +.. nonce: 3Z7WS3 +.. section: Library + +The subprocess module could fail to close open fds that were inherited by +the calling process and already higher than POSIX resource limits would +otherwise allow. On systems with a functioning /proc/self/fd or /dev/fd +interface the max is now ignored and all fds are closed. + +.. + +.. bpo: 20383 +.. date: 7263 +.. nonce: pSPFpW +.. section: Library + +Introduce importlib.util.module_from_spec() as the preferred way to create a +new module. + +.. + +.. bpo: 21552 +.. date: 7262 +.. nonce: uVy4tM +.. section: Library + +Fixed possible integer overflow of too long string lengths in the tkinter +module on 64-bit platforms. + +.. + +.. bpo: 14315 +.. date: 7261 +.. nonce: YzZzS8 +.. section: Library + +The zipfile module now ignores extra fields in the central directory that +are too short to be parsed instead of letting a struct.unpack error bubble +up as this "bad data" appears in many real world zip files in the wild and +is ignored by other zip tools. + +.. + +.. bpo: 13742 +.. date: 7260 +.. nonce: QJiVSC +.. section: Library + +Added "key" and "reverse" parameters to heapq.merge(). (First draft of patch +contributed by Simon Sapin.) + +.. + +.. bpo: 21402 +.. date: 7259 +.. nonce: 51vDXt +.. section: Library + +tkinter.ttk now works when default root window is not set. + +.. + +.. bpo: 3015 +.. date: 7258 +.. nonce: FE_PII +.. section: Library + +_tkinter.create() now creates tkapp object with wantobject=1 by default. + +.. + +.. bpo: 10203 +.. date: 7257 +.. nonce: zgr0hh +.. section: Library + +sqlite3.Row now truly supports sequence protocol. In particular it supports +reverse() and negative indices. Original patch by Claudiu Popa. + +.. + +.. bpo: 18807 +.. date: 7256 +.. nonce: XP7p8B +.. section: Library + +If copying (no symlinks) specified for a venv, then the python interpreter +aliases (python, python3) are now created by copying rather than symlinking. + +.. + +.. bpo: 20197 +.. date: 7255 +.. nonce: nYR9fq +.. section: Library + +Added support for the WebP image type in the imghdr module. Patch by Fabrice +Aneche and Claudiu Popa. + +.. + +.. bpo: 21513 +.. date: 7254 +.. nonce: ro4AOe +.. section: Library + +Speedup some properties of IP addresses (IPv4Address, IPv6Address) such as +.is_private or .is_multicast. + +.. + +.. bpo: 21137 +.. date: 7253 +.. nonce: wgHb_F +.. section: Library + +Improve the repr for threading.Lock() and its variants by showing the +"locked" or "unlocked" status. Patch by Berker Peksag. + +.. + +.. bpo: 21538 +.. date: 7252 +.. nonce: Q60FWA +.. section: Library + +The plistlib module now supports loading of binary plist files when +reference or offset size is not a power of two. + +.. + +.. bpo: 21455 +.. date: 7251 +.. nonce: 6-Uvv4 +.. section: Library + +Add a default backlog to socket.listen(). + +.. + +.. bpo: 21525 +.. date: 7250 +.. nonce: hAKOve +.. section: Library + +Most Tkinter methods which accepted tuples now accept lists too. + +.. + +.. bpo: 22166 +.. date: 7249 +.. nonce: sZYhmv +.. section: Library + +With the assistance of a new internal _codecs._forget_codec helping +function, test_codecs now clears the encoding caches to avoid the appearance +of a reference leak + +.. + +.. bpo: 22236 +.. date: 7248 +.. nonce: ginJSI +.. section: Library + +Tkinter tests now don't reuse default root window. New root window is +created for every test class. + +.. + +.. bpo: 10744 +.. date: 7247 +.. nonce: kfV0wm +.. section: Library + +Fix PEP 3118 format strings on ctypes objects with a nontrivial shape. + +.. + +.. bpo: 20826 +.. date: 7246 +.. nonce: 3rXqMC +.. section: Library + +Optimize ipaddress.collapse_addresses(). + +.. + +.. bpo: 21487 +.. date: 7245 +.. nonce: sX8YmK +.. section: Library + +Optimize ipaddress.summarize_address_range() and +ipaddress.{IPv4Network,IPv6Network}.subnets(). + +.. + +.. bpo: 21486 +.. date: 7244 +.. nonce: CeFKRP +.. section: Library + +Optimize parsing of netmasks in ipaddress.IPv4Network and +ipaddress.IPv6Network. + +.. + +.. bpo: 13916 +.. date: 7243 +.. nonce: D77YVH +.. section: Library + +Disallowed the surrogatepass error handler for non UTF-\* encodings. + +.. + +.. bpo: 20998 +.. date: 7242 +.. nonce: fkxpXI +.. section: Library + +Fixed re.fullmatch() of repeated single character pattern with ignore case. +Original patch by Matthew Barnett. + +.. + +.. bpo: 21075 +.. date: 7241 +.. nonce: f_hmEh +.. section: Library + +fileinput.FileInput now reads bytes from standard stream if binary mode is +specified. Patch by Sam Kimbrel. + +.. + +.. bpo: 19775 +.. date: 7240 +.. nonce: yxxD_R +.. section: Library + +Add a samefile() method to pathlib Path objects. Initial patch by Vajrasky +Kok. + +.. + +.. bpo: 21226 +.. date: 7239 +.. nonce: pzGmG1 +.. section: Library + +Set up modules properly in PyImport_ExecCodeModuleObject (and friends). + +.. + +.. bpo: 21398 +.. date: 7238 +.. nonce: guSBXt +.. section: Library + +Fix a unicode error in the pydoc pager when the documentation contains +characters not encodable to the stdout encoding. + +.. + +.. bpo: 16531 +.. date: 7237 +.. nonce: AhrY_v +.. section: Library + +ipaddress.IPv4Network and ipaddress.IPv6Network now accept an (address, +netmask) tuple argument, so as to easily construct network objects from +existing addresses. + +.. + +.. bpo: 21156 +.. date: 7236 +.. nonce: 3dmBEp +.. section: Library + +importlib.abc.InspectLoader.source_to_code() is now a staticmethod. + +.. + +.. bpo: 21424 +.. date: 7235 +.. nonce: 8CJBqW +.. section: Library + +Simplified and optimized heaqp.nlargest() and nmsmallest() to make fewer +tuple comparisons. + +.. + +.. bpo: 21396 +.. date: 7234 +.. nonce: cqO6DN +.. section: Library + +Fix TextIOWrapper(..., write_through=True) to not force a flush() on the +underlying binary stream. Patch by akira. + +.. + +.. bpo: 18314 +.. date: 7233 +.. nonce: NCd_KF +.. section: Library + +Unlink now removes junctions on Windows. Patch by Kim Gräsman + +.. + +.. bpo: 21088 +.. date: 7232 +.. nonce: WOg7Xy +.. section: Library + +Bugfix for curses.window.addch() regression in 3.4.0. In porting to Argument +Clinic, the first two arguments were reversed. + +.. + +.. bpo: 21407 +.. date: 7231 +.. nonce: cZjFde +.. section: Library + +_decimal: The module now supports function signatures. + +.. + +.. bpo: 10650 +.. date: 7230 +.. nonce: HYT4Oe +.. section: Library + +Remove the non-standard 'watchexp' parameter from the Decimal.quantize() +method in the Python version. It had never been present in the C version. + +.. + +.. bpo: 21469 +.. date: 7229 +.. nonce: _fFGuq +.. section: Library + +Reduced the risk of false positives in robotparser by checking to make sure +that robots.txt has been read or does not exist prior to returning True in +can_fetch(). + +.. + +.. bpo: 19414 +.. date: 7228 +.. nonce: bAAw4D +.. section: Library + +Have the OrderedDict mark deleted links as unusable. This gives an early +failure if the link is deleted during iteration. + +.. + +.. bpo: 21421 +.. date: 7227 +.. nonce: 5AKAat +.. section: Library + +Add __slots__ to the MappingViews ABC. Patch by Josh Rosenberg. + +.. + +.. bpo: 21101 +.. date: 7226 +.. nonce: Lj-_P4 +.. section: Library + +Eliminate double hashing in the C speed-up code for collections.Counter(). + +.. + +.. bpo: 21321 +.. date: 7225 +.. nonce: wUkTON +.. section: Library + +itertools.islice() now releases the reference to the source iterator when +the slice is exhausted. Patch by Anton Afanasyev. + +.. + +.. bpo: 21057 +.. date: 7224 +.. nonce: 0TC4Xl +.. section: Library + +TextIOWrapper now allows the underlying binary stream's read() or read1() +method to return an arbitrary bytes-like object (such as a memoryview). +Patch by Nikolaus Rath. + +.. + +.. bpo: 20951 +.. date: 7223 +.. nonce: tF0dJi +.. section: Library + +SSLSocket.send() now raises either SSLWantReadError or SSLWantWriteError on +a non-blocking socket if the operation would block. Previously, it would +return 0. Patch by Nikolaus Rath. + +.. + +.. bpo: 13248 +.. date: 7222 +.. nonce: 7vtGj0 +.. section: Library + +removed previously deprecated asyncore.dispatcher __getattr__ cheap +inheritance hack. + +.. + +.. bpo: 9815 +.. date: 7221 +.. nonce: 52FPlI +.. section: Library + +assertRaises now tries to clear references to local variables in the +exception's traceback. + +.. + +.. bpo: 19940 +.. date: 7220 +.. nonce: 2qtBQ8 +.. section: Library + +ssl.cert_time_to_seconds() now interprets the given time string in the UTC +timezone (as specified in RFC 5280), not the local timezone. + +.. + +.. bpo: 13204 +.. date: 7219 +.. nonce: ZPKA5g +.. section: Library + +Calling sys.flags.__new__ would crash the interpreter, now it raises a +TypeError. + +.. + +.. bpo: 19385 +.. date: 7218 +.. nonce: PexO_g +.. section: Library + +Make operations on a closed dbm.dumb database always raise the same +exception. + +.. + +.. bpo: 21207 +.. date: 7217 +.. nonce: Hr72AB +.. section: Library + +Detect when the os.urandom cached fd has been closed or replaced, and open +it anew. + +.. + +.. bpo: 21291 +.. date: 7216 +.. nonce: 5sSLWN +.. section: Library + +subprocess's Popen.wait() is now thread safe so that multiple threads may be +calling wait() or poll() on a Popen instance at the same time without losing +the Popen.returncode value. + +.. + +.. bpo: 21127 +.. date: 7215 +.. nonce: A1aBjG +.. section: Library + +Path objects can now be instantiated from str subclass instances (such as +``numpy.str_``). + +.. + +.. bpo: 15002 +.. date: 7214 +.. nonce: qorYDe +.. section: Library + +urllib.response object to use _TemporaryFileWrapper (and +_TemporaryFileCloser) facility. Provides a better way to handle file +descriptor close. Patch contributed by Christian Theune. + +.. + +.. bpo: 12220 +.. date: 7213 +.. nonce: U25uE9 +.. section: Library + +mindom now raises a custom ValueError indicating it doesn't support spaces +in URIs instead of letting a 'split' ValueError bubble up. + +.. + +.. bpo: 21068 +.. date: 7212 +.. nonce: 9k6N9m +.. section: Library + +The ssl.PROTOCOL* constants are now enum members. + +.. + +.. bpo: 21276 +.. date: 7211 +.. nonce: JkfhvQ +.. section: Library + +posixmodule: Don't define USE_XATTRS on KFreeBSD and the Hurd. + +.. + +.. bpo: 21262 +.. date: 7210 +.. nonce: 1J5ylk +.. section: Library + +New method assert_not_called for Mock. It raises AssertionError if the mock +has been called. + +.. + +.. bpo: 21238 +.. date: 7209 +.. nonce: 5CDoox +.. section: Library + +New keyword argument `unsafe` to Mock. It raises `AttributeError` incase of +an attribute startswith assert or assret. + +.. + +.. bpo: 20896 +.. date: 7208 +.. nonce: oWwAb1 +.. section: Library + +ssl.get_server_certificate() now uses PROTOCOL_SSLv23, not PROTOCOL_SSLv3, +for maximum compatibility. + +.. + +.. bpo: 21239 +.. date: 7207 +.. nonce: EalCNt +.. section: Library + +patch.stopall() didn't work deterministically when the same name was patched +more than once. + +.. + +.. bpo: 21203 +.. date: 7206 +.. nonce: 1IMs-Z +.. section: Library + +Updated fileConfig and dictConfig to remove inconsistencies. Thanks to Jure +Koren for the patch. + +.. + +.. bpo: 21222 +.. date: 7205 +.. nonce: G6MQBP +.. section: Library + +Passing name keyword argument to mock.create_autospec now works. + +.. + +.. bpo: 21197 +.. date: 7204 +.. nonce: Gzfqdl +.. section: Library + +Add lib64 -> lib symlink in venvs on 64-bit non-OS X POSIX. + +.. + +.. bpo: 17498 +.. date: 7203 +.. nonce: LR9xyb +.. section: Library + +Some SMTP servers disconnect after certain errors, violating strict RFC +conformance. Instead of losing the error code when we issue the subsequent +RSET, smtplib now returns the error code and defers raising the +SMTPServerDisconnected error until the next command is issued. + +.. + +.. bpo: 17826 +.. date: 7202 +.. nonce: z0zMRV +.. section: Library + +setting an iterable side_effect on a mock function created by +create_autospec now works. Patch by Kushal Das. + +.. + +.. bpo: 7776 +.. date: 7201 +.. nonce: K5S2Pe +.. section: Library + +Fix ``Host:`` header and reconnection when using +http.client.HTTPConnection.set_tunnel(). Patch by Nikolaus Rath. + +.. + +.. bpo: 20968 +.. date: 7200 +.. nonce: 53Aagz +.. section: Library + +unittest.mock.MagicMock now supports division. Patch by Johannes Baiter. + +.. + +.. bpo: 21529 +.. date: 7199 +.. nonce: 57R_Fc +.. section: Library + +Fix arbitrary memory access in JSONDecoder.raw_decode with a negative second +parameter. Bug reported by Guido Vranken. (See also: CVE-2014-4616) + +.. + +.. bpo: 21169 +.. date: 7198 +.. nonce: KE7B0M +.. section: Library + +getpass now handles non-ascii characters that the input stream encoding +cannot encode by re-encoding using the replace error handler. + +.. + +.. bpo: 21171 +.. date: 7197 +.. nonce: iUbV9S +.. section: Library + +Fixed undocumented filter API of the rot13 codec. Patch by Berker Peksag. + +.. + +.. bpo: 20539 +.. date: 7196 +.. nonce: 62nbEb +.. section: Library + +Improved math.factorial error message for large positive inputs and changed +exception type (OverflowError -> ValueError) for large negative inputs. + +.. + +.. bpo: 21172 +.. date: 7195 +.. nonce: dQ7yY7 +.. section: Library + +isinstance check relaxed from dict to collections.Mapping. + +.. + +.. bpo: 21155 +.. date: 7194 +.. nonce: JSKEE7 +.. section: Library + +asyncio.EventLoop.create_unix_server() now raises a ValueError if path and +sock are specified at the same time. + +.. + +.. bpo: 21136 +.. date: 7193 +.. nonce: JZAKv3 +.. section: Library + +Avoid unnecessary normalization of Fractions resulting from power and other +operations. Patch by Raymond Hettinger. + +.. + +.. bpo: 17621 +.. date: 7192 +.. nonce: 1x0mvJ +.. section: Library + +Introduce importlib.util.LazyLoader. + +.. + +.. bpo: 21076 +.. date: 7191 +.. nonce: upxQc6 +.. section: Library + +signal module constants were turned into enums. Patch by Giampaolo Rodola'. + +.. + +.. bpo: 20636 +.. date: 7190 +.. nonce: KGh-BD +.. section: Library + +Improved the repr of Tkinter widgets. + +.. + +.. bpo: 19505 +.. date: 7189 +.. nonce: VEtIE6 +.. section: Library + +The items, keys, and values views of OrderedDict now support reverse +iteration using reversed(). + +.. + +.. bpo: 21149 +.. date: 7188 +.. nonce: cnjwMR +.. section: Library + +Improved thread-safety in logging cleanup during interpreter shutdown. +Thanks to Devin Jeanpierre for the patch. + +.. + +.. bpo: 21058 +.. date: 7187 +.. nonce: IhluPP +.. section: Library + +Fix a leak of file descriptor in :func:`tempfile.NamedTemporaryFile`, close +the file descriptor if :func:`io.open` fails + +.. + +.. bpo: 21200 +.. date: 7186 +.. nonce: Kht8yD +.. section: Library + +Return None from pkgutil.get_loader() when __spec__ is missing. + +.. + +.. bpo: 21013 +.. date: 7185 +.. nonce: 3s8Ic0 +.. section: Library + +Enhance ssl.create_default_context() when used for server side sockets to +provide better security by default. + +.. + +.. bpo: 20145 +.. date: 7184 +.. nonce: FP5FY0 +.. section: Library + +`assertRaisesRegex` and `assertWarnsRegex` now raise a TypeError if the +second argument is not a string or compiled regex. + +.. + +.. bpo: 20633 +.. date: 7183 +.. nonce: 6kaPjT +.. section: Library + +Replace relative import by absolute import. + +.. + +.. bpo: 20980 +.. date: 7182 +.. nonce: cYszHY +.. section: Library + +Stop wrapping exception when using ThreadPool. + +.. + +.. bpo: 21082 +.. date: 7181 +.. nonce: GLzGlV +.. section: Library + +In os.makedirs, do not set the process-wide umask. Note this changes +behavior of makedirs when exist_ok=True. + +.. + +.. bpo: 20990 +.. date: 7180 +.. nonce: PBfjW3 +.. section: Library + +Fix issues found by pyflakes for multiprocessing. + +.. + +.. bpo: 21015 +.. date: 7179 +.. nonce: xnwWAH +.. section: Library + +SSL contexts will now automatically select an elliptic curve for ECDH key +exchange on OpenSSL 1.0.2 and later, and otherwise default to "prime256v1". + +.. + +.. bpo: 21000 +.. date: 7178 +.. nonce: JUyyVV +.. section: Library + +Improve the command-line interface of json.tool. + +.. + +.. bpo: 20995 +.. date: 7177 +.. nonce: KSORJT +.. section: Library + +Enhance default ciphers used by the ssl module to enable better security and +prioritize perfect forward secrecy. + +.. + +.. bpo: 20884 +.. date: 7176 +.. nonce: qNmub_ +.. section: Library + +Don't assume that __file__ is defined on importlib.__init__. + +.. + +.. bpo: 21499 +.. date: 7175 +.. nonce: wU4OBi +.. section: Library + +Ignore __builtins__ in several test_importlib.test_api tests. + +.. + +.. bpo: 20627 +.. date: 7174 +.. nonce: fgfQ1x +.. section: Library + +xmlrpc.client.ServerProxy is now a context manager. + +.. + +.. bpo: 19165 +.. date: 7173 +.. nonce: sAkUjU +.. section: Library + +The formatter module now raises DeprecationWarning instead of +PendingDeprecationWarning. + +.. + +.. bpo: 13936 +.. date: 7172 +.. nonce: _Q0Yog +.. section: Library + +Remove the ability of datetime.time instances to be considered false in +boolean contexts. + +.. + +.. bpo: 18931 +.. date: 7171 +.. nonce: mq4Mud +.. section: Library + +selectors module now supports /dev/poll on Solaris. Patch by Giampaolo +Rodola'. + +.. + +.. bpo: 19977 +.. date: 7170 +.. nonce: A-sQ_V +.. section: Library + +When the ``LC_TYPE`` locale is the POSIX locale (``C`` locale), +:py:data:`sys.stdin` and :py:data:`sys.stdout` are now using the +``surrogateescape`` error handler, instead of the ``strict`` error handler. + +.. + +.. bpo: 20574 +.. date: 7169 +.. nonce: KaKqSs +.. section: Library + +Implement incremental decoder for cp65001 code (Windows code page 65001, +Microsoft UTF-8). + +.. + +.. bpo: 20879 +.. date: 7168 +.. nonce: myeYdq +.. section: Library + +Delay the initialization of encoding and decoding tables for base32, ascii85 +and base85 codecs in the base64 module, and delay the initialization of the +unquote_to_bytes() table of the urllib.parse module, to not waste memory if +these modules are not used. + +.. + +.. bpo: 19157 +.. date: 7167 +.. nonce: V1-XhC +.. section: Library + +Include the broadcast address in the usuable hosts for IPv6 in ipaddress. + +.. + +.. bpo: 11599 +.. date: 7166 +.. nonce: 9QOXf4 +.. section: Library + +When an external command (e.g. compiler) fails, distutils now prints out the +whole command line (instead of just the command name) if the environment +variable DISTUTILS_DEBUG is set. + +.. + +.. bpo: 4931 +.. date: 7165 +.. nonce: uF10hr +.. section: Library + +distutils should not produce unhelpful "error: None" messages anymore. +distutils.util.grok_environment_error is kept but doc-deprecated. + +.. + +.. bpo: 20875 +.. date: 7164 +.. nonce: IjfI5V +.. section: Library + +Prevent possible gzip "'read' is not defined" NameError. Patch by Claudiu +Popa. + +.. + +.. bpo: 11558 +.. date: 7163 +.. nonce: pxrsmq +.. section: Library + +``email.message.Message.attach`` now returns a more useful error message if +``attach`` is called on a message for which ``is_multipart`` is False. + +.. + +.. bpo: 20283 +.. date: 7162 +.. nonce: v0Vs9V +.. section: Library + +RE pattern methods now accept the string keyword parameters as documented. +The pattern and source keyword parameters are left as deprecated aliases. + +.. + +.. bpo: 20778 +.. date: 7161 +.. nonce: g_fAGI +.. section: Library + +Fix modulefinder to work with bytecode-only modules. + +.. + +.. bpo: 20791 +.. date: 7160 +.. nonce: n_zrkc +.. section: Library + +copy.copy() now doesn't make a copy when the input is a bytes object. +Initial patch by Peter Otten. + +.. + +.. bpo: 19748 +.. date: 7159 +.. nonce: kiA171 +.. section: Library + +On AIX, time.mktime() now raises an OverflowError for year outsize range +[1902; 2037]. + +.. + +.. bpo: 19573 +.. date: 7158 +.. nonce: QJvX_V +.. section: Library + +inspect.signature: Use enum for parameter kind constants. + +.. + +.. bpo: 20726 +.. date: 7157 +.. nonce: 0yfRDI +.. section: Library + +inspect.signature: Make Signature and Parameter picklable. + +.. + +.. bpo: 17373 +.. date: 7156 +.. nonce: ECwuJO +.. section: Library + +Add inspect.Signature.from_callable method. + +.. + +.. bpo: 20378 +.. date: 7155 +.. nonce: l9M3H- +.. section: Library + +Improve repr of inspect.Signature and inspect.Parameter. + +.. + +.. bpo: 20816 +.. date: 7154 +.. nonce: DFMEgN +.. section: Library + +Fix inspect.getcallargs() to raise correct TypeError for missing keyword- +only arguments. Patch by Jeremiah Lowin. + +.. + +.. bpo: 20817 +.. date: 7153 +.. nonce: O5XyZB +.. section: Library + +Fix inspect.getcallargs() to fail correctly if more than 3 arguments are +missing. Patch by Jeremiah Lowin. + +.. + +.. bpo: 6676 +.. date: 7152 +.. nonce: CJu5On +.. section: Library + +Ensure a meaningful exception is raised when attempting to parse more than +one XML document per pyexpat xmlparser instance. (Original patches by +Hirokazu Yamamoto and Amaury Forgeot d'Arc, with suggested wording by David +Gutteridge) + +.. + +.. bpo: 21117 +.. date: 7151 +.. nonce: hyH7EK +.. section: Library + +Fix inspect.signature to better support functools.partial. Due to the +specifics of functools.partial implementation, positional-or-keyword +arguments passed as keyword arguments become keyword-only. + +.. + +.. bpo: 20334 +.. date: 7150 +.. nonce: 0yFmfQ +.. section: Library + +inspect.Signature and inspect.Parameter are now hashable. Thanks to Antony +Lee for bug reports and suggestions. + +.. + +.. bpo: 15916 +.. date: 7149 +.. nonce: _vhKPn +.. section: Library + +doctest.DocTestSuite returns an empty unittest.TestSuite instead of raising +ValueError if it finds no tests + +.. + +.. bpo: 21209 +.. date: 7148 +.. nonce: wRE7Dn +.. section: Library + +Fix asyncio.tasks.CoroWrapper to workaround a bug in yield-from +implementation in CPythons prior to 3.4.1. + +.. + +.. bpo: 0 +.. date: 7147 +.. nonce: Q1I78Z +.. section: Library + +asyncio: Add gi_{frame,running,code} properties to CoroWrapper (upstream +issue #163). + +.. + +.. bpo: 21311 +.. date: 7146 +.. nonce: JsDF8H +.. section: Library + +Avoid exception in _osx_support with non-standard compiler configurations. +Patch by John Szakmeister. + +.. + +.. bpo: 11571 +.. date: 7145 +.. nonce: RPeGNo +.. section: Library + +Ensure that the turtle window becomes the topmost window when launched on OS +X. + +.. + +.. bpo: 21801 +.. date: 7144 +.. nonce: rzfhYl +.. section: Library + +Validate that __signature__ is None or an instance of Signature. + +.. + +.. bpo: 21923 +.. date: 7143 +.. nonce: hXnoZa +.. section: Library + +Prevent AttributeError in distutils.sysconfig.customize_compiler due to +possible uninitialized _config_vars. + +.. + +.. bpo: 21323 +.. date: 7142 +.. nonce: quiWfl +.. section: Library + +Fix http.server to again handle scripts in CGI subdirectories, broken by the +fix for security issue #19435. Patch by Zach Byrne. + +.. + +.. bpo: 22733 +.. date: 7141 +.. nonce: 21gJBp +.. section: Library + +Fix ffi_prep_args not zero-extending argument values correctly on 64-bit +Windows. + +.. + +.. bpo: 23302 +.. date: 7140 +.. nonce: X2dabK +.. section: Library + +Default to TCP_NODELAY=1 upon establishing an HTTPConnection. Removed use of +hard-coded MSS as it's an optimization that's no longer needed with Nagle +disabled. + +.. + +.. bpo: 20577 +.. date: 7139 +.. nonce: Y71IMj +.. section: IDLE + +Configuration of the max line length for the FormatParagraph extension has +been moved from the General tab of the Idle preferences dialog to the +FormatParagraph tab of the Config Extensions dialog. Patch by Tal Einat. + +.. + +.. bpo: 16893 +.. date: 7138 +.. nonce: JfHAA4 +.. section: IDLE + +Update Idle doc chapter to match current Idle and add new information. + +.. + +.. bpo: 3068 +.. date: 7137 +.. nonce: TYjXTA +.. section: IDLE + +Add Idle extension configuration dialog to Options menu. Changes are written +to HOME/.idlerc/config-extensions.cfg. Original patch by Tal Einat. + +.. + +.. bpo: 16233 +.. date: 7136 +.. nonce: sOadNo +.. section: IDLE + +A module browser (File : Class Browser, Alt+C) requires an editor window +with a filename. When Class Browser is requested otherwise, from a shell, +output window, or 'Untitled' editor, Idle no longer displays an error box. +It now pops up an Open Module box (Alt+M). If a valid name is entered and a +module is opened, a corresponding browser is also opened. + +.. + +.. bpo: 4832 +.. date: 7135 +.. nonce: GRKi9M +.. section: IDLE + +Save As to type Python files automatically adds .py to the name you enter +(even if your system does not display it). Some systems automatically add +.txt when type is Text files. + +.. + +.. bpo: 21986 +.. date: 7134 +.. nonce: 04GUv2 +.. section: IDLE + +Code objects are not normally pickled by the pickle module. To match this, +they are no longer pickled when running under Idle. + +.. + +.. bpo: 17390 +.. date: 7133 +.. nonce: I4vHFh +.. section: IDLE + +Adjust Editor window title; remove 'Python', move version to end. + +.. + +.. bpo: 14105 +.. date: 7132 +.. nonce: -FZwYH +.. section: IDLE + +Idle debugger breakpoints no longer disappear when inserting or deleting +lines. + +.. + +.. bpo: 17172 +.. date: 7131 +.. nonce: R8jkU1 +.. section: IDLE + +Turtledemo can now be run from Idle. Currently, the entry is on the Help +menu, but it may move to Run. Patch by Ramchandra Apt and Lita Cho. + +.. + +.. bpo: 21765 +.. date: 7130 +.. nonce: JyiDbd +.. section: IDLE + +Add support for non-ascii identifiers to HyperParser. + +.. + +.. bpo: 21940 +.. date: 7129 +.. nonce: VlIRz7 +.. section: IDLE + +Add unittest for WidgetRedirector. Initial patch by Saimadhav Heblikar. + +.. + +.. bpo: 18592 +.. date: 7128 +.. nonce: sMG-SZ +.. section: IDLE + +Add unittest for SearchDialogBase. Patch by Phil Webster. + +.. + +.. bpo: 21694 +.. date: 7127 +.. nonce: 1oLmRo +.. section: IDLE + +Add unittest for ParenMatch. Patch by Saimadhav Heblikar. + +.. + +.. bpo: 21686 +.. date: 7126 +.. nonce: TAkFB0 +.. section: IDLE + +add unittest for HyperParser. Original patch by Saimadhav Heblikar. + +.. + +.. bpo: 12387 +.. date: 7125 +.. nonce: XO7Ozk +.. section: IDLE + +Add missing upper(lower)case versions of default Windows key bindings for +Idle so Caps Lock does not disable them. Patch by Roger Serwy. + +.. + +.. bpo: 21695 +.. date: 7124 +.. nonce: g-t0Tm +.. section: IDLE + +Closing a Find-in-files output window while the search is still in progress +no longer closes Idle. + +.. + +.. bpo: 18910 +.. date: 7123 +.. nonce: ke8lMK +.. section: IDLE + +Add unittest for textView. Patch by Phil Webster. + +.. + +.. bpo: 18292 +.. date: 7122 +.. nonce: ks_3wm +.. section: IDLE + +Add unittest for AutoExpand. Patch by Saihadhav Heblikar. + +.. + +.. bpo: 18409 +.. date: 7121 +.. nonce: 7fe-aK +.. section: IDLE + +Add unittest for AutoComplete. Patch by Phil Webster. + +.. + +.. bpo: 21477 +.. date: 7120 +.. nonce: 33NOe0 +.. section: IDLE + +htest.py - Improve framework, complete set of tests. Patches by Saimadhav +Heblikar + +.. + +.. bpo: 18104 +.. date: 7119 +.. nonce: 8Fj9Pf +.. section: IDLE + +Add idlelib/idle_test/htest.py with a few sample tests to begin +consolidating and improving human-validated tests of Idle. Change other +files as needed to work with htest. Running the module as __main__ runs all +tests. + +.. + +.. bpo: 21139 +.. date: 7118 +.. nonce: kqetng +.. section: IDLE + +Change default paragraph width to 72, the PEP 8 recommendation. + +.. + +.. bpo: 21284 +.. date: 7117 +.. nonce: KKJfmv +.. section: IDLE + +Paragraph reformat test passes after user changes reformat width. + +.. + +.. bpo: 17654 +.. date: 7116 +.. nonce: NbzhNS +.. section: IDLE + +Ensure IDLE menus are customized properly on OS X for non-framework builds +and for all variants of Tk. + +.. + +.. bpo: 23180 +.. date: 7115 +.. nonce: cE_89F +.. section: IDLE + +Rename IDLE "Windows" menu item to "Window". Patch by Al Sweigart. + +.. + +.. bpo: 15506 +.. date: 7114 +.. nonce: nh8KlR +.. section: Build + +Use standard PKG_PROG_PKG_CONFIG autoconf macro in the configure script. + +.. + +.. bpo: 22935 +.. date: 7113 +.. nonce: -vY3lc +.. section: Build + +Allow the ssl module to be compiled if openssl doesn't support SSL 3. + +.. + +.. bpo: 22592 +.. date: 7112 +.. nonce: O_IE9W +.. section: Build + +Drop support of the Borland C compiler to build Python. The distutils module +still supports it to build extensions. + +.. + +.. bpo: 22591 +.. date: 7111 +.. nonce: wwBlG8 +.. section: Build + +Drop support of MS-DOS, especially of the DJGPP compiler (MS-DOS port of +GCC). + +.. + +.. bpo: 16537 +.. date: 7110 +.. nonce: llFo71 +.. section: Build + +Check whether self.extensions is empty in setup.py. Patch by Jonathan +Hosmer. + +.. + +.. bpo: 22359 +.. date: 7109 +.. nonce: YYFOFG +.. section: Build + +Remove incorrect uses of recursive make. Patch by Jonas Wagner. + +.. + +.. bpo: 21958 +.. date: 7108 +.. nonce: 3rq4qR +.. section: Build + +Define HAVE_ROUND when building with Visual Studio 2013 and above. Patch by +Zachary Turner. + +.. + +.. bpo: 18093 +.. date: 7107 +.. nonce: gnZieo +.. section: Build + +the programs that embed the CPython runtime are now in a separate "Programs" +directory, rather than being kept in the Modules directory. + +.. + +.. bpo: 15759 +.. date: 7106 +.. nonce: iGLR6O +.. section: Build + +"make suspicious", "make linkcheck" and "make doctest" in Doc/ now display +special message when and only when there are failures. + +.. + +.. bpo: 21141 +.. date: 7105 +.. nonce: 669LzK +.. section: Build + +The Windows build process no longer attempts to find Perl, instead relying +on OpenSSL source being configured and ready to build. The +``PCbuild\build_ssl.py`` script has been re-written and re-named to +``PCbuild\prepare_ssl.py``, and takes care of configuring OpenSSL source for +both 32 and 64 bit platforms. OpenSSL sources obtained from svn.python.org +will always be pre-configured and ready to build. + +.. + +.. bpo: 21037 +.. date: 7104 +.. nonce: v1rZzo +.. section: Build + +Add a build option to enable AddressSanitizer support. + +.. + +.. bpo: 19962 +.. date: 7103 +.. nonce: HDlwsE +.. section: Build + +The Windows build process now creates "python.bat" in the root of the source +tree, which passes all arguments through to the most recently built +interpreter. + +.. + +.. bpo: 21285 +.. date: 7102 +.. nonce: cU9p2E +.. section: Build + +Refactor and fix curses configure check to always search in a ncursesw +directory. + +.. + +.. bpo: 15234 +.. date: 7101 +.. nonce: vlM720 +.. section: Build + +For BerkelyDB and Sqlite, only add the found library and include directories +if they aren't already being searched. This avoids an explicit runtime +library dependency. + +.. + +.. bpo: 17861 +.. date: 7100 +.. nonce: jCi44U +.. section: Build + +Tools/scripts/generate_opcode_h.py automatically regenerates +Include/opcode.h from Lib/opcode.py if the latter gets any change. + +.. + +.. bpo: 20644 +.. date: 7099 +.. nonce: aV0zq7 +.. section: Build + +OS X installer build support for documentation build changes in 3.4.1: +assume externally supplied sphinx-build is available in /usr/bin. + +.. + +.. bpo: 20022 +.. date: 7098 +.. nonce: EqSCTW +.. section: Build + +Eliminate use of deprecated bundlebuilder in OS X builds. + +.. + +.. bpo: 15968 +.. date: 7097 +.. nonce: vxUxHK +.. section: Build + +Incorporated Tcl, Tk, and Tix builds into the Windows build solution. + +.. + +.. bpo: 17095 +.. date: 7096 +.. nonce: -XEBIU +.. section: Build + +Fix Modules/Setup *shared* support. + +.. + +.. bpo: 21811 +.. date: 7095 +.. nonce: 3_Xyr- +.. section: Build + +Anticipated fixes to support OS X versions > 10.9. + +.. + +.. bpo: 21166 +.. date: 7094 +.. nonce: KAl7aO +.. section: Build + +Prevent possible segfaults and other random failures of python --generate- +posix-vars in pybuilddir.txt build target. + +.. + +.. bpo: 18096 +.. date: 7093 +.. nonce: ELyAUJ +.. section: Build + +Fix library order returned by python-config. + +.. + +.. bpo: 17219 +.. date: 7092 +.. nonce: q8ueQ0 +.. section: Build + +Add library build dir for Python extension cross-builds. + +.. + +.. bpo: 22919 +.. date: 7091 +.. nonce: 1XThL9 +.. section: Build + +Windows build updated to support VC 14.0 (Visual Studio 2015), which will be +used for the official release. + +.. + +.. bpo: 21236 +.. date: 7090 +.. nonce: 84LXxj +.. section: Build + +Build _msi.pyd with cabinet.lib instead of fci.lib + +.. + +.. bpo: 17128 +.. date: 7089 +.. nonce: U2biLA +.. section: Build + +Use private version of OpenSSL for OS X 10.5+ installer. + +.. + +.. bpo: 14203 +.. date: 7088 +.. nonce: 3hv0TX +.. section: C API + +Remove obsolete support for view==NULL in PyBuffer_FillInfo(), +bytearray_getbuffer(), bytesiobuf_getbuffer() and array_buffer_getbuf(). All +functions now raise BufferError in that case. + +.. + +.. bpo: 22445 +.. date: 7087 +.. nonce: s0AOAS +.. section: C API + +PyBuffer_IsContiguous() now implements precise contiguity tests, compatible +with NumPy's NPY_RELAXED_STRIDES_CHECKING compilation flag. Previously the +function reported false negatives for corner cases. + +.. + +.. bpo: 22079 +.. date: 7086 +.. nonce: zhs2qM +.. section: C API + +PyType_Ready() now checks that statically allocated type has no dynamically +allocated bases. + +.. + +.. bpo: 22453 +.. date: 7085 +.. nonce: XoO4ns +.. section: C API + +Removed non-documented macro PyObject_REPR(). + +.. + +.. bpo: 18395 +.. date: 7084 +.. nonce: YC9B06 +.. section: C API + +Rename ``_Py_char2wchar()`` to :c:func:`Py_DecodeLocale`, rename +``_Py_wchar2char()`` to :c:func:`Py_EncodeLocale`, and document these +functions. + +.. + +.. bpo: 21233 +.. date: 7083 +.. nonce: 98hZAt +.. section: C API + +Add new C functions: PyMem_RawCalloc(), PyMem_Calloc(), PyObject_Calloc(), +_PyObject_GC_Calloc(). bytes(int) is now using ``calloc()`` instead of +``malloc()`` for large objects which is faster and use less memory. + +.. + +.. bpo: 20942 +.. date: 7082 +.. nonce: qHLJ5- +.. section: C API + +PyImport_ImportFrozenModuleObject() no longer sets __file__ to match what +importlib does; this affects _frozen_importlib as well as any module loaded +using imp.init_frozen(). + +.. + +.. bpo: 19548 +.. date: 7081 +.. nonce: yOX8sS +.. section: Documentation + +Update the codecs module documentation to better cover the distinction +between text encodings and other codecs, together with other clarifications. +Patch by Martin Panter. + +.. + +.. bpo: 22394 +.. date: 7080 +.. nonce: 6bJywY +.. section: Documentation + +Doc/Makefile now supports ``make venv PYTHON=../python`` to create a venv +for generating the documentation, e.g., ``make html +PYTHON=venv/bin/python3``. + +.. + +.. bpo: 21514 +.. date: 7079 +.. nonce: 1H16T6 +.. section: Documentation + +The documentation of the json module now refers to new JSON RFC 7159 instead +of obsoleted RFC 4627. + +.. + +.. bpo: 21777 +.. date: 7078 +.. nonce: dtQCWV +.. section: Documentation + +The binary sequence methods on bytes and bytearray are now documented +explicitly, rather than assuming users will be able to derive the expected +behaviour from the behaviour of the corresponding str methods. + +.. + +.. bpo: 6916 +.. date: 7077 +.. nonce: 4sm3nE +.. section: Documentation + +undocument deprecated asynchat.fifo class. + +.. + +.. bpo: 17386 +.. date: 7076 +.. nonce: ivaGLb +.. section: Documentation + +Expanded functionality of the ``Doc/make.bat`` script to make it much more +comparable to ``Doc/Makefile``. + +.. + +.. bpo: 21312 +.. date: 7075 +.. nonce: 6IqcV4 +.. section: Documentation + +Update the thread_foobar.h template file to include newer threading APIs. +Patch by Jack McCracken. + +.. + +.. bpo: 21043 +.. date: 7074 +.. nonce: oEOC8O +.. section: Documentation + +Remove the recommendation for specific CA organizations and to mention the +ability to load the OS certificates. + +.. + +.. bpo: 20765 +.. date: 7073 +.. nonce: Rv3GgV +.. section: Documentation + +Add missing documentation for PurePath.with_name() and +PurePath.with_suffix(). + +.. + +.. bpo: 19407 +.. date: 7072 +.. nonce: mRyNnG +.. section: Documentation + +New package installation and distribution guides based on the Python +Packaging Authority tools. Existing guides have been retained as legacy +links from the distutils docs, as they still contain some required reference +material for tool developers that isn't recorded anywhere else. + +.. + +.. bpo: 19697 +.. date: 7071 +.. nonce: 2jMQBP +.. section: Documentation + +Document cases where __main__.__spec__ is None. + +.. + +.. bpo: 18982 +.. date: 7070 +.. nonce: TynSM6 +.. section: Tests + +Add tests for CLI of the calendar module. + +.. + +.. bpo: 19548 +.. date: 7069 +.. nonce: 25Kxq_ +.. section: Tests + +Added some additional checks to test_codecs to ensure that statements in the +updated documentation remain accurate. Patch by Martin Panter. + +.. + +.. bpo: 22838 +.. date: 7068 +.. nonce: VZBtZg +.. section: Tests + +All test_re tests now work with unittest test discovery. + +.. + +.. bpo: 22173 +.. date: 7067 +.. nonce: dxIIVx +.. section: Tests + +Update lib2to3 tests to use unittest test discovery. + +.. + +.. bpo: 16000 +.. date: 7066 +.. nonce: Y7O6TP +.. section: Tests + +Convert test_curses to use unittest. + +.. + +.. bpo: 21456 +.. date: 7065 +.. nonce: Axsw43 +.. section: Tests + +Skip two tests in test_urllib2net.py if _ssl module not present. Patch by +Remi Pointel. + +.. + +.. bpo: 20746 +.. date: 7064 +.. nonce: N2pzAY +.. section: Tests + +Fix test_pdb to run in refleak mode (-R). Patch by Xavier de Gaye. + +.. + +.. bpo: 22060 +.. date: 7063 +.. nonce: TduJNO +.. section: Tests + +test_ctypes has been somewhat cleaned up and simplified; it now uses +unittest test discovery to find its tests. + +.. + +.. bpo: 22104 +.. date: 7062 +.. nonce: -YYDup +.. section: Tests + +regrtest.py no longer holds a reference to the suite of tests loaded from +test modules that don't define test_main(). + +.. + +.. bpo: 22111 +.. date: 7061 +.. nonce: 0XlFAU +.. section: Tests + +Assorted cleanups in test_imaplib. Patch by Milan Oberkirch. + +.. + +.. bpo: 22002 +.. date: 7060 +.. nonce: jpiaA2 +.. section: Tests + +Added ``load_package_tests`` function to test.support and used it to +implement/augment test discovery in test_asyncio, test_email, +test_importlib, test_json, and test_tools. + +.. + +.. bpo: 21976 +.. date: 7059 +.. nonce: Slq6se +.. section: Tests + +Fix test_ssl to accept LibreSSL version strings. Thanks to William Orr. + +.. + +.. bpo: 21918 +.. date: 7058 +.. nonce: QTFFSj +.. section: Tests + +Converted test_tools from a module to a package containing separate test +files for each tested script. + +.. + +.. bpo: 9554 +.. date: 7057 +.. nonce: VsP0Ve +.. section: Tests + +Use modern unittest features in test_argparse. Initial patch by Denver +Coneybeare and Radu Voicilas. + +.. + +.. bpo: 20155 +.. date: 7056 +.. nonce: nphzS3 +.. section: Tests + +Changed HTTP method names in failing tests in test_httpservers so that +packet filtering software (specifically Windows Base Filtering Engine) does +not interfere with the transaction semantics expected by the tests. + +.. + +.. bpo: 19493 +.. date: 7055 +.. nonce: SwbzLQ +.. section: Tests + +Refactored the ctypes test package to skip tests explicitly rather than +silently. + +.. + +.. bpo: 18492 +.. date: 7054 +.. nonce: ylPRU7 +.. section: Tests + +All resources are now allowed when tests are not run by regrtest.py. + +.. + +.. bpo: 21634 +.. date: 7053 +.. nonce: Eng06F +.. section: Tests + +Fix pystone micro-benchmark: use floor division instead of true division to +benchmark integers instead of floating point numbers. Set pystone version to +1.2. Patch written by Lennart Regebro. + +.. + +.. bpo: 21605 +.. date: 7052 +.. nonce: qsLV8d +.. section: Tests + +Added tests for Tkinter images. + +.. + +.. bpo: 21493 +.. date: 7051 +.. nonce: NqhRsy +.. section: Tests + +Added test for ntpath.expanduser(). Original patch by Claudiu Popa. + +.. + +.. bpo: 19925 +.. date: 7050 +.. nonce: dhMx08 +.. section: Tests + +Added tests for the spwd module. Original patch by Vajrasky Kok. + +.. + +.. bpo: 21522 +.. date: 7049 +.. nonce: b-VwFW +.. section: Tests + +Added Tkinter tests for Listbox.itemconfigure(), +PanedWindow.paneconfigure(), and Menu.entryconfigure(). + +.. + +.. bpo: 17756 +.. date: 7048 +.. nonce: LLfbfU +.. section: Tests + +Fix test_code test when run from the installed location. + +.. + +.. bpo: 17752 +.. date: 7047 +.. nonce: P8iG44 +.. section: Tests + +Fix distutils tests when run from the installed location. + +.. + +.. bpo: 18604 +.. date: 7046 +.. nonce: Q00Xrj +.. section: Tests + +Consolidated checks for GUI availability. All platforms now at least check +whether Tk can be instantiated when the GUI resource is requested. + +.. + +.. bpo: 21275 +.. date: 7045 +.. nonce: lI5FkX +.. section: Tests + +Fix a socket test on KFreeBSD. + +.. + +.. bpo: 21223 +.. date: 7044 +.. nonce: lMY6ka +.. section: Tests + +Pass test_site/test_startup_imports when some of the extensions are built as +builtins. + +.. + +.. bpo: 20635 +.. date: 7043 +.. nonce: mzWmoS +.. section: Tests + +Added tests for Tk geometry managers. + +.. + +.. bpo: 0 +.. date: 7042 +.. nonce: E5XNqr +.. section: Tests + +Add test case for freeze. + +.. + +.. bpo: 20743 +.. date: 7041 +.. nonce: hxZQUf +.. section: Tests + +Fix a reference leak in test_tcl. + +.. + +.. bpo: 21097 +.. date: 7040 +.. nonce: gsUesm +.. section: Tests + +Move test_namespace_pkgs into test_importlib. + +.. + +.. bpo: 21503 +.. date: 7039 +.. nonce: H9TPCg +.. section: Tests + +Use test_both() consistently in test_importlib. + +.. + +.. bpo: 20939 +.. date: 7038 +.. nonce: x3KQ35 +.. section: Tests + +Avoid various network test failures due to new redirect of +http://www.python.org/ to https://www.python.org: use http://www.example.com +instead. + +.. + +.. bpo: 20668 +.. date: 7037 +.. nonce: IWjOSC +.. section: Tests + +asyncio tests no longer rely on tests.txt file. (Patch by Vajrasky Kok) + +.. + +.. bpo: 21093 +.. date: 7036 +.. nonce: CcpRim +.. section: Tests + +Prevent failures of ctypes test_macholib on OS X if a copy of libz exists in +$HOME/lib or /usr/local/lib. + +.. + +.. bpo: 22770 +.. date: 7035 +.. nonce: FxAh91 +.. section: Tests + +Prevent some Tk segfaults on OS X when running gui tests. + +.. + +.. bpo: 23211 +.. date: 7034 +.. nonce: Bc-QfJ +.. section: Tests + +Workaround test_logging failure on some OS X 10.6 systems. + +.. + +.. bpo: 23345 +.. date: 7033 +.. nonce: HIGBKx +.. section: Tests + +Prevent test_ssl failures with large OpenSSL patch level values (like +0.9.8zc). + +.. + +.. bpo: 22314 +.. date: 7032 +.. nonce: ws6xsH +.. section: Tools/Demos + +pydoc now works when the LINES environment variable is set. + +.. + +.. bpo: 22615 +.. date: 7031 +.. nonce: My3DWN +.. section: Tools/Demos + +Argument Clinic now supports the "type" argument for the int converter. +This permits using the int converter with enums and typedefs. + +.. + +.. bpo: 20076 +.. date: 7030 +.. nonce: ZNuBrC +.. section: Tools/Demos + +The makelocalealias.py script no longer ignores UTF-8 mapping. + +.. + +.. bpo: 20079 +.. date: 7029 +.. nonce: ogPXcK +.. section: Tools/Demos + +The makelocalealias.py script now can parse the SUPPORTED file from glibc +sources and supports command line options for source paths. + +.. + +.. bpo: 22201 +.. date: 7028 +.. nonce: k1Awbh +.. section: Tools/Demos + +Command-line interface of the zipfile module now correctly extracts ZIP +files with directory entries. Patch by Ryan Wilson. + +.. + +.. bpo: 22120 +.. date: 7027 +.. nonce: KmBUj- +.. section: Tools/Demos + +For functions using an unsigned integer return converter, Argument Clinic +now generates a cast to that type for the comparison to -1 in the generated +code. (This suppresses a compilation warning.) + +.. + +.. bpo: 18974 +.. date: 7026 +.. nonce: I3DdAo +.. section: Tools/Demos + +Tools/scripts/diff.py now uses argparse instead of optparse. + +.. + +.. bpo: 21906 +.. date: 7025 +.. nonce: ZsKy9v +.. section: Tools/Demos + +Make Tools/scripts/md5sum.py work in Python 3. Patch by Zachary Ware. + +.. + +.. bpo: 21629 +.. date: 7024 +.. nonce: 9kZmQl +.. section: Tools/Demos + +Fix Argument Clinic's "--converters" feature. + +.. + +.. bpo: 0 +.. date: 7023 +.. nonce: _-ge-g +.. section: Tools/Demos + +Add support for ``yield from`` to 2to3. + +.. + +.. bpo: 0 +.. date: 7022 +.. nonce: dpFbyZ +.. section: Tools/Demos + +Add support for the PEP 465 matrix multiplication operator to 2to3. + +.. + +.. bpo: 16047 +.. date: 7021 +.. nonce: IsgTzm +.. section: Tools/Demos + +Fix module exception list and __file__ handling in freeze. Patch by Meador +Inge. + +.. + +.. bpo: 11824 +.. date: 7020 +.. nonce: OBWc3T +.. section: Tools/Demos + +Consider ABI tags in freeze. Patch by Meador Inge. + +.. + +.. bpo: 20535 +.. date: 7019 +.. nonce: 0qkvZZ +.. section: Tools/Demos + +PYTHONWARNING no longer affects the run_tests.py script. Patch by Arfrever +Frehtes Taifersar Arahesis. + +.. + +.. bpo: 23260 +.. date: 7018 +.. nonce: aZ5VLH +.. section: Windows + +Update Windows installer + +.. + +.. bpo: 0 +.. date: 7017 +.. nonce: _aEUNt +.. section: Windows + +The bundled version of Tcl/Tk has been updated to 8.6.3. The most visible +result of this change is the addition of new native file dialogs when +running on Windows Vista or newer. See Tcl/Tk's TIP 432 for more +information. Also, this version of Tcl/Tk includes support for Windows 10. + +.. + +.. bpo: 17896 +.. date: 7016 +.. nonce: o79rHM +.. section: Windows + +The Windows build scripts now expect external library sources to be in +``PCbuild\..\externals`` rather than ``PCbuild\..\..``. + +.. + +.. bpo: 17717 +.. date: 7015 +.. nonce: y1zoye +.. section: Windows + +The Windows build scripts now use a copy of NASM pulled from svn.python.org +to build OpenSSL. + +.. + +.. bpo: 21907 +.. date: 7014 +.. nonce: jm1smN +.. section: Windows + +Improved the batch scripts provided for building Python. + +.. + +.. bpo: 22644 +.. date: 7013 +.. nonce: gosBki +.. section: Windows + +The bundled version of OpenSSL has been updated to 1.0.1j. + +.. + +.. bpo: 10747 +.. date: 7012 +.. nonce: LTWhLn +.. section: Windows + +Use versioned labels in the Windows start menu. Patch by Olive Kilburn. + +.. + +.. bpo: 22980 +.. date: 7011 +.. nonce: -UypE5 +.. section: Windows + +.pyd files with a version and platform tag (for example, ".cp35-win32.pyd") +will now be loaded in preference to those without tags. diff --git a/Misc/NEWS.d/3.5.0a2.rst b/Misc/NEWS.d/3.5.0a2.rst new file mode 100644 index 0000000..ab0c671 --- /dev/null +++ b/Misc/NEWS.d/3.5.0a2.rst @@ -0,0 +1,406 @@ +.. bpo: 23571 +.. date: 7650 +.. nonce: GTkAkq +.. release date: 2015-03-09 +.. section: Core and Builtins + +PyObject_Call() and PyCFunction_Call() now raise a SystemError if a function +returns a result and raises an exception. The SystemError is chained to the +previous exception. + +.. + +.. bpo: 22524 +.. date: 7649 +.. nonce: Ks6_2x +.. section: Library + +New os.scandir() function, part of the PEP 471: "os.scandir() function -- a +better and faster directory iterator". Patch written by Ben Hoyt. + +.. + +.. bpo: 23103 +.. date: 7648 +.. nonce: I3RLIV +.. section: Library + +Reduced the memory consumption of IPv4Address and IPv6Address. + +.. + +.. bpo: 21793 +.. date: 7647 +.. nonce: GQtYMM +.. section: Library + +BaseHTTPRequestHandler again logs response code as numeric, not as +stringified enum. Patch by Demian Brecht. + +.. + +.. bpo: 23476 +.. date: 7646 +.. nonce: 82QV9I +.. section: Library + +In the ssl module, enable OpenSSL's X509_V_FLAG_TRUSTED_FIRST flag on +certificate stores when it is available. + +.. + +.. bpo: 23576 +.. date: 7645 +.. nonce: 98F-PP +.. section: Library + +Avoid stalling in SSL reads when EOF has been reached in the SSL layer but +the underlying connection hasn't been closed. + +.. + +.. bpo: 23504 +.. date: 7644 +.. nonce: o31h5I +.. section: Library + +Added an __all__ to the types module. + +.. + +.. bpo: 23563 +.. date: 7643 +.. nonce: iQB-ba +.. section: Library + +Optimized utility functions in urllib.parse. + +.. + +.. bpo: 7830 +.. date: 7642 +.. nonce: irvPdC +.. section: Library + +Flatten nested functools.partial. + +.. + +.. bpo: 20204 +.. date: 7641 +.. nonce: DorA4b +.. section: Library + +Added the __module__ attribute to _tkinter classes. + +.. + +.. bpo: 19980 +.. date: 7640 +.. nonce: whwzL_ +.. section: Library + +Improved help() for non-recognized strings. help('') now shows the help on +str. help('help') now shows the help on help(). Original patch by Mark +Lawrence. + +.. + +.. bpo: 23521 +.. date: 7639 +.. nonce: HvwFfd +.. section: Library + +Corrected pure python implementation of timedelta division. + +Eliminated OverflowError from ``timedelta * float`` for some floats; +Corrected rounding in timedlta true division. + +.. + +.. bpo: 21619 +.. date: 7638 +.. nonce: uL0SZh +.. section: Library + +Popen objects no longer leave a zombie after exit in the with statement if +the pipe was broken. Patch by Martin Panter. + +.. + +.. bpo: 22936 +.. date: 7637 +.. nonce: JrhGYd +.. section: Library + +Make it possible to show local variables in tracebacks for both the +traceback module and unittest. + +.. + +.. bpo: 15955 +.. date: 7636 +.. nonce: _8nYPy +.. section: Library + +Add an option to limit the output size in bz2.decompress(). Patch by +Nikolaus Rath. + +.. + +.. bpo: 6639 +.. date: 7635 +.. nonce: rmjUmG +.. section: Library + +Module-level turtle functions no longer raise TclError after closing the +window. + +.. + +.. bpo: 814253 +.. date: 7634 +.. nonce: icZb-I +.. section: Library + +Group references and conditional group references now work in lookbehind +assertions in regular expressions. (See also: bpo-9179) + +.. + +.. bpo: 23215 +.. date: 7633 +.. nonce: VHVSVX +.. section: Library + +Multibyte codecs with custom error handlers that ignores errors consumed too +much memory and raised SystemError or MemoryError. Original patch by Aleksi +Torhamo. + +.. + +.. bpo: 5700 +.. date: 7632 +.. nonce: iA5yzL +.. section: Library + +io.FileIO() called flush() after closing the file. flush() was not called in +close() if closefd=False. + +.. + +.. bpo: 23374 +.. date: 7631 +.. nonce: 8A9LuZ +.. section: Library + +Fixed pydoc failure with non-ASCII files when stdout encoding differs from +file system encoding (e.g. on Mac OS). + +.. + +.. bpo: 23481 +.. date: 7630 +.. nonce: ZWwliG +.. section: Library + +Remove RC4 from the SSL module's default cipher list. + +.. + +.. bpo: 21548 +.. date: 7629 +.. nonce: CmO_Yh +.. section: Library + +Fix pydoc.synopsis() and pydoc.apropos() on modules with empty docstrings. + +.. + +.. bpo: 22885 +.. date: 7628 +.. nonce: p8FnYk +.. section: Library + +Fixed arbitrary code execution vulnerability in the dbm.dumb module. +Original patch by Claudiu Popa. + +.. + +.. bpo: 23239 +.. date: 7627 +.. nonce: PGUq7T +.. section: Library + +ssl.match_hostname() now supports matching of IP addresses. + +.. + +.. bpo: 23146 +.. date: 7626 +.. nonce: PW-O3u +.. section: Library + +Fix mishandling of absolute Windows paths with forward slashes in pathlib. + +.. + +.. bpo: 23096 +.. date: 7625 +.. nonce: Ftrmf3 +.. section: Library + +Pickle representation of floats with protocol 0 now is the same for both +Python and C implementations. + +.. + +.. bpo: 19105 +.. date: 7624 +.. nonce: ZK07Ff +.. section: Library + +pprint now more efficiently uses free space at the right. + +.. + +.. bpo: 14910 +.. date: 7623 +.. nonce: zueIhP +.. section: Library + +Add allow_abbrev parameter to argparse.ArgumentParser. Patch by Jonathan +Paugh, Steven Bethard, paul j3 and Daniel Eriksson. + +.. + +.. bpo: 21717 +.. date: 7622 +.. nonce: Knut81 +.. section: Library + +tarfile.open() now supports 'x' (exclusive creation) mode. + +.. + +.. bpo: 23344 +.. date: 7621 +.. nonce: ieu8C1 +.. section: Library + +marshal.dumps() is now 20-25% faster on average. + +.. + +.. bpo: 20416 +.. date: 7620 +.. nonce: cwEgkL +.. section: Library + +marshal.dumps() with protocols 3 and 4 is now 40-50% faster on average. + +.. + +.. bpo: 23421 +.. date: 7619 +.. nonce: eckzoV +.. section: Library + +Fixed compression in tarfile CLI. Patch by wdv4758h. + +.. + +.. bpo: 23367 +.. date: 7618 +.. nonce: kHnFiz +.. section: Library + +Fix possible overflows in the unicodedata module. + +.. + +.. bpo: 23361 +.. date: 7617 +.. nonce: I_w0-z +.. section: Library + +Fix possible overflow in Windows subprocess creation code. + +.. + +.. bpo: 0 +.. date: 7616 +.. nonce: sfmjTs +.. section: Library + +logging.handlers.QueueListener now takes a respect_handler_level keyword +argument which, if set to True, will pass messages to handlers taking +handler levels into account. + +.. + +.. bpo: 19705 +.. date: 7615 +.. nonce: WLzTRV +.. section: Library + +turtledemo now has a visual sorting algorithm demo. Original patch from +Jason Yeo. + +.. + +.. bpo: 23801 +.. date: 7614 +.. nonce: jyJK3z +.. section: Library + +Fix issue where cgi.FieldStorage did not always ignore the entire preamble +to a multipart body. + +.. + +.. bpo: 23445 +.. date: 7613 +.. nonce: 7fmkYO +.. section: Build + +pydebug builds now use "gcc -Og" where possible, to make the resulting +executable faster. + +.. + +.. bpo: 23686 +.. date: 7612 +.. nonce: B7jDXY +.. section: Build + +Update OS X 10.5 installer build to use OpenSSL 1.0.2a. + +.. + +.. bpo: 20204 +.. date: 7611 +.. nonce: M_jcNK +.. section: C API + +Deprecation warning is now raised for builtin types without the __module__ +attribute. + +.. + +.. bpo: 23465 +.. date: 7610 +.. nonce: qBauCy +.. section: Windows + +Implement PEP 486 - Make the Python Launcher aware of virtual environments. +Patch by Paul Moore. + +.. + +.. bpo: 23437 +.. date: 7609 +.. nonce: ro9X8r +.. section: Windows + +Make user scripts directory versioned on Windows. Patch by Paul Moore. diff --git a/Misc/NEWS.d/3.5.0a3.rst b/Misc/NEWS.d/3.5.0a3.rst new file mode 100644 index 0000000..a096809 --- /dev/null +++ b/Misc/NEWS.d/3.5.0a3.rst @@ -0,0 +1,518 @@ +.. bpo: 23573 +.. date: 7702 +.. nonce: ZpM4D- +.. release date: 2015-03-28 +.. section: Core and Builtins + +Increased performance of string search operations (str.find, str.index, +str.count, the in operator, str.split, str.partition) with arguments of +different kinds (UCS1, UCS2, UCS4). + +.. + +.. bpo: 23753 +.. date: 7701 +.. nonce: CREjLC +.. section: Core and Builtins + +Python doesn't support anymore platforms without stat() or fstat(), these +functions are always required. + +.. + +.. bpo: 23681 +.. date: 7700 +.. nonce: kh02TF +.. section: Core and Builtins + +The -b option now affects comparisons of bytes with int. + +.. + +.. bpo: 23632 +.. date: 7699 +.. nonce: UVdIZY +.. section: Core and Builtins + +Memoryviews now allow tuple indexing (including for multi-dimensional +memoryviews). + +.. + +.. bpo: 23192 +.. date: 7698 +.. nonce: QKqdow +.. section: Core and Builtins + +Fixed generator lambdas. Patch by Bruno Cauet. + +.. + +.. bpo: 23629 +.. date: 7697 +.. nonce: r9Mt2C +.. section: Core and Builtins + +Fix the default __sizeof__ implementation for variable-sized objects. + +.. + +.. bpo: 14260 +.. date: 7696 +.. nonce: b5M04V +.. section: Library + +The groupindex attribute of regular expression pattern object now is non- +modifiable mapping. + +.. + +.. bpo: 23792 +.. date: 7695 +.. nonce: Kfm9-f +.. section: Library + +Ignore KeyboardInterrupt when the pydoc pager is active. This mimics the +behavior of the standard unix pagers, and prevents pipepager from shutting +down while the pager itself is still running. + +.. + +.. bpo: 23775 +.. date: 7694 +.. nonce: xKGrSQ +.. section: Library + +pprint() of OrderedDict now outputs the same representation as repr(). + +.. + +.. bpo: 23765 +.. date: 7693 +.. nonce: 2ta_C4 +.. section: Library + +Removed IsBadStringPtr calls in ctypes + +.. + +.. bpo: 22364 +.. date: 7692 +.. nonce: ejtoKl +.. section: Library + +Improved some re error messages using regex for hints. + +.. + +.. bpo: 23742 +.. date: 7691 +.. nonce: _EkAIa +.. section: Library + +ntpath.expandvars() no longer loses unbalanced single quotes. + +.. + +.. bpo: 21717 +.. date: 7690 +.. nonce: pKndpx +.. section: Library + +The zipfile.ZipFile.open function now supports 'x' (exclusive creation) +mode. + +.. + +.. bpo: 21802 +.. date: 7689 +.. nonce: ygSM2A +.. section: Library + +The reader in BufferedRWPair now is closed even when closing writer failed +in BufferedRWPair.close(). + +.. + +.. bpo: 23622 +.. date: 7688 +.. nonce: 9-ZRqj +.. section: Library + +Unknown escapes in regular expressions that consist of ``'\'`` and ASCII +letter now raise a deprecation warning and will be forbidden in Python 3.6. + +.. + +.. bpo: 23671 +.. date: 7687 +.. nonce: zWPm-a +.. section: Library + +string.Template now allows specifying the "self" parameter as a keyword +argument. string.Formatter now allows specifying the "self" and the +"format_string" parameters as keyword arguments. + +.. + +.. bpo: 23502 +.. date: 7686 +.. nonce: AH20IQ +.. section: Library + +The pprint module now supports mapping proxies. + +.. + +.. bpo: 17530 +.. date: 7685 +.. nonce: PUp8rL +.. section: Library + +pprint now wraps long bytes objects and bytearrays. + +.. + +.. bpo: 22687 +.. date: 7684 +.. nonce: zEJPd9 +.. section: Library + +Fixed some corner cases in breaking words in tetxtwrap. Got rid of quadratic +complexity in breaking long words. + +.. + +.. bpo: 4727 +.. date: 7683 +.. nonce: iDQSpi +.. section: Library + +The copy module now uses pickle protocol 4 (PEP 3154) and supports copying +of instances of classes whose __new__ method takes keyword-only arguments. + +.. + +.. bpo: 23491 +.. date: 7682 +.. nonce: P_WKrt +.. section: Library + +Added a zipapp module to support creating executable zip file archives of +Python code. Registered ".pyz" and ".pyzw" extensions on Windows for these +archives (PEP 441). + +.. + +.. bpo: 23657 +.. date: 7681 +.. nonce: y1OaV- +.. section: Library + +Avoid explicit checks for str in zipapp, adding support for pathlib.Path +objects as arguments. + +.. + +.. bpo: 23688 +.. date: 7680 +.. nonce: d6LVy3 +.. section: Library + +Added support of arbitrary bytes-like objects and avoided unnecessary +copying of memoryview in gzip.GzipFile.write(). Original patch by Wolfgang +Maier. + +.. + +.. bpo: 23252 +.. date: 7679 +.. nonce: Goi18g +.. section: Library + +Added support for writing ZIP files to unseekable streams. + +.. + +.. bpo: 23647 +.. date: 7678 +.. nonce: pX2qrx +.. section: Library + +Increase impalib's MAXLINE to accommodate modern mailbox sizes. + +.. + +.. bpo: 23539 +.. date: 7677 +.. nonce: 5BVUim +.. section: Library + +If body is None, http.client.HTTPConnection.request now sets Content-Length +to 0 for PUT, POST, and PATCH headers to avoid 411 errors from some web +servers. + +.. + +.. bpo: 22351 +.. date: 7676 +.. nonce: agB8Y3 +.. section: Library + +The nntplib.NNTP constructor no longer leaves the connection and socket open +until the garbage collector cleans them up. Patch by Martin Panter. + +.. + +.. bpo: 23704 +.. date: 7675 +.. nonce: LTyyxL +.. section: Library + +collections.deque() objects now support methods for index(), insert(), and +copy(). This allows deques to be registered as a MutableSequence and it +improves their substitutability for lists. + +.. + +.. bpo: 23715 +.. date: 7674 +.. nonce: Yap3tU +.. section: Library + +:func:`signal.sigwaitinfo` and :func:`signal.sigtimedwait` are now retried +when interrupted by a signal not in the *sigset* parameter, if the signal +handler does not raise an exception. signal.sigtimedwait() recomputes the +timeout with a monotonic clock when it is retried. + +.. + +.. bpo: 23001 +.. date: 7673 +.. nonce: YSFnam +.. section: Library + +Few functions in modules mmap, ossaudiodev, socket, ssl, and codecs, that +accepted only read-only bytes-like object now accept writable bytes-like +object too. + +.. + +.. bpo: 23646 +.. date: 7672 +.. nonce: Tljc1S +.. section: Library + +If time.sleep() is interrupted by a signal, the sleep is now retried with +the recomputed delay, except if the signal handler raises an exception (PEP +475). + +.. + +.. bpo: 23136 +.. date: 7671 +.. nonce: 1bnpnb +.. section: Library + +_strptime now uniformly handles all days in week 0, including Dec 30 of +previous year. Based on patch by Jim Carroll. + +.. + +.. bpo: 23700 +.. date: 7670 +.. nonce: VfnWwi +.. section: Library + +Iterator of NamedTemporaryFile now keeps a reference to NamedTemporaryFile +instance. Patch by Bohuslav Kabrda. + +.. + +.. bpo: 22903 +.. date: 7669 +.. nonce: 2GjTHY +.. section: Library + +The fake test case created by unittest.loader when it fails importing a test +module is now picklable. + +.. + +.. bpo: 22181 +.. date: 7668 +.. nonce: 7mnxea +.. section: Library + +On Linux, os.urandom() now uses the new getrandom() syscall if available, +syscall introduced in the Linux kernel 3.17. It is more reliable and more +secure, because it avoids the need of a file descriptor and waits until the +kernel has enough entropy. + +.. + +.. bpo: 2211 +.. date: 7667 +.. nonce: 17Iz5U +.. section: Library + +Updated the implementation of the http.cookies.Morsel class. Setting +attributes key, value and coded_value directly now is deprecated. update() +and setdefault() now transform and check keys. Comparing for equality now +takes into account attributes key, value and coded_value. copy() now returns +a Morsel, not a dict. repr() now contains all attributes. Optimized +checking keys and quoting values. Added new tests. Original patch by Demian +Brecht. + +.. + +.. bpo: 18983 +.. date: 7666 +.. nonce: vF4i2S +.. section: Library + +Allow selection of output units in timeit. Patch by Julian Gindi. + +.. + +.. bpo: 23631 +.. date: 7665 +.. nonce: GfSqNI +.. section: Library + +Fix traceback.format_list when a traceback has been mutated. + +.. + +.. bpo: 23568 +.. date: 7664 +.. nonce: ffzJc7 +.. section: Library + +Add rdivmod support to MagicMock() objects. Patch by Håkan Lövdahl. + +.. + +.. bpo: 2052 +.. date: 7663 +.. nonce: ujNgna +.. section: Library + +Add charset parameter to HtmlDiff.make_file(). + +.. + +.. bpo: 23668 +.. date: 7662 +.. nonce: nF_jnN +.. section: Library + +Support os.truncate and os.ftruncate on Windows. + +.. + +.. bpo: 23138 +.. date: 7661 +.. nonce: 4vMoMZ +.. section: Library + +Fixed parsing cookies with absent keys or values in cookiejar. Patch by +Demian Brecht. + +.. + +.. bpo: 23051 +.. date: 7660 +.. nonce: Vi5tCZ +.. section: Library + +multiprocessing.Pool methods imap() and imap_unordered() now handle +exceptions raised by an iterator. Patch by Alon Diamant and Davin Potts. + +.. + +.. bpo: 23581 +.. date: 7659 +.. nonce: D4Lknl +.. section: Library + +Add matmul support to MagicMock. Patch by Håkan Lövdahl. + +.. + +.. bpo: 23566 +.. date: 7658 +.. nonce: F6LSyk +.. section: Library + +enable(), register(), dump_traceback() and dump_traceback_later() functions +of faulthandler now accept file descriptors. Patch by Wei Wu. + +.. + +.. bpo: 22928 +.. date: 7657 +.. nonce: q2TmY0 +.. section: Library + +Disabled HTTP header injections in http.client. Original patch by Demian +Brecht. + +.. + +.. bpo: 23615 +.. date: 7656 +.. nonce: 5Kx9k5 +.. section: Library + +Modules bz2, tarfile and tokenize now can be reloaded with imp.reload(). +Patch by Thomas Kluyver. + +.. + +.. bpo: 23605 +.. date: 7655 +.. nonce: JUOA_X +.. section: Library + +os.walk() now calls os.scandir() instead of os.listdir(). The usage of +os.scandir() reduces the number of calls to os.stat(). Initial patch written +by Ben Hoyt. + +.. + +.. bpo: 23585 +.. date: 7654 +.. nonce: DTIIoI +.. section: Build + +make patchcheck will ensure the interpreter is built. + +.. + +.. bpo: 23583 +.. date: 7653 +.. nonce: bY8AbM +.. section: Tests + +Added tests for standard IO streams in IDLE. + +.. + +.. bpo: 22289 +.. date: 7652 +.. nonce: ybGcC- +.. section: Tests + +Prevent test_urllib2net failures due to ftp connection timeout. + +.. + +.. bpo: 22826 +.. date: 7651 +.. nonce: 3bcoDL +.. section: Tools/Demos + +The result of open() in Tools/freeze/bkfile.py is now better compatible with +regular files (in particular it now supports the context management +protocol). diff --git a/Misc/NEWS.d/3.5.0a4.rst b/Misc/NEWS.d/3.5.0a4.rst new file mode 100644 index 0000000..50aa1aa --- /dev/null +++ b/Misc/NEWS.d/3.5.0a4.rst @@ -0,0 +1,665 @@ +.. bpo: 22980 +.. date: 7769 +.. nonce: Lu_y6y +.. release date: 2015-04-19 +.. section: Core and Builtins + +Under Linux, GNU/KFreeBSD and the Hurd, C extensions now include the +architecture triplet in the extension name, to make it easy to test builds +for different ABIs in the same working tree. Under OS X, the extension name +now includes PEP 3149-style information. + +.. + +.. bpo: 22631 +.. date: 7768 +.. nonce: nTx_ZF +.. section: Core and Builtins + +Added Linux-specific socket constant CAN_RAW_FD_FRAMES. Patch courtesy of +Joe Jevnik. + +.. + +.. bpo: 23731 +.. date: 7767 +.. nonce: FOXb37 +.. section: Core and Builtins + +Implement PEP 488: removal of .pyo files. + +.. + +.. bpo: 23726 +.. date: 7766 +.. nonce: ZopTQ0 +.. section: Core and Builtins + +Don't enable GC for user subclasses of non-GC types that don't add any new +fields. Patch by Eugene Toder. + +.. + +.. bpo: 23309 +.. date: 7765 +.. nonce: Wfnsnz +.. section: Core and Builtins + +Avoid a deadlock at shutdown if a daemon thread is aborted while it is +holding a lock to a buffered I/O object, and the main thread tries to use +the same I/O object (typically stdout or stderr). A fatal error is emitted +instead. + +.. + +.. bpo: 22977 +.. date: 7764 +.. nonce: hutEse +.. section: Core and Builtins + +Fixed formatting Windows error messages on Wine. Patch by Martin Panter. + +.. + +.. bpo: 23466 +.. date: 7763 +.. nonce: KhMltK +.. section: Core and Builtins + +%c, %o, %x, and %X in bytes formatting now raise TypeError on non-integer +input. + +.. + +.. bpo: 24044 +.. date: 7762 +.. nonce: H7vb6- +.. section: Core and Builtins + +Fix possible null pointer dereference in list.sort in out of memory +conditions. + +.. + +.. bpo: 21354 +.. date: 7761 +.. nonce: ZZTe1E +.. section: Core and Builtins + +PyCFunction_New function is exposed by python DLL again. + +.. + +.. bpo: 23840 +.. date: 7760 +.. nonce: mtSbqO +.. section: Library + +tokenize.open() now closes the temporary binary file on error to fix a +resource warning. + +.. + +.. bpo: 16914 +.. date: 7759 +.. nonce: GrP2Jr +.. section: Library + +new debuglevel 2 in smtplib adds timestamps to debug output. + +.. + +.. bpo: 7159 +.. date: 7758 +.. nonce: KCgOUm +.. section: Library + +urllib.request now supports sending auth credentials automatically after the +first 401. This enhancement is a superset of the enhancement from issue +#19494 and supersedes that change. + +.. + +.. bpo: 23703 +.. date: 7757 +.. nonce: kYybxm +.. section: Library + +Fix a regression in urljoin() introduced in 901e4e52b20a. Patch by Demian +Brecht. + +.. + +.. bpo: 4254 +.. date: 7756 +.. nonce: eUC_2H +.. section: Library + +Adds _curses.update_lines_cols(). Patch by Arnon Yaari + +.. + +.. bpo: 19933 +.. date: 7755 +.. nonce: Qq8utk +.. section: Library + +Provide default argument for ndigits in round. Patch by Vajrasky Kok. + +.. + +.. bpo: 23193 +.. date: 7754 +.. nonce: n5ahcG +.. section: Library + +Add a numeric_owner parameter to tarfile.TarFile.extract and +tarfile.TarFile.extractall. Patch by Michael Vogt and Eric Smith. + +.. + +.. bpo: 23342 +.. date: 7753 +.. nonce: CbSzYI +.. section: Library + +Add a subprocess.run() function than returns a CalledProcess instance for a +more consistent API than the existing call* functions. + +.. + +.. bpo: 21217 +.. date: 7752 +.. nonce: TkFTlk +.. section: Library + +inspect.getsourcelines() now tries to compute the start and end lines from +the code object, fixing an issue when a lambda function is used as decorator +argument. Patch by Thomas Ballinger and Allison Kaptur. + +.. + +.. bpo: 24521 +.. date: 7751 +.. nonce: bn4U-y +.. section: Library + +Fix possible integer overflows in the pickle module. + +.. + +.. bpo: 22931 +.. date: 7750 +.. nonce: 4CuWYD +.. section: Library + +Allow '[' and ']' in cookie values. + +.. + +.. bpo: 0 +.. date: 7749 +.. nonce: fgX8Qe +.. section: Library + +The keywords attribute of functools.partial is now always a dictionary. + +.. + +.. bpo: 23811 +.. date: 7748 +.. nonce: B6tzf9 +.. section: Library + +Add missing newline to the PyCompileError error message. Patch by Alex +Shkop. + +.. + +.. bpo: 21116 +.. date: 7747 +.. nonce: Orft3K +.. section: Library + +Avoid blowing memory when allocating a multiprocessing shared array that's +larger than 50% of the available RAM. Patch by Médéric Boquien. + +.. + +.. bpo: 22982 +.. date: 7746 +.. nonce: xYmG62 +.. section: Library + +Improve BOM handling when seeking to multiple positions of a writable text +file. + +.. + +.. bpo: 23464 +.. date: 7745 +.. nonce: _XGkBk +.. section: Library + +Removed deprecated asyncio JoinableQueue. + +.. + +.. bpo: 23529 +.. date: 7744 +.. nonce: Hr7AHH +.. section: Library + +Limit the size of decompressed data when reading from GzipFile, BZ2File or +LZMAFile. This defeats denial of service attacks using compressed bombs +(i.e. compressed payloads which decompress to a huge size). Patch by Martin +Panter and Nikolaus Rath. + +.. + +.. bpo: 21859 +.. date: 7743 +.. nonce: GYrUNP +.. section: Library + +Added Python implementation of io.FileIO. + +.. + +.. bpo: 23865 +.. date: 7742 +.. nonce: PtSLgU +.. section: Library + +close() methods in multiple modules now are idempotent and more robust at +shutdown. If they need to release multiple resources, all are released even +if errors occur. + +.. + +.. bpo: 23400 +.. date: 7741 +.. nonce: JSh9Z3 +.. section: Library + +Raise same exception on both Python 2 and 3 if sem_open is not available. +Patch by Davin Potts. + +.. + +.. bpo: 10838 +.. date: 7740 +.. nonce: p9tSPC +.. section: Library + +The subprocess now module includes SubprocessError and TimeoutError in its +list of exported names for the users wild enough to use ``from subprocess +import *``. + +.. + +.. bpo: 23411 +.. date: 7739 +.. nonce: 0im3Qw +.. section: Library + +Added DefragResult, ParseResult, SplitResult, DefragResultBytes, +ParseResultBytes, and SplitResultBytes to urllib.parse.__all__. Patch by +Martin Panter. + +.. + +.. bpo: 23881 +.. date: 7738 +.. nonce: yZjl4b +.. section: Library + +urllib.request.ftpwrapper constructor now closes the socket if the FTP +connection failed to fix a ResourceWarning. + +.. + +.. bpo: 23853 +.. date: 7737 +.. nonce: mNY1eI +.. section: Library + +:meth:`socket.socket.sendall` does no more reset the socket timeout each +time data is sent successfully. The socket timeout is now the maximum total +duration to send all data. + +.. + +.. bpo: 22721 +.. date: 7736 +.. nonce: MVfBL9 +.. section: Library + +An order of multiline pprint output of set or dict containing orderable and +non-orderable elements no longer depends on iteration order of set or dict. + +.. + +.. bpo: 15133 +.. date: 7735 +.. nonce: C0QfV8 +.. section: Library + +_tkinter.tkapp.getboolean() now supports Tcl_Obj and always returns bool. +tkinter.BooleanVar now validates input values (accepted bool, int, str, and +Tcl_Obj). tkinter.BooleanVar.get() now always returns bool. + +.. + +.. bpo: 10590 +.. date: 7734 +.. nonce: nkxXfU +.. section: Library + +xml.sax.parseString() now supports string argument. + +.. + +.. bpo: 23338 +.. date: 7733 +.. nonce: ZYMGN1 +.. section: Library + +Fixed formatting ctypes error messages on Cygwin. Patch by Makoto Kato. + +.. + +.. bpo: 15582 +.. date: 7732 +.. nonce: 26wJNk +.. section: Library + +inspect.getdoc() now follows inheritance chains. + +.. + +.. bpo: 2175 +.. date: 7731 +.. nonce: cHiVOp +.. section: Library + +SAX parsers now support a character stream of InputSource object. + +.. + +.. bpo: 16840 +.. date: 7730 +.. nonce: kKIhPm +.. section: Library + +Tkinter now supports 64-bit integers added in Tcl 8.4 and arbitrary +precision integers added in Tcl 8.5. + +.. + +.. bpo: 23834 +.. date: 7729 +.. nonce: fX3TF4 +.. section: Library + +Fix socket.sendto(), use the C Py_ssize_t type to store the result of +sendto() instead of the C int type. + +.. + +.. bpo: 23618 +.. date: 7728 +.. nonce: Of_q5t +.. section: Library + +:meth:`socket.socket.connect` now waits until the connection completes +instead of raising :exc:`InterruptedError` if the connection is interrupted +by signals, signal handlers don't raise an exception and the socket is +blocking or has a timeout. :meth:`socket.socket.connect` still raise +:exc:`InterruptedError` for non-blocking sockets. + +.. + +.. bpo: 21526 +.. date: 7727 +.. nonce: QQEXrR +.. section: Library + +Tkinter now supports new boolean type in Tcl 8.5. + +.. + +.. bpo: 23836 +.. date: 7726 +.. nonce: zrEmlR +.. section: Library + +Fix the faulthandler module to handle reentrant calls to its signal +handlers. + +.. + +.. bpo: 23838 +.. date: 7725 +.. nonce: IX6FPX +.. section: Library + +linecache now clears the cache and returns an empty result on MemoryError. + +.. + +.. bpo: 10395 +.. date: 7724 +.. nonce: fi_lZp +.. section: Library + +Added os.path.commonpath(). Implemented in posixpath and ntpath. Based on +patch by Rafik Draoui. + +.. + +.. bpo: 23611 +.. date: 7723 +.. nonce: QkBJVB +.. section: Library + +Serializing more "lookupable" objects (such as unbound methods or nested +classes) now are supported with pickle protocols < 4. + +.. + +.. bpo: 13583 +.. date: 7722 +.. nonce: -MPBjZ +.. section: Library + +sqlite3.Row now supports slice indexing. + +.. + +.. bpo: 18473 +.. date: 7721 +.. nonce: 89RHm- +.. section: Library + +Fixed 2to3 and 3to2 compatible pickle mappings. Fixed ambigious reverse +mappings. Added many new mappings. Import mapping is no longer applied to +modules already mapped with full name mapping. + +.. + +.. bpo: 23485 +.. date: 7720 +.. nonce: kQWN6L +.. section: Library + +select.select() is now retried automatically with the recomputed timeout +when interrupted by a signal, except if the signal handler raises an +exception. This change is part of the PEP 475. + +.. + +.. bpo: 23752 +.. date: 7719 +.. nonce: 5fbVNb +.. section: Library + +When built from an existing file descriptor, io.FileIO() now only calls +fstat() once. Before fstat() was called twice, which was not necessary. + +.. + +.. bpo: 23704 +.. date: 7718 +.. nonce: Ggjvm8 +.. section: Library + +collections.deque() objects now support __add__, __mul__, and __imul__(). + +.. + +.. bpo: 23171 +.. date: 7717 +.. nonce: b6PBzM +.. section: Library + +csv.Writer.writerow() now supports arbitrary iterables. + +.. + +.. bpo: 23745 +.. date: 7716 +.. nonce: E00Bml +.. section: Library + +The new email header parser now handles duplicate MIME parameter names +without error, similar to how get_param behaves. + +.. + +.. bpo: 22117 +.. date: 7715 +.. nonce: bTO0xx +.. section: Library + +Fix os.utime(), it now rounds the timestamp towards minus infinity (-inf) +instead of rounding towards zero. + +.. + +.. bpo: 23310 +.. date: 7714 +.. nonce: GXmFMR +.. section: Library + +Fix MagicMock's initializer to work with __methods__, just like +configure_mock(). Patch by Kasia Jachim. + +.. + +.. bpo: 23817 +.. date: 7713 +.. nonce: DTmVan +.. section: Build + +FreeBSD now uses "1.0" in the SOVERSION as other operating systems, instead +of just "1". + +.. + +.. bpo: 23501 +.. date: 7712 +.. nonce: iz10e6 +.. section: Build + +Argument Clinic now generates code into separate files by default. + +.. + +.. bpo: 23799 +.. date: 7711 +.. nonce: XU2xDw +.. section: Tests + +Added test.support.start_threads() for running and cleaning up multiple +threads. + +.. + +.. bpo: 22390 +.. date: 7710 +.. nonce: UPVFnq +.. section: Tests + +test.regrtest now emits a warning if temporary files or directories are left +after running a test. + +.. + +.. bpo: 18128 +.. date: 7709 +.. nonce: lx2V5a +.. section: Tools/Demos + +pygettext now uses standard +NNNN format in the POT-Creation-Date header. + +.. + +.. bpo: 23935 +.. date: 7708 +.. nonce: JSYowT +.. section: Tools/Demos + +Argument Clinic's understanding of format units accepting bytes, bytearrays, +and buffers is now consistent with both the documentation and the +implementation. + +.. + +.. bpo: 23944 +.. date: 7707 +.. nonce: Q8ZL2s +.. section: Tools/Demos + +Argument Clinic now wraps long impl prototypes at column 78. + +.. + +.. bpo: 20586 +.. date: 7706 +.. nonce: 7BiEkx +.. section: Tools/Demos + +Argument Clinic now ensures that functions without docstrings have +signatures. + +.. + +.. bpo: 23492 +.. date: 7705 +.. nonce: kjIcQW +.. section: Tools/Demos + +Argument Clinic now generates argument parsing code with PyArg_Parse instead +of PyArg_ParseTuple if possible. + +.. + +.. bpo: 23500 +.. date: 7704 +.. nonce: H6_dX_ +.. section: Tools/Demos + +Argument Clinic is now smarter about generating the "#ifndef" (empty) +definition of the methoddef macro: it's only generated once, even if +Argument Clinic processes the same symbol multiple times, and it's emitted +at the end of all processing rather than immediately after the first use. + +.. + +.. bpo: 23998 +.. date: 7703 +.. nonce: z7mlLW +.. section: C API + +PyImport_ReInitLock() now checks for lock allocation error diff --git a/Misc/NEWS.d/3.5.0b1.rst b/Misc/NEWS.d/3.5.0b1.rst new file mode 100644 index 0000000..e3c7ff7 --- /dev/null +++ b/Misc/NEWS.d/3.5.0b1.rst @@ -0,0 +1,848 @@ +.. bpo: 24276 +.. date: 7857 +.. nonce: awsxJJ +.. release date: 2015-05-24 +.. section: Core and Builtins + +Fixed optimization of property descriptor getter. + +.. + +.. bpo: 24268 +.. date: 7856 +.. nonce: nS7uea +.. section: Core and Builtins + +PEP 489: Multi-phase extension module initialization. Patch by Petr +Viktorin. + +.. + +.. bpo: 23955 +.. date: 7855 +.. nonce: hBHSaU +.. section: Core and Builtins + +Add pyvenv.cfg option to suppress registry/environment lookup for generating +sys.path on Windows. + +.. + +.. bpo: 24257 +.. date: 7854 +.. nonce: UBxshR +.. section: Core and Builtins + +Fixed system error in the comparison of faked types.SimpleNamespace. + +.. + +.. bpo: 22939 +.. date: 7853 +.. nonce: DWA9ls +.. section: Core and Builtins + +Fixed integer overflow in iterator object. Patch by Clement Rouault. + +.. + +.. bpo: 23985 +.. date: 7852 +.. nonce: eezPxO +.. section: Core and Builtins + +Fix a possible buffer overrun when deleting a slice from the front of a +bytearray and then appending some other bytes data. + +.. + +.. bpo: 24102 +.. date: 7851 +.. nonce: 9T6h3m +.. section: Core and Builtins + +Fixed exception type checking in standard error handlers. + +.. + +.. bpo: 15027 +.. date: 7850 +.. nonce: wi9sCd +.. section: Core and Builtins + +The UTF-32 encoder is now 3x to 7x faster. + +.. + +.. bpo: 23290 +.. date: 7849 +.. nonce: 57aqLU +.. section: Core and Builtins + +Optimize set_merge() for cases where the target is empty. (Contributed by +Serhiy Storchaka.) + +.. + +.. bpo: 2292 +.. date: 7848 +.. nonce: h4sibO +.. section: Core and Builtins + +PEP 448: Additional Unpacking Generalizations. + +.. + +.. bpo: 24096 +.. date: 7847 +.. nonce: a_Rap7 +.. section: Core and Builtins + +Make warnings.warn_explicit more robust against mutation of the +warnings.filters list. + +.. + +.. bpo: 23996 +.. date: 7846 +.. nonce: znqcT8 +.. section: Core and Builtins + +Avoid a crash when a delegated generator raises an unnormalized +StopIteration exception. Patch by Stefan Behnel. + +.. + +.. bpo: 23910 +.. date: 7845 +.. nonce: _gDzaj +.. section: Core and Builtins + +Optimize property() getter calls. Patch by Joe Jevnik. + +.. + +.. bpo: 23911 +.. date: 7844 +.. nonce: 0FnTHk +.. section: Core and Builtins + +Move path-based importlib bootstrap code to a separate frozen module. + +.. + +.. bpo: 24192 +.. date: 7843 +.. nonce: 6ZxJ_R +.. section: Core and Builtins + +Fix namespace package imports. + +.. + +.. bpo: 24022 +.. date: 7842 +.. nonce: 1l8YBm +.. section: Core and Builtins + +Fix tokenizer crash when processing undecodable source code. + +.. + +.. bpo: 9951 +.. date: 7841 +.. nonce: wGztNC +.. section: Core and Builtins + +Added a hex() method to bytes, bytearray, and memoryview. + +.. + +.. bpo: 22906 +.. date: 7840 +.. nonce: WN_kQ6 +.. section: Core and Builtins + +PEP 479: Change StopIteration handling inside generators. + +.. + +.. bpo: 24017 +.. date: 7839 +.. nonce: QJa1SC +.. section: Core and Builtins + +PEP 492: Coroutines with async and await syntax. + +.. + +.. bpo: 14373 +.. date: 7838 +.. nonce: 0sk6kE +.. section: Library + +Added C implementation of functools.lru_cache(). Based on patches by Matt +Joiner and Alexey Kachayev. + +.. + +.. bpo: 24230 +.. date: 7837 +.. nonce: b-kgme +.. section: Library + +The tempfile module now accepts bytes for prefix, suffix and dir parameters +and returns bytes in such situations (matching the os module APIs). + +.. + +.. bpo: 22189 +.. date: 7836 +.. nonce: 8epgat +.. section: Library + +collections.UserString now supports __getnewargs__(), __rmod__(), +casefold(), format_map(), isprintable(), and maketrans(). Patch by Joe +Jevnik. + +.. + +.. bpo: 24244 +.. date: 7835 +.. nonce: OKE_3R +.. section: Library + +Prevents termination when an invalid format string is encountered on Windows +in strftime. + +.. + +.. bpo: 23973 +.. date: 7834 +.. nonce: EK6awi +.. section: Library + +PEP 484: Add the typing module. + +.. + +.. bpo: 23086 +.. date: 7833 +.. nonce: Aix6Nv +.. section: Library + +The collections.abc.Sequence() abstract base class added *start* and *stop* +parameters to the index() mixin. Patch by Devin Jeanpierre. + +.. + +.. bpo: 20035 +.. date: 7832 +.. nonce: UNZzw6 +.. section: Library + +Replaced the ``tkinter._fix`` module used for setting up the Tcl/Tk +environment on Windows with a private function in the ``_tkinter`` module +that makes no permanent changes to the environment. + +.. + +.. bpo: 24257 +.. date: 7831 +.. nonce: L_efq0 +.. section: Library + +Fixed segmentation fault in sqlite3.Row constructor with faked cursor type. + +.. + +.. bpo: 15836 +.. date: 7830 +.. nonce: gU3Rmx +.. section: Library + +assertRaises(), assertRaisesRegex(), assertWarns() and assertWarnsRegex() +assertments now check the type of the first argument to prevent possible +user error. Based on patch by Daniel Wagner-Hall. + +.. + +.. bpo: 9858 +.. date: 7829 +.. nonce: uke9pa +.. section: Library + +Add missing method stubs to _io.RawIOBase. Patch by Laura Rupprecht. + +.. + +.. bpo: 22955 +.. date: 7828 +.. nonce: Jw_B9_ +.. section: Library + +attrgetter, itemgetter and methodcaller objects in the operator module now +support pickling. Added readable and evaluable repr for these objects. +Based on patch by Josh Rosenberg. + +.. + +.. bpo: 22107 +.. date: 7827 +.. nonce: 2F8k4W +.. section: Library + +tempfile.gettempdir() and tempfile.mkdtemp() now try again when a directory +with the chosen name already exists on Windows as well as on Unix. +tempfile.mkstemp() now fails early if parent directory is not valid (not +exists or is a file) on Windows. + +.. + +.. bpo: 23780 +.. date: 7826 +.. nonce: jFPVcN +.. section: Library + +Improved error message in os.path.join() with single argument. + +.. + +.. bpo: 6598 +.. date: 7825 +.. nonce: JdZNDt +.. section: Library + +Increased time precision and random number range in email.utils.make_msgid() +to strengthen the uniqueness of the message ID. + +.. + +.. bpo: 24091 +.. date: 7824 +.. nonce: Jw0-wj +.. section: Library + +Fixed various crashes in corner cases in C implementation of ElementTree. + +.. + +.. bpo: 21931 +.. date: 7823 +.. nonce: t6lGxY +.. section: Library + +msilib.FCICreate() now raises TypeError in the case of a bad argument +instead of a ValueError with a bogus FCI error number. Patch by Jeffrey +Armstrong. + +.. + +.. bpo: 13866 +.. date: 7822 +.. nonce: n5NAj0 +.. section: Library + +*quote_via* argument added to urllib.parse.urlencode. + +.. + +.. bpo: 20098 +.. date: 7821 +.. nonce: Y4otaf +.. section: Library + +New mangle_from policy option for email, default True for compat32, but +False for all other policies. + +.. + +.. bpo: 24211 +.. date: 7820 +.. nonce: j3Afpc +.. section: Library + +The email library now supports RFC 6532: it can generate headers using utf-8 +instead of encoded words. + +.. + +.. bpo: 16314 +.. date: 7819 +.. nonce: Xc4d1O +.. section: Library + +Added support for the LZMA compression in distutils. + +.. + +.. bpo: 21804 +.. date: 7818 +.. nonce: lEhTlc +.. section: Library + +poplib now supports RFC 6856 (UTF8). + +.. + +.. bpo: 18682 +.. date: 7817 +.. nonce: 6Pnfte +.. section: Library + +Optimized pprint functions for builtin scalar types. + +.. + +.. bpo: 22027 +.. date: 7816 +.. nonce: _aeUQS +.. section: Library + +smtplib now supports RFC 6531 (SMTPUTF8). + +.. + +.. bpo: 23488 +.. date: 7815 +.. nonce: 7gs3Cm +.. section: Library + +Random generator objects now consume 2x less memory on 64-bit. + +.. + +.. bpo: 1322 +.. date: 7814 +.. nonce: 495nFL +.. section: Library + +platform.dist() and platform.linux_distribution() functions are now +deprecated. Initial patch by Vajrasky Kok. + +.. + +.. bpo: 22486 +.. date: 7813 +.. nonce: Yxov5m +.. section: Library + +Added the math.gcd() function. The fractions.gcd() function now is +deprecated. Based on patch by Mark Dickinson. + +.. + +.. bpo: 24064 +.. date: 7812 +.. nonce: zXC7OL +.. section: Library + +Property() docstrings are now writeable. (Patch by Berker Peksag.) + +.. + +.. bpo: 22681 +.. date: 7811 +.. nonce: 2rIoA2 +.. section: Library + +Added support for the koi8_t encoding. + +.. + +.. bpo: 22682 +.. date: 7810 +.. nonce: cP4i3L +.. section: Library + +Added support for the kz1048 encoding. + +.. + +.. bpo: 23796 +.. date: 7809 +.. nonce: JJmUnc +.. section: Library + +peek and read1 methods of BufferedReader now raise ValueError if they called +on a closed object. Patch by John Hergenroeder. + +.. + +.. bpo: 21795 +.. date: 7808 +.. nonce: BDLMS4 +.. section: Library + +smtpd now supports the 8BITMIME extension whenever the new *decode_data* +constructor argument is set to False. + +.. + +.. bpo: 24155 +.. date: 7807 +.. nonce: FZx5c2 +.. section: Library + +optimize heapq.heapify() for better cache performance when heapifying large +lists. + +.. + +.. bpo: 21800 +.. date: 7806 +.. nonce: evGSKc +.. section: Library + +imaplib now supports RFC 5161 (enable), RFC 6855 (utf8/internationalized +email) and automatically encodes non-ASCII usernames and passwords to UTF8. + +.. + +.. bpo: 20274 +.. date: 7805 +.. nonce: uVHogg +.. section: Library + +When calling a _sqlite.Connection, it now complains if passed any keyword +arguments. Previously it silently ignored them. + +.. + +.. bpo: 20274 +.. date: 7804 +.. nonce: hBst4M +.. section: Library + +Remove ignored and erroneous "kwargs" parameters from three METH_VARARGS +methods on _sqlite.Connection. + +.. + +.. bpo: 24134 +.. date: 7803 +.. nonce: Ajw0S- +.. section: Library + +assertRaises(), assertRaisesRegex(), assertWarns() and assertWarnsRegex() +checks now emits a deprecation warning when callable is None or keyword +arguments except msg is passed in the context manager mode. + +.. + +.. bpo: 24018 +.. date: 7802 +.. nonce: hk7Rcn +.. section: Library + +Add a collections.abc.Generator abstract base class. Contributed by Stefan +Behnel. + +.. + +.. bpo: 23880 +.. date: 7801 +.. nonce: QtKupC +.. section: Library + +Tkinter's getint() and getdouble() now support Tcl_Obj. Tkinter's +getdouble() now supports any numbers (in particular int). + +.. + +.. bpo: 22619 +.. date: 7800 +.. nonce: 1gJEqV +.. section: Library + +Added negative limit support in the traceback module. Based on patch by +Dmitry Kazakov. + +.. + +.. bpo: 24094 +.. date: 7799 +.. nonce: 7T-u7k +.. section: Library + +Fix possible crash in json.encode with poorly behaved dict subclasses. + +.. + +.. bpo: 9246 +.. date: 7798 +.. nonce: oM-Ikk +.. section: Library + +On POSIX, os.getcwd() now supports paths longer than 1025 bytes. Patch +written by William Orr. + +.. + +.. bpo: 17445 +.. date: 7797 +.. nonce: Z-QYh5 +.. section: Library + +add difflib.diff_bytes() to support comparison of byte strings (fixes a +regression from Python 2). + +.. + +.. bpo: 23917 +.. date: 7796 +.. nonce: uMVPV7 +.. section: Library + +Fall back to sequential compilation when ProcessPoolExecutor doesn't exist. +Patch by Claudiu Popa. + +.. + +.. bpo: 23008 +.. date: 7795 +.. nonce: OZFCd- +.. section: Library + +Fixed resolving attributes with boolean value is False in pydoc. + +.. + +.. bpo: 0 +.. date: 7794 +.. nonce: 6tJNf2 +.. section: Library + +Fix asyncio issue 235: LifoQueue and PriorityQueue's put didn't increment +unfinished tasks (this bug was introduced when JoinableQueue was merged with +Queue). + +.. + +.. bpo: 23908 +.. date: 7793 +.. nonce: ATdNG- +.. section: Library + +os functions now reject paths with embedded null character on Windows +instead of silently truncating them. + +.. + +.. bpo: 23728 +.. date: 7792 +.. nonce: YBmQmV +.. section: Library + +binascii.crc_hqx() could return an integer outside of the range 0-0xffff for +empty data. + +.. + +.. bpo: 23887 +.. date: 7791 +.. nonce: _XpjPN +.. section: Library + +urllib.error.HTTPError now has a proper repr() representation. Patch by +Berker Peksag. + +.. + +.. bpo: 0 +.. date: 7790 +.. nonce: MjNdSC +.. section: Library + +asyncio: New event loop APIs: set_task_factory() and get_task_factory(). + +.. + +.. bpo: 0 +.. date: 7789 +.. nonce: rVcHXp +.. section: Library + +asyncio: async() function is deprecated in favour of ensure_future(). + +.. + +.. bpo: 24178 +.. date: 7788 +.. nonce: -enO4y +.. section: Library + +asyncio.Lock, Condition, Semaphore, and BoundedSemaphore support new 'async +with' syntax. Contributed by Yury Selivanov. + +.. + +.. bpo: 24179 +.. date: 7787 +.. nonce: wDy_WZ +.. section: Library + +Support 'async for' for asyncio.StreamReader. Contributed by Yury Selivanov. + +.. + +.. bpo: 24184 +.. date: 7786 +.. nonce: El74TU +.. section: Library + +Add AsyncIterator and AsyncIterable ABCs to collections.abc. Contributed by +Yury Selivanov. + +.. + +.. bpo: 22547 +.. date: 7785 +.. nonce: _ikCaj +.. section: Library + +Implement informative __repr__ for inspect.BoundArguments. Contributed by +Yury Selivanov. + +.. + +.. bpo: 24190 +.. date: 7784 +.. nonce: 1a3vWW +.. section: Library + +Implement inspect.BoundArgument.apply_defaults() method. Contributed by Yury +Selivanov. + +.. + +.. bpo: 20691 +.. date: 7783 +.. nonce: -raLyf +.. section: Library + +Add 'follow_wrapped' argument to inspect.Signature.from_callable() and +inspect.signature(). Contributed by Yury Selivanov. + +.. + +.. bpo: 24248 +.. date: 7782 +.. nonce: IxWooo +.. section: Library + +Deprecate inspect.Signature.from_function() and +inspect.Signature.from_builtin(). + +.. + +.. bpo: 23898 +.. date: 7781 +.. nonce: OSiZie +.. section: Library + +Fix inspect.classify_class_attrs() to support attributes with overloaded +__eq__ and __bool__. Patch by Mike Bayer. + +.. + +.. bpo: 24298 +.. date: 7780 +.. nonce: u_TaxI +.. section: Library + +Fix inspect.signature() to correctly unwrap wrappers around bound methods. + +.. + +.. bpo: 23184 +.. date: 7779 +.. nonce: G_Cp9v +.. section: IDLE + +remove unused names and imports in idlelib. Initial patch by Al Sweigart. + +.. + +.. bpo: 21520 +.. date: 7778 +.. nonce: FKtvmQ +.. section: Tests + +test_zipfile no longer fails if the word 'bad' appears anywhere in the name +of the current directory. + +.. + +.. bpo: 9517 +.. date: 7777 +.. nonce: W0Ag2V +.. section: Tests + +Move script_helper into the support package. Patch by Christie Wilson. + +.. + +.. bpo: 22155 +.. date: 7776 +.. nonce: 9EbOit +.. section: Documentation + +Add File Handlers subsection with createfilehandler to tkinter doc. Remove +obsolete example from FAQ. Patch by Martin Panter. + +.. + +.. bpo: 24029 +.. date: 7775 +.. nonce: M2Bnks +.. section: Documentation + +Document the name binding behavior for submodule imports. + +.. + +.. bpo: 24077 +.. date: 7774 +.. nonce: 2Og2j- +.. section: Documentation + +Fix typo in man page for -I command option: -s, not -S + +.. + +.. bpo: 24000 +.. date: 7773 +.. nonce: MJyXRr +.. section: Tools/Demos + +Improved Argument Clinic's mapping of converters to legacy "format units". +Updated the documentation to match. + +.. + +.. bpo: 24001 +.. date: 7772 +.. nonce: m74vst +.. section: Tools/Demos + +Argument Clinic converters now use accept={type} instead of types={'type'} +to specify the types the converter accepts. + +.. + +.. bpo: 23330 +.. date: 7771 +.. nonce: LTlKDp +.. section: Tools/Demos + +h2py now supports arbitrary filenames in #include. + +.. + +.. bpo: 24031 +.. date: 7770 +.. nonce: duGo88 +.. section: Tools/Demos + +make patchcheck now supports git checkouts, too. diff --git a/Misc/NEWS.d/3.5.0b2.rst b/Misc/NEWS.d/3.5.0b2.rst new file mode 100644 index 0000000..230e68a --- /dev/null +++ b/Misc/NEWS.d/3.5.0b2.rst @@ -0,0 +1,104 @@ +.. bpo: 24284 +.. date: 7868 +.. nonce: NvtEnc +.. release date: 2015-05-31 +.. section: Core and Builtins + +The startswith and endswith methods of the str class no longer return True +when finding the empty string and the indexes are completely out of range. + +.. + +.. bpo: 24115 +.. date: 7867 +.. nonce: y9e_MO +.. section: Core and Builtins + +Update uses of PyObject_IsTrue(), PyObject_Not(), PyObject_IsInstance(), +PyObject_RichCompareBool() and _PyDict_Contains() to check for and handle +errors correctly. + +.. + +.. bpo: 24328 +.. date: 7866 +.. nonce: 5gL8or +.. section: Core and Builtins + +Fix importing one character extension modules. + +.. + +.. bpo: 11205 +.. date: 7865 +.. nonce: bikrRP +.. section: Core and Builtins + +In dictionary displays, evaluate the key before the value. + +.. + +.. bpo: 24285 +.. date: 7864 +.. nonce: wvJumr +.. section: Core and Builtins + +Fixed regression that prevented importing extension modules from inside +packages. Patch by Petr Viktorin. + +.. + +.. bpo: 23247 +.. date: 7863 +.. nonce: nN-K74 +.. section: Library + +Fix a crash in the StreamWriter.reset() of CJK codecs. + +.. + +.. bpo: 24270 +.. date: 7862 +.. nonce: M2rJNs +.. section: Library + +Add math.isclose() and cmath.isclose() functions as per PEP 485. Contributed +by Chris Barker and Tal Einat. + +.. + +.. bpo: 5633 +.. date: 7861 +.. nonce: JNzKZq +.. section: Library + +Fixed timeit when the statement is a string and the setup is not. + +.. + +.. bpo: 24326 +.. date: 7860 +.. nonce: 4t_6Gy +.. section: Library + +Fixed audioop.ratecv() with non-default weightB argument. Original patch by +David Moore. + +.. + +.. bpo: 16991 +.. date: 7859 +.. nonce: 19_Zmj +.. section: Library + +Add a C implementation of OrderedDict. + +.. + +.. bpo: 23934 +.. date: 7858 +.. nonce: esb-45 +.. section: Library + +Fix inspect.signature to fail correctly for builtin types lacking signature +information. Initial patch by James Powell. diff --git a/Misc/NEWS.d/3.5.0b3.rst b/Misc/NEWS.d/3.5.0b3.rst new file mode 100644 index 0000000..4081dd5 --- /dev/null +++ b/Misc/NEWS.d/3.5.0b3.rst @@ -0,0 +1,273 @@ +.. bpo: 24467 +.. date: 7896 +.. nonce: BAJ80- +.. release date: 2015-07-05 +.. section: Core and Builtins + +Fixed possible buffer over-read in bytearray. The bytearray object now +always allocates place for trailing null byte and it's buffer now is always +null-terminated. + +.. + +.. bpo: 0 +.. date: 7895 +.. nonce: 944IUY +.. section: Core and Builtins + +Upgrade to Unicode 8.0.0. + +.. + +.. bpo: 24345 +.. date: 7894 +.. nonce: fVcTaB +.. section: Core and Builtins + +Add Py_tp_finalize slot for the stable ABI. + +.. + +.. bpo: 24400 +.. date: 7893 +.. nonce: 2mNeD8 +.. section: Core and Builtins + +Introduce a distinct type for PEP 492 coroutines; add types.CoroutineType, +inspect.getcoroutinestate, inspect.getcoroutinelocals; coroutines no longer +use CO_GENERATOR flag; sys.set_coroutine_wrapper works only for 'async def' +coroutines; inspect.iscoroutine no longer uses collections.abc.Coroutine, +it's intended to test for pure 'async def' coroutines only; add new opcode: +GET_YIELD_FROM_ITER; fix generators wrapper used in types.coroutine to be +instance of collections.abc.Generator; collections.abc.Awaitable and +collections.abc.Coroutine can no longer be used to detect generator-based +coroutines--use inspect.isawaitable instead. + +.. + +.. bpo: 24450 +.. date: 7892 +.. nonce: lF0S5c +.. section: Core and Builtins + +Add gi_yieldfrom to generators and cr_await to coroutines. Contributed by +Benno Leslie and Yury Selivanov. + +.. + +.. bpo: 19235 +.. date: 7891 +.. nonce: 0kW4n5 +.. section: Core and Builtins + +Add new RecursionError exception. Patch by Georg Brandl. + +.. + +.. bpo: 21750 +.. date: 7890 +.. nonce: _Ycvgi +.. section: Library + +mock_open.read_data can now be read from each instance, as it could in +Python 3.3. + +.. + +.. bpo: 24552 +.. date: 7889 +.. nonce: VTO6sf +.. section: Library + +Fix use after free in an error case of the _pickle module. + +.. + +.. bpo: 24514 +.. date: 7888 +.. nonce: _xRb2r +.. section: Library + +tarfile now tolerates number fields consisting of only whitespace. + +.. + +.. bpo: 19176 +.. date: 7887 +.. nonce: 8V6nOK +.. section: Library + +Fixed doctype() related bugs in C implementation of ElementTree. A +deprecation warning no longer issued by XMLParser subclass with default +doctype() method. Direct call of doctype() now issues a warning. Parser's +doctype() now is not called if target's doctype() is called. Based on patch +by Martin Panter. + +.. + +.. bpo: 20387 +.. date: 7886 +.. nonce: aAbWbQ +.. section: Library + +Restore semantic round-trip correctness in tokenize/untokenize for tab- +indented blocks. + +.. + +.. bpo: 24456 +.. date: 7885 +.. nonce: yYSd2u +.. section: Library + +Fixed possible buffer over-read in adpcm2lin() and lin2adpcm() functions of +the audioop module. + +.. + +.. bpo: 24336 +.. date: 7884 +.. nonce: 4a5y1m +.. section: Library + +The contextmanager decorator now works with functions with keyword arguments +called "func" and "self". Patch by Martin Panter. + +.. + +.. bpo: 24522 +.. date: 7883 +.. nonce: PkcqCA +.. section: Library + +Fix possible integer overflow in json accelerator module. + +.. + +.. bpo: 24489 +.. date: 7882 +.. nonce: GJnMcW +.. section: Library + +ensure a previously set C errno doesn't disturb cmath.polar(). + +.. + +.. bpo: 24408 +.. date: 7881 +.. nonce: vPb5UK +.. section: Library + +Fixed AttributeError in measure() and metrics() methods of tkinter.Font. + +.. + +.. bpo: 14373 +.. date: 7880 +.. nonce: CTYZ4J +.. section: Library + +C implementation of functools.lru_cache() now can be used with methods. + +.. + +.. bpo: 24347 +.. date: 7879 +.. nonce: CPPDb8 +.. section: Library + +Set KeyError if PyDict_GetItemWithError returns NULL. + +.. + +.. bpo: 24348 +.. date: 7878 +.. nonce: U11rhr +.. section: Library + +Drop superfluous incref/decref. + +.. + +.. bpo: 24359 +.. date: 7877 +.. nonce: -IRNG9 +.. section: Library + +Check for changed OrderedDict size during iteration. + +.. + +.. bpo: 24368 +.. date: 7876 +.. nonce: 550kDT +.. section: Library + +Support keyword arguments in OrderedDict methods. + +.. + +.. bpo: 24362 +.. date: 7875 +.. nonce: cHYce5 +.. section: Library + +Simplify the C OrderedDict fast nodes resize logic. + +.. + +.. bpo: 24377 +.. date: 7874 +.. nonce: Gp1Bqr +.. section: Library + +Fix a ref leak in OrderedDict.__repr__. + +.. + +.. bpo: 24369 +.. date: 7873 +.. nonce: qFl7lZ +.. section: Library + +Defend against key-changes during iteration. + +.. + +.. bpo: 24373 +.. date: 7872 +.. nonce: 6TL2XG +.. section: Tests + +_testmultiphase and xxlimited now use tp_traverse and tp_finalize to avoid +reference leaks encountered when combining tp_dealloc with PyType_FromSpec +(see issue #16690 for details) + +.. + +.. bpo: 24458 +.. date: 7871 +.. nonce: 1egApX +.. section: Documentation + +Update documentation to cover multi-phase initialization for extension +modules (PEP 489). Patch by Petr Viktorin. + +.. + +.. bpo: 24351 +.. date: 7870 +.. nonce: XeSVl5 +.. section: Documentation + +Clarify what is meant by "identifier" in the context of string.Template +instances. + +.. + +.. bpo: 24432 +.. date: 7869 +.. nonce: IvUSiN +.. section: Build + +Update Windows builds and OS X 10.5 installer to use OpenSSL 1.0.2c. diff --git a/Misc/NEWS.d/3.5.0b4.rst b/Misc/NEWS.d/3.5.0b4.rst new file mode 100644 index 0000000..436981c --- /dev/null +++ b/Misc/NEWS.d/3.5.0b4.rst @@ -0,0 +1,255 @@ +.. bpo: 23573 +.. date: 7923 +.. nonce: HdJPs7 +.. release date: 2015-07-26 +.. section: Core and Builtins + +Restored optimization of bytes.rfind() and bytearray.rfind() for single-byte +argument on Linux. + +.. + +.. bpo: 24569 +.. date: 7922 +.. nonce: bqh6PQ +.. section: Core and Builtins + +Make PEP 448 dictionary evaluation more consistent. + +.. + +.. bpo: 24583 +.. date: 7921 +.. nonce: Ooq0Tn +.. section: Core and Builtins + +Fix crash when set is mutated while being updated. + +.. + +.. bpo: 24407 +.. date: 7920 +.. nonce: GmCBB3 +.. section: Core and Builtins + +Fix crash when dict is mutated while being updated. + +.. + +.. bpo: 24619 +.. date: 7919 +.. nonce: cnfZGo +.. section: Core and Builtins + +New approach for tokenizing async/await. As a consequence, it is now +possible to have one-line 'async def foo(): await ..' functions. + +.. + +.. bpo: 24687 +.. date: 7918 +.. nonce: 0UaXFe +.. section: Core and Builtins + +Plug refleak on SyntaxError in function parameters annotations. + +.. + +.. bpo: 15944 +.. date: 7917 +.. nonce: 4GuwqX +.. section: Core and Builtins + +memoryview: Allow arbitrary formats when casting to bytes. Patch by Martin +Panter. + +.. + +.. bpo: 23441 +.. date: 7916 +.. nonce: JXt2Yt +.. section: Library + +rcompleter now prints a tab character instead of displaying possible +completions for an empty word. Initial patch by Martin Sekera. + +.. + +.. bpo: 24683 +.. date: 7915 +.. nonce: aJdWEv +.. section: Library + +Fixed crashes in _json functions called with arguments of inappropriate +type. + +.. + +.. bpo: 21697 +.. date: 7914 +.. nonce: jpATha +.. section: Library + +shutil.copytree() now correctly handles symbolic links that point to +directories. Patch by Eduardo Seabra and Thomas Kluyver. + +.. + +.. bpo: 14373 +.. date: 7913 +.. nonce: Je0yDg +.. section: Library + +Fixed segmentation fault when gc.collect() is called during constructing +lru_cache (C implementation). + +.. + +.. bpo: 24695 +.. date: 7912 +.. nonce: QjZzFb +.. section: Library + +Fix a regression in traceback.print_exception(). If exc_traceback is None +we shouldn't print a traceback header like described in the documentation. + +.. + +.. bpo: 24620 +.. date: 7911 +.. nonce: rrnxB- +.. section: Library + +Random.setstate() now validates the value of state last element. + +.. + +.. bpo: 22485 +.. date: 7910 +.. nonce: HvJf6T +.. section: Library + +Fixed an issue that caused `inspect.getsource` to return incorrect results +on nested functions. + +.. + +.. bpo: 22153 +.. date: 7909 +.. nonce: 6n6yld +.. section: Library + +Improve unittest docs. Patch from Martin Panter and evilzero. + +.. + +.. bpo: 24580 +.. date: 7908 +.. nonce: AGi4Gm +.. section: Library + +Symbolic group references to open group in re patterns now are explicitly +forbidden as well as numeric group references. + +.. + +.. bpo: 24206 +.. date: 7907 +.. nonce: ffkVHH +.. section: Library + +Fixed __eq__ and __ne__ methods of inspect classes. + +.. + +.. bpo: 24631 +.. date: 7906 +.. nonce: uljPxM +.. section: Library + +Fixed regression in the timeit module with multiline setup. + +.. + +.. bpo: 18622 +.. date: 7905 +.. nonce: i6nCCW +.. section: Library + +unittest.mock.mock_open().reset_mock would recurse infinitely. Patch from +Nicola Palumbo and Laurent De Buyst. + +.. + +.. bpo: 23661 +.. date: 7904 +.. nonce: 5VHJmh +.. section: Library + +unittest.mock side_effects can now be exceptions again. This was a +regression vs Python 3.4. Patch from Ignacio Rossi + +.. + +.. bpo: 24608 +.. date: 7903 +.. nonce: 0TndL0 +.. section: Library + +chunk.Chunk.read() now always returns bytes, not str. + +.. + +.. bpo: 18684 +.. date: 7902 +.. nonce: S2es0F +.. section: Library + +Fixed reading out of the buffer in the re module. + +.. + +.. bpo: 24259 +.. date: 7901 +.. nonce: vMAi1A +.. section: Library + +tarfile now raises a ReadError if an archive is truncated inside a data +segment. + +.. + +.. bpo: 15014 +.. date: 7900 +.. nonce: hwXwCH +.. section: Library + +SMTP.auth() and SMTP.login() now support RFC 4954's optional initial- +response argument to the SMTP AUTH command. + +.. + +.. bpo: 24669 +.. date: 7899 +.. nonce: kFThK0 +.. section: Library + +Fix inspect.getsource() for 'async def' functions. Patch by Kai Groner. + +.. + +.. bpo: 24688 +.. date: 7898 +.. nonce: -yWfcO +.. section: Library + +ast.get_docstring() for 'async def' functions. + +.. + +.. bpo: 24603 +.. date: 7897 +.. nonce: PyHyF5 +.. section: Build + +Update Windows builds and OS X 10.5 installer to use OpenSSL 1.0.2d. diff --git a/Misc/NEWS.d/3.5.0rc1.rst b/Misc/NEWS.d/3.5.0rc1.rst new file mode 100644 index 0000000..8b93ea4 --- /dev/null +++ b/Misc/NEWS.d/3.5.0rc1.rst @@ -0,0 +1,241 @@ +.. bpo: 24667 +.. date: 7948 +.. nonce: tdwszf +.. release date: 2015-08-09 +.. section: Core and Builtins + +Resize odict in all cases that the underlying dict resizes. + +.. + +.. bpo: 24824 +.. date: 7947 +.. nonce: Eoc4lq +.. section: Library + +Signatures of codecs.encode() and codecs.decode() now are compatible with +pydoc. + +.. + +.. bpo: 24634 +.. date: 7946 +.. nonce: 7bnVgr +.. section: Library + +Importing uuid should not try to load libc on Windows + +.. + +.. bpo: 24798 +.. date: 7945 +.. nonce: zDXL5R +.. section: Library + +_msvccompiler.py doesn't properly support manifests + +.. + +.. bpo: 4395 +.. date: 7944 +.. nonce: JpT0k7 +.. section: Library + +Better testing and documentation of binary operators. Patch by Martin +Panter. + +.. + +.. bpo: 23973 +.. date: 7943 +.. nonce: wT59Vh +.. section: Library + +Update typing.py from GitHub repo. + +.. + +.. bpo: 23004 +.. date: 7942 +.. nonce: xswcPm +.. section: Library + +mock_open() now reads binary data correctly when the type of read_data is +bytes. Initial patch by Aaron Hill. + +.. + +.. bpo: 23888 +.. date: 7941 +.. nonce: 7gw4oO +.. section: Library + +Handle fractional time in cookie expiry. Patch by ssh. + +.. + +.. bpo: 23652 +.. date: 7940 +.. nonce: DKQ_7t +.. section: Library + +Make it possible to compile the select module against the libc headers from +the Linux Standard Base, which do not include some EPOLL macros. Patch by +Matt Frank. + +.. + +.. bpo: 22932 +.. date: 7939 +.. nonce: mPclSJ +.. section: Library + +Fix timezones in email.utils.formatdate. Patch from Dmitry Shachnev. + +.. + +.. bpo: 23779 +.. date: 7938 +.. nonce: ET4JJP +.. section: Library + +imaplib raises TypeError if authenticator tries to abort. Patch from Craig +Holmquist. + +.. + +.. bpo: 23319 +.. date: 7937 +.. nonce: FXyUH- +.. section: Library + +Fix ctypes.BigEndianStructure, swap correctly bytes. Patch written by +Matthieu Gautier. + +.. + +.. bpo: 23254 +.. date: 7936 +.. nonce: zNiy1X +.. section: Library + +Document how to close the TCPServer listening socket. Patch from Martin +Panter. + +.. + +.. bpo: 19450 +.. date: 7935 +.. nonce: VG7T-L +.. section: Library + +Update Windows and OS X installer builds to use SQLite 3.8.11. + +.. + +.. bpo: 17527 +.. date: 7934 +.. nonce: ve9fyw +.. section: Library + +Add PATCH to wsgiref.validator. Patch from Luca Sbardella. + +.. + +.. bpo: 24791 +.. date: 7933 +.. nonce: Ok-3nA +.. section: Library + +Fix grammar regression for call syntax: 'g(\*a or b)'. + +.. + +.. bpo: 23672 +.. date: 7932 +.. nonce: 8td2se +.. section: IDLE + +Allow Idle to edit and run files with astral chars in name. Patch by Mohd +Sanad Zaki Rizvi. + +.. + +.. bpo: 24745 +.. date: 7931 +.. nonce: edbziT +.. section: IDLE + +Idle editor default font. Switch from Courier to platform-sensitive +TkFixedFont. This should not affect current customized font selections. If +there is a problem, edit $HOME/.idlerc/config-main.cfg and remove 'fontxxx' +entries from [Editor Window]. Patch by Mark Roseman. + +.. + +.. bpo: 21192 +.. date: 7930 +.. nonce: CdbipH +.. section: IDLE + +Idle editor. When a file is run, put its name in the restart bar. Do not +print false prompts. Original patch by Adnan Umer. + +.. + +.. bpo: 13884 +.. date: 7929 +.. nonce: vVcO1E +.. section: IDLE + +Idle menus. Remove tearoff lines. Patch by Roger Serwy. + +.. + +.. bpo: 24129 +.. date: 7928 +.. nonce: Imr54z +.. section: Documentation + +Clarify the reference documentation for name resolution. This includes +removing the assumption that readers will be familiar with the name +resolution scheme Python used prior to the introduction of lexical scoping +for function namespaces. Patch by Ivan Levkivskyi. + +.. + +.. bpo: 20769 +.. date: 7927 +.. nonce: ZUc9z9 +.. section: Documentation + +Improve reload() docs. Patch by Dorian Pula. + +.. + +.. bpo: 23589 +.. date: 7926 +.. nonce: rjU421 +.. section: Documentation + +Remove duplicate sentence from the FAQ. Patch by Yongzhi Pan. + +.. + +.. bpo: 24729 +.. date: 7925 +.. nonce: PH3A9p +.. section: Documentation + +Correct IO tutorial to match implementation regarding encoding parameter to +open function. + +.. + +.. bpo: 24751 +.. date: 7924 +.. nonce: pL2pbj +.. section: Tests + +When running regrtest with the ``-w`` command line option, a test run is no +longer marked as a failure if all tests succeed when re-run. diff --git a/Misc/NEWS.d/3.5.0rc2.rst b/Misc/NEWS.d/3.5.0rc2.rst new file mode 100644 index 0000000..53f10ea --- /dev/null +++ b/Misc/NEWS.d/3.5.0rc2.rst @@ -0,0 +1,56 @@ +.. bpo: 24769 +.. date: 7954 +.. nonce: XgRA0n +.. release date: 2015-08-25 +.. section: Core and Builtins + +Interpreter now starts properly when dynamic loading is disabled. Patch by +Petr Viktorin. + +.. + +.. bpo: 21167 +.. date: 7953 +.. nonce: uom-Dq +.. section: Core and Builtins + +NAN operations are now handled correctly when python is compiled with ICC +even if -fp-model strict is not specified. + +.. + +.. bpo: 24492 +.. date: 7952 +.. nonce: LKDAIu +.. section: Core and Builtins + +A "package" lacking a __name__ attribute when trying to perform a ``from .. +import ...`` statement will trigger an ImportError instead of an +AttributeError. + +.. + +.. bpo: 24847 +.. date: 7951 +.. nonce: SHiiO_ +.. section: Library + +Removes vcruntime140.dll dependency from Tcl/Tk. + +.. + +.. bpo: 24839 +.. date: 7950 +.. nonce: 7_iQZl +.. section: Library + +platform._syscmd_ver raises DeprecationWarning + +.. + +.. bpo: 24867 +.. date: 7949 +.. nonce: rxJIl7 +.. section: Library + +Fix Task.get_stack() for 'async def' coroutines diff --git a/Misc/NEWS.d/3.5.0rc3.rst b/Misc/NEWS.d/3.5.0rc3.rst new file mode 100644 index 0000000..d49d288 --- /dev/null +++ b/Misc/NEWS.d/3.5.0rc3.rst @@ -0,0 +1,76 @@ +.. bpo: 24305 +.. date: 7962 +.. nonce: QeF4A8 +.. release date: 2015-09-07 +.. section: Core and Builtins + +Prevent import subsystem stack frames from being counted by the +warnings.warn(stacklevel=) parameter. + +.. + +.. bpo: 24912 +.. date: 7961 +.. nonce: ubSi5J +.. section: Core and Builtins + +Prevent __class__ assignment to immutable built-in objects. + +.. + +.. bpo: 24975 +.. date: 7960 +.. nonce: 2gLdfN +.. section: Core and Builtins + +Fix AST compilation for PEP 448 syntax. + +.. + +.. bpo: 24917 +.. date: 7959 +.. nonce: xaQocz +.. section: Library + +time_strftime() buffer over-read. + +.. + +.. bpo: 24748 +.. date: 7958 +.. nonce: 83NuO8 +.. section: Library + +To resolve a compatibility problem found with py2exe and pywin32, +imp.load_dynamic() once again ignores previously loaded modules to support +Python modules replacing themselves with extension modules. Patch by Petr +Viktorin. + +.. + +.. bpo: 24635 +.. date: 7957 +.. nonce: EiJPPf +.. section: Library + +Fixed a bug in typing.py where isinstance([], typing.Iterable) would return +True once, then False on subsequent calls. + +.. + +.. bpo: 24989 +.. date: 7956 +.. nonce: 9BJLiy +.. section: Library + +Fixed buffer overread in BytesIO.readline() if a position is set beyond +size. Based on patch by John Leitch. + +.. + +.. bpo: 24913 +.. date: 7955 +.. nonce: p2ZAJ4 +.. section: Library + +Fix overrun error in deque.index(). Found by John Leitch and Bryce Darling. diff --git a/Misc/NEWS.d/3.5.0rc4.rst b/Misc/NEWS.d/3.5.0rc4.rst new file mode 100644 index 0000000..3800000 --- /dev/null +++ b/Misc/NEWS.d/3.5.0rc4.rst @@ -0,0 +1,17 @@ +.. bpo: 25029 +.. date: 7964 +.. nonce: Zf97rk +.. release date: 2015-09-09 +.. section: Library + +Fixes MemoryError in test_strptime. + +.. + +.. bpo: 25027 +.. date: 7963 +.. nonce: Zaib78 +.. section: Build + +Reverts partial-static build options and adds vcruntime140.dll to Windows +installation. diff --git a/Misc/NEWS.d/3.5.1.rst b/Misc/NEWS.d/3.5.1.rst new file mode 100644 index 0000000..49f503a --- /dev/null +++ b/Misc/NEWS.d/3.5.1.rst @@ -0,0 +1,17 @@ +.. bpo: 25709 +.. date: 8112 +.. nonce: OPX2TS +.. release date: 2015-12-06 +.. section: Core and Builtins + +Fixed problem with in-place string concatenation and utf-8 cache. + +.. + +.. bpo: 25715 +.. date: 8111 +.. nonce: 3LLYLj +.. section: Windows + +Python 3.5.1 installer shows wrong upgrade path and incorrect logic for +launcher detection. diff --git a/Misc/NEWS.d/3.5.1rc1.rst b/Misc/NEWS.d/3.5.1rc1.rst new file mode 100644 index 0000000..8767256 --- /dev/null +++ b/Misc/NEWS.d/3.5.1rc1.rst @@ -0,0 +1,1451 @@ +.. bpo: 25630 +.. date: 8110 +.. nonce: ZxzcoY +.. release date: 2015-11-22 +.. section: Core and Builtins + +Fix a possible segfault during argument parsing in functions that accept +filesystem paths. + +.. + +.. bpo: 23564 +.. date: 8109 +.. nonce: XHarGG +.. section: Core and Builtins + +Fixed a partially broken sanity check in the _posixsubprocess internals +regarding how fds_to_pass were passed to the child. The bug had no actual +impact as subprocess.py already avoided it. + +.. + +.. bpo: 25388 +.. date: 8108 +.. nonce: zm3uuQ +.. section: Core and Builtins + +Fixed tokenizer crash when processing undecodable source code with a null +byte. + +.. + +.. bpo: 25462 +.. date: 8107 +.. nonce: eXDzgO +.. section: Core and Builtins + +The hash of the key now is calculated only once in most operations in C +implementation of OrderedDict. + +.. + +.. bpo: 22995 +.. date: 8106 +.. nonce: 90kpuP +.. section: Core and Builtins + +Default implementation of __reduce__ and __reduce_ex__ now rejects builtin +types with not defined __new__. + +.. + +.. bpo: 25555 +.. date: 8105 +.. nonce: MUpG-j +.. section: Core and Builtins + +Fix parser and AST: fill lineno and col_offset of "arg" node when compiling +AST from Python objects. + +.. + +.. bpo: 24802 +.. date: 8104 +.. nonce: Qie066 +.. section: Core and Builtins + +Avoid buffer overreads when int(), float(), compile(), exec() and eval() are +passed bytes-like objects. These objects are not necessarily terminated by +a null byte, but the functions assumed they were. + +.. + +.. bpo: 24726 +.. date: 8103 +.. nonce: AHk4v2 +.. section: Core and Builtins + +Fixed a crash and leaking NULL in repr() of OrderedDict that was mutated by +direct calls of dict methods. + +.. + +.. bpo: 25449 +.. date: 8102 +.. nonce: VqTOFi +.. section: Core and Builtins + +Iterating OrderedDict with keys with unstable hash now raises KeyError in C +implementations as well as in Python implementation. + +.. + +.. bpo: 25395 +.. date: 8101 +.. nonce: htkE3W +.. section: Core and Builtins + +Fixed crash when highly nested OrderedDict structures were garbage +collected. + +.. + +.. bpo: 25274 +.. date: 8100 +.. nonce: QCGvAF +.. section: Core and Builtins + +sys.setrecursionlimit() now raises a RecursionError if the new recursion +limit is too low depending at the current recursion depth. Modify also the +"lower-water mark" formula to make it monotonic. This mark is used to decide +when the overflowed flag of the thread state is reset. + +.. + +.. bpo: 24402 +.. date: 8099 +.. nonce: MAgi3X +.. section: Core and Builtins + +Fix input() to prompt to the redirected stdout when sys.stdout.fileno() +fails. + +.. + +.. bpo: 24806 +.. date: 8098 +.. nonce: Nb0znT +.. section: Core and Builtins + +Prevent builtin types that are not allowed to be subclassed from being +subclassed through multiple inheritance. + +.. + +.. bpo: 24848 +.. date: 8097 +.. nonce: HlUSuy +.. section: Core and Builtins + +Fixed a number of bugs in UTF-7 decoding of misformed data. + +.. + +.. bpo: 25280 +.. date: 8096 +.. nonce: ivTMwd +.. section: Core and Builtins + +Import trace messages emitted in verbose (-v) mode are no longer formatted +twice. + +.. + +.. bpo: 25003 +.. date: 8095 +.. nonce: _ban92 +.. section: Core and Builtins + +On Solaris 11.3 or newer, os.urandom() now uses the getrandom() function +instead of the getentropy() function. The getentropy() function is blocking +to generate very good quality entropy, os.urandom() doesn't need such high- +quality entropy. + +.. + +.. bpo: 25182 +.. date: 8094 +.. nonce: gBDq-T +.. section: Core and Builtins + +The stdprinter (used as sys.stderr before the io module is imported at +startup) now uses the backslashreplace error handler. + +.. + +.. bpo: 25131 +.. date: 8093 +.. nonce: j5hH6a +.. section: Core and Builtins + +Make the line number and column offset of set/dict literals and +comprehensions correspond to the opening brace. + +.. + +.. bpo: 25150 +.. date: 8092 +.. nonce: 0Gh-Ty +.. section: Core and Builtins + +Hide the private _Py_atomic_xxx symbols from the public Python.h header to +fix a compilation error with OpenMP. PyThreadState_GET() becomes an alias to +PyThreadState_Get() to avoid ABI incompatibilies. + +.. + +.. bpo: 25626 +.. date: 8091 +.. nonce: TQ3fvb +.. section: Library + +Change three zlib functions to accept sizes that fit in Py_ssize_t, but +internally cap those sizes to UINT_MAX. This resolves a regression in 3.5 +where GzipFile.read() failed to read chunks larger than 2 or 4 GiB. The +change affects the zlib.Decompress.decompress() max_length parameter, the +zlib.decompress() bufsize parameter, and the zlib.Decompress.flush() length +parameter. + +.. + +.. bpo: 25583 +.. date: 8090 +.. nonce: Gk-cim +.. section: Library + +Avoid incorrect errors raised by os.makedirs(exist_ok=True) when the OS +gives priority to errors such as EACCES over EEXIST. + +.. + +.. bpo: 25593 +.. date: 8089 +.. nonce: 56uegI +.. section: Library + +Change semantics of EventLoop.stop() in asyncio. + +.. + +.. bpo: 6973 +.. date: 8088 +.. nonce: nl5cHt +.. section: Library + +When we know a subprocess.Popen process has died, do not allow the +send_signal(), terminate(), or kill() methods to do anything as they could +potentially signal a different process. + +.. + +.. bpo: 25590 +.. date: 8087 +.. nonce: aCt-yW +.. section: Library + +In the Readline completer, only call getattr() once per attribute. + +.. + +.. bpo: 25498 +.. date: 8086 +.. nonce: AvqEBl +.. section: Library + +Fix a crash when garbage-collecting ctypes objects created by wrapping a +memoryview. This was a regression made in 3.5a1. Based on patch by +Eryksun. + +.. + +.. bpo: 25584 +.. date: 8085 +.. nonce: 124mYw +.. section: Library + +Added "escape" to the __all__ list in the glob module. + +.. + +.. bpo: 25584 +.. date: 8084 +.. nonce: ZeWX0J +.. section: Library + +Fixed recursive glob() with patterns starting with ``**``. + +.. + +.. bpo: 25446 +.. date: 8083 +.. nonce: k1DByx +.. section: Library + +Fix regression in smtplib's AUTH LOGIN support. + +.. + +.. bpo: 18010 +.. date: 8082 +.. nonce: Azyf1C +.. section: Library + +Fix the pydoc web server's module search function to handle exceptions from +importing packages. + +.. + +.. bpo: 25554 +.. date: 8081 +.. nonce: UM9MlR +.. section: Library + +Got rid of circular references in regular expression parsing. + +.. + +.. bpo: 25510 +.. date: 8080 +.. nonce: 79g7LA +.. section: Library + +fileinput.FileInput.readline() now returns b'' instead of '' at the end if +the FileInput was opened with binary mode. Patch by Ryosuke Ito. + +.. + +.. bpo: 25503 +.. date: 8079 +.. nonce: Zea0Y7 +.. section: Library + +Fixed inspect.getdoc() for inherited docstrings of properties. Original +patch by John Mark Vandenberg. + +.. + +.. bpo: 25515 +.. date: 8078 +.. nonce: fQsyYG +.. section: Library + +Always use os.urandom as a source of randomness in uuid.uuid4. + +.. + +.. bpo: 21827 +.. date: 8077 +.. nonce: k2oreR +.. section: Library + +Fixed textwrap.dedent() for the case when largest common whitespace is a +substring of smallest leading whitespace. Based on patch by Robert Li. + +.. + +.. bpo: 25447 +.. date: 8076 +.. nonce: eDYc4t +.. section: Library + +The lru_cache() wrapper objects now can be copied and pickled (by returning +the original object unchanged). + +.. + +.. bpo: 25390 +.. date: 8075 +.. nonce: 6mSgRq +.. section: Library + +typing: Don't crash on Union[str, Pattern]. + +.. + +.. bpo: 25441 +.. date: 8074 +.. nonce: d7zph6 +.. section: Library + +asyncio: Raise error from drain() when socket is closed. + +.. + +.. bpo: 25410 +.. date: 8073 +.. nonce: QAs_3B +.. section: Library + +Cleaned up and fixed minor bugs in C implementation of OrderedDict. + +.. + +.. bpo: 25411 +.. date: 8072 +.. nonce: qsJTCb +.. section: Library + +Improved Unicode support in SMTPHandler through better use of the email +package. Thanks to user simon04 for the patch. + +.. + +.. bpo: 25407 +.. date: 8071 +.. nonce: ukNt1D +.. section: Library + +Remove mentions of the formatter module being removed in Python 3.6. + +.. + +.. bpo: 25406 +.. date: 8070 +.. nonce: 5MZKU_ +.. section: Library + +Fixed a bug in C implementation of OrderedDict.move_to_end() that caused +segmentation fault or hang in iterating after moving several items to the +start of ordered dict. + +.. + +.. bpo: 25364 +.. date: 8069 +.. nonce: u_1Wi6 +.. section: Library + +zipfile now works in threads disabled builds. + +.. + +.. bpo: 25328 +.. date: 8068 +.. nonce: Rja1Xg +.. section: Library + +smtpd's SMTPChannel now correctly raises a ValueError if both decode_data +and enable_SMTPUTF8 are set to true. + +.. + +.. bpo: 25316 +.. date: 8067 +.. nonce: dHQHWI +.. section: Library + +distutils raises OSError instead of DistutilsPlatformError when MSVC is not +installed. + +.. + +.. bpo: 25380 +.. date: 8066 +.. nonce: sKZ6-I +.. section: Library + +Fixed protocol for the STACK_GLOBAL opcode in pickletools.opcodes. + +.. + +.. bpo: 23972 +.. date: 8065 +.. nonce: s2g30g +.. section: Library + +Updates asyncio datagram create method allowing reuseport and reuseaddr +socket options to be set prior to binding the socket. Mirroring the existing +asyncio create_server method the reuseaddr option for datagram sockets +defaults to True if the O/S is 'posix' (except if the platform is Cygwin). +Patch by Chris Laws. + +.. + +.. bpo: 25304 +.. date: 8064 +.. nonce: CsmLyI +.. section: Library + +Add asyncio.run_coroutine_threadsafe(). This lets you submit a coroutine to +a loop from another thread, returning a concurrent.futures.Future. By +Vincent Michel. + +.. + +.. bpo: 25232 +.. date: 8063 +.. nonce: KhKjCE +.. section: Library + +Fix CGIRequestHandler to split the query from the URL at the first question +mark (?) rather than the last. Patch from Xiang Zhang. + +.. + +.. bpo: 24657 +.. date: 8062 +.. nonce: h2Ag7y +.. section: Library + +Prevent CGIRequestHandler from collapsing slashes in the query part of the +URL as if it were a path. Patch from Xiang Zhang. + +.. + +.. bpo: 24483 +.. date: 8061 +.. nonce: WPLGSJ +.. section: Library + +C implementation of functools.lru_cache() now calculates key's hash only +once. + +.. + +.. bpo: 22958 +.. date: 8060 +.. nonce: Ebu7Gl +.. section: Library + +Constructor and update method of weakref.WeakValueDictionary now accept the +self and the dict keyword arguments. + +.. + +.. bpo: 22609 +.. date: 8059 +.. nonce: fV7hdV +.. section: Library + +Constructor of collections.UserDict now accepts the self keyword argument. + +.. + +.. bpo: 25111 +.. date: 8058 +.. nonce: azL4qE +.. section: Library + +Fixed comparison of traceback.FrameSummary. + +.. + +.. bpo: 25262 +.. date: 8057 +.. nonce: pQS5cB +.. section: Library + +Added support for BINBYTES8 opcode in Python implementation of unpickler. +Highest 32 bits of 64-bit size for BINUNICODE8 and BINBYTES8 opcodes no +longer silently ignored on 32-bit platforms in C implementation. + +.. + +.. bpo: 25034 +.. date: 8056 +.. nonce: eGvOIb +.. section: Library + +Fix string.Formatter problem with auto-numbering and nested format_specs. +Patch by Anthon van der Neut. + +.. + +.. bpo: 25233 +.. date: 8055 +.. nonce: EdZV9x +.. section: Library + +Rewrite the guts of asyncio.Queue and asyncio.Semaphore to be more +understandable and correct. + +.. + +.. bpo: 25203 +.. date: 8054 +.. nonce: IgDEbt +.. section: Library + +Failed readline.set_completer_delims() no longer left the module in +inconsistent state. + +.. + +.. bpo: 23600 +.. date: 8053 +.. nonce: 7J_RD5 +.. section: Library + +Default implementation of tzinfo.fromutc() was returning wrong results in +some cases. + +.. + +.. bpo: 23329 +.. date: 8052 +.. nonce: yccJBE +.. section: Library + +Allow the ssl module to be built with older versions of LibreSSL. + +.. + +.. bpo: 0 +.. date: 8051 +.. nonce: ww9QSm +.. section: Library + +Prevent overflow in _Unpickler_Read. + +.. + +.. bpo: 25047 +.. date: 8050 +.. nonce: kc8tqx +.. section: Library + +The XML encoding declaration written by Element Tree now respects the letter +case given by the user. This restores the ability to write encoding names in +uppercase like "UTF-8", which worked in Python 2. + +.. + +.. bpo: 25135 +.. date: 8049 +.. nonce: gVHNy- +.. section: Library + +Make deque_clear() safer by emptying the deque before clearing. This helps +avoid possible reentrancy issues. + +.. + +.. bpo: 19143 +.. date: 8048 +.. nonce: 76SBSO +.. section: Library + +platform module now reads Windows version from kernel32.dll to avoid +compatibility shims. + +.. + +.. bpo: 25092 +.. date: 8047 +.. nonce: fQ37Ac +.. section: Library + +Fix datetime.strftime() failure when errno was already set to EINVAL. + +.. + +.. bpo: 23517 +.. date: 8046 +.. nonce: 3ABmf1 +.. section: Library + +Fix rounding in fromtimestamp() and utcfromtimestamp() methods of +datetime.datetime: microseconds are now rounded to nearest with ties going +to nearest even integer (ROUND_HALF_EVEN), instead of being rounding towards +minus infinity (ROUND_FLOOR). It's important that these methods use the same +rounding mode than datetime.timedelta to keep the property: +(datetime(1970,1,1) + timedelta(seconds=t)) == datetime.utcfromtimestamp(t). +It also the rounding mode used by round(float) for example. + +.. + +.. bpo: 25155 +.. date: 8045 +.. nonce: JiETzD +.. section: Library + +Fix datetime.datetime.now() and datetime.datetime.utcnow() on Windows to +support date after year 2038. It was a regression introduced in Python +3.5.0. + +.. + +.. bpo: 25108 +.. date: 8044 +.. nonce: zGPbgA +.. section: Library + +Omitted internal frames in traceback functions print_stack(), +format_stack(), and extract_stack() called without arguments. + +.. + +.. bpo: 25118 +.. date: 8043 +.. nonce: wGm1u6 +.. section: Library + +Fix a regression of Python 3.5.0 in os.waitpid() on Windows. + +.. + +.. bpo: 24684 +.. date: 8042 +.. nonce: t4T77O +.. section: Library + +socket.socket.getaddrinfo() now calls PyUnicode_AsEncodedString() instead of +calling the encode() method of the host, to handle correctly custom string +with an encode() method which doesn't return a byte string. The encoder of +the IDNA codec is now called directly instead of calling the encode() method +of the string. + +.. + +.. bpo: 25060 +.. date: 8041 +.. nonce: zLdvIk +.. section: Library + +Correctly compute stack usage of the BUILD_MAP opcode. + +.. + +.. bpo: 24857 +.. date: 8040 +.. nonce: PpJWZ9 +.. section: Library + +Comparing call_args to a long sequence now correctly returns a boolean +result instead of raising an exception. Patch by A Kaptur. + +.. + +.. bpo: 23144 +.. date: 8039 +.. nonce: cLf67X +.. section: Library + +Make sure that HTMLParser.feed() returns all the data, even when +convert_charrefs is True. + +.. + +.. bpo: 24982 +.. date: 8038 +.. nonce: sGMMAR +.. section: Library + +shutil.make_archive() with the "zip" format now adds entries for directories +(including empty directories) in ZIP file. + +.. + +.. bpo: 25019 +.. date: 8037 +.. nonce: JQJlOZ +.. section: Library + +Fixed a crash caused by setting non-string key of expat parser. Based on +patch by John Leitch. + +.. + +.. bpo: 16180 +.. date: 8036 +.. nonce: 6IUcNS +.. section: Library + +Exit pdb if file has syntax error, instead of trapping user in an infinite +loop. Patch by Xavier de Gaye. + +.. + +.. bpo: 24891 +.. date: 8035 +.. nonce: ddVmHS +.. section: Library + +Fix a race condition at Python startup if the file descriptor of stdin (0), +stdout (1) or stderr (2) is closed while Python is creating sys.stdin, +sys.stdout and sys.stderr objects. These attributes are now set to None if +the creation of the object failed, instead of raising an OSError exception. +Initial patch written by Marco Paolini. + +.. + +.. bpo: 24992 +.. date: 8034 +.. nonce: 5sqF74 +.. section: Library + +Fix error handling and a race condition (related to garbage collection) in +collections.OrderedDict constructor. + +.. + +.. bpo: 24881 +.. date: 8033 +.. nonce: ZoVZXu +.. section: Library + +Fixed setting binary mode in Python implementation of FileIO on Windows and +Cygwin. Patch from Akira Li. + +.. + +.. bpo: 25578 +.. date: 8032 +.. nonce: G6S-ft +.. section: Library + +Fix (another) memory leak in SSLSocket.getpeercer(). + +.. + +.. bpo: 25530 +.. date: 8031 +.. nonce: hDFkwu +.. section: Library + +Disable the vulnerable SSLv3 protocol by default when creating +ssl.SSLContext. + +.. + +.. bpo: 25569 +.. date: 8030 +.. nonce: CfvQjK +.. section: Library + +Fix memory leak in SSLSocket.getpeercert(). + +.. + +.. bpo: 25471 +.. date: 8029 +.. nonce: T0A02M +.. section: Library + +Sockets returned from accept() shouldn't appear to be nonblocking. + +.. + +.. bpo: 25319 +.. date: 8028 +.. nonce: iyuglv +.. section: Library + +When threading.Event is reinitialized, the underlying condition should use a +regular lock rather than a recursive lock. + +.. + +.. bpo: 21112 +.. date: 8027 +.. nonce: vSFU1r +.. section: Library + +Fix regression in unittest.expectedFailure on subclasses. Patch from Berker +Peksag. + +.. + +.. bpo: 24764 +.. date: 8026 +.. nonce: QwFZ2S +.. section: Library + +cgi.FieldStorage.read_multi() now ignores the Content-Length header in part +headers. Patch written by Peter Landry and reviewed by Pierre Quentel. + +.. + +.. bpo: 24913 +.. date: 8025 +.. nonce: p2ZAJ4 +.. section: Library + +Fix overrun error in deque.index(). Found by John Leitch and Bryce Darling. + +.. + +.. bpo: 24774 +.. date: 8024 +.. nonce: xLbskG +.. section: Library + +Fix docstring in http.server.test. Patch from Chiu-Hsiang Hsu. + +.. + +.. bpo: 21159 +.. date: 8023 +.. nonce: ochL5W +.. section: Library + +Improve message in configparser.InterpolationMissingOptionError. Patch from +Łukasz Langa. + +.. + +.. bpo: 20362 +.. date: 8022 +.. nonce: 5aP_Ri +.. section: Library + +Honour TestCase.longMessage correctly in assertRegex. Patch from Ilia +Kurenkov. + +.. + +.. bpo: 23572 +.. date: 8021 +.. nonce: QhQ9RD +.. section: Library + +Fixed functools.singledispatch on classes with falsy metaclasses. Patch by +Ethan Furman. + +.. + +.. bpo: 0 +.. date: 8020 +.. nonce: DO1sFa +.. section: Library + +asyncio: ensure_future() now accepts awaitable objects. + +.. + +.. bpo: 15348 +.. date: 8019 +.. nonce: d1Fg01 +.. section: IDLE + +Stop the debugger engine (normally in a user process) before closing the +debugger window (running in the IDLE process). This prevents the +RuntimeErrors that were being caught and ignored. + +.. + +.. bpo: 24455 +.. date: 8018 +.. nonce: x6YqtE +.. section: IDLE + +Prevent IDLE from hanging when a) closing the shell while the debugger is +active (15347); b) closing the debugger with the [X] button (15348); and c) +activating the debugger when already active (24455). The patch by Mark +Roseman does this by making two changes. 1. Suspend and resume the +gui.interaction method with the tcl vwait mechanism intended for this +purpose (instead of root.mainloop & .quit). 2. In gui.run, allow any +existing interaction to terminate first. + +.. + +.. bpo: 0 +.. date: 8017 +.. nonce: Yp9LRY +.. section: IDLE + +Change 'The program' to 'Your program' in an IDLE 'kill program?' message to +make it clearer that the program referred to is the currently running user +program, not IDLE itself. + +.. + +.. bpo: 24750 +.. date: 8016 +.. nonce: xgsi-K +.. section: IDLE + +Improve the appearance of the IDLE editor window status bar. Patch by Mark +Roseman. + +.. + +.. bpo: 25313 +.. date: 8015 +.. nonce: xMXHpO +.. section: IDLE + +Change the handling of new built-in text color themes to better address the +compatibility problem introduced by the addition of IDLE Dark. Consistently +use the revised idleConf.CurrentTheme everywhere in idlelib. + +.. + +.. bpo: 24782 +.. date: 8014 +.. nonce: RgIPYE +.. section: IDLE + +Extension configuration is now a tab in the IDLE Preferences dialog rather +than a separate dialog. The former tabs are now a sorted list. Patch by +Mark Roseman. + +.. + +.. bpo: 22726 +.. date: 8013 +.. nonce: x8T0dA +.. section: IDLE + +Re-activate the config dialog help button with some content about the other +buttons and the new IDLE Dark theme. + +.. + +.. bpo: 24820 +.. date: 8012 +.. nonce: TFPJhr +.. section: IDLE + +IDLE now has an 'IDLE Dark' built-in text color theme. It is more or less +IDLE Classic inverted, with a cobalt blue background. Strings, comments, +keywords, ... are still green, red, orange, ... . To use it with IDLEs +released before November 2015, hit the 'Save as New Custom Theme' button and +enter a new name, such as 'Custom Dark'. The custom theme will work with +any IDLE release, and can be modified. + +.. + +.. bpo: 25224 +.. date: 8011 +.. nonce: 5Llwo4 +.. section: IDLE + +README.txt is now an idlelib index for IDLE developers and curious users. +The previous user content is now in the IDLE doc chapter. 'IDLE' now means +'Integrated Development and Learning Environment'. + +.. + +.. bpo: 24820 +.. date: 8010 +.. nonce: ZUz9Fn +.. section: IDLE + +Users can now set breakpoint colors in Settings -> Custom Highlighting. +Original patch by Mark Roseman. + +.. + +.. bpo: 24972 +.. date: 8009 +.. nonce: uc0uNo +.. section: IDLE + +Inactive selection background now matches active selection background, as +configured by users, on all systems. Found items are now always highlighted +on Windows. Initial patch by Mark Roseman. + +.. + +.. bpo: 24570 +.. date: 8008 +.. nonce: s3EkNn +.. section: IDLE + +Idle: make calltip and completion boxes appear on Macs affected by a tk +regression. Initial patch by Mark Roseman. + +.. + +.. bpo: 24988 +.. date: 8007 +.. nonce: tXqq4T +.. section: IDLE + +Idle ScrolledList context menus (used in debugger) now work on Mac Aqua. +Patch by Mark Roseman. + +.. + +.. bpo: 24801 +.. date: 8006 +.. nonce: -bj_Ou +.. section: IDLE + +Make right-click for context menu work on Mac Aqua. Patch by Mark Roseman. + +.. + +.. bpo: 25173 +.. date: 8005 +.. nonce: EZzrPg +.. section: IDLE + +Associate tkinter messageboxes with a specific widget. For Mac OSX, make +them a 'sheet'. Patch by Mark Roseman. + +.. + +.. bpo: 25198 +.. date: 8004 +.. nonce: -j_BV7 +.. section: IDLE + +Enhance the initial html viewer now used for Idle Help. * Properly indent +fixed-pitch text (patch by Mark Roseman). * Give code snippet a very Sphinx- +like light blueish-gray background. * Re-use initial width and height set by +users for shell and editor. * When the Table of Contents (TOC) menu is used, +put the section header at the top of the screen. + +.. + +.. bpo: 25225 +.. date: 8003 +.. nonce: 9pvdq6 +.. section: IDLE + +Condense and rewrite Idle doc section on text colors. + +.. + +.. bpo: 21995 +.. date: 8002 +.. nonce: C5Rmzx +.. section: IDLE + +Explain some differences between IDLE and console Python. + +.. + +.. bpo: 22820 +.. date: 8001 +.. nonce: hix_8X +.. section: IDLE + +Explain need for *print* when running file from Idle editor. + +.. + +.. bpo: 25224 +.. date: 8000 +.. nonce: UVMYQq +.. section: IDLE + +Doc: augment Idle feature list and no-subprocess section. + +.. + +.. bpo: 25219 +.. date: 7999 +.. nonce: 8_9DYg +.. section: IDLE + +Update doc for Idle command line options. Some were missing and notes were +not correct. + +.. + +.. bpo: 24861 +.. date: 7998 +.. nonce: Ecg2yT +.. section: IDLE + +Most of idlelib is private and subject to change. Use idleib.idle.* to start +Idle. See idlelib.__init__.__doc__. + +.. + +.. bpo: 25199 +.. date: 7997 +.. nonce: ih7yY3 +.. section: IDLE + +Idle: add synchronization comments for future maintainers. + +.. + +.. bpo: 16893 +.. date: 7996 +.. nonce: bZtPgJ +.. section: IDLE + +Replace help.txt with help.html for Idle doc display. The new +idlelib/help.html is rstripped Doc/build/html/library/idle.html. It looks +better than help.txt and will better document Idle as released. The tkinter +html viewer that works for this file was written by Mark Roseman. The now +unused EditorWindow.HelpDialog class and helt.txt file are deprecated. + +.. + +.. bpo: 24199 +.. date: 7995 +.. nonce: VKnZEv +.. section: IDLE + +Deprecate unused idlelib.idlever with possible removal in 3.6. + +.. + +.. bpo: 24790 +.. date: 7994 +.. nonce: hD1hlj +.. section: IDLE + +Remove extraneous code (which also create 2 & 3 conflicts). + +.. + +.. bpo: 22558 +.. date: 7993 +.. nonce: Pk02YC +.. section: Documentation + +Add remaining doc links to source code for Python-coded modules. Patch by +Yoni Lavi. + +.. + +.. bpo: 12067 +.. date: 7992 +.. nonce: nLD2M- +.. section: Documentation + +Rewrite Comparisons section in the Expressions chapter of the language +reference. Some of the details of comparing mixed types were incorrect or +ambiguous. NotImplemented is only relevant at a lower level than the +Expressions chapter. Added details of comparing range() objects, and default +behaviour and consistency suggestions for user-defined classes. Patch from +Andy Maier. + +.. + +.. bpo: 24952 +.. date: 7991 +.. nonce: RHhFPE +.. section: Documentation + +Clarify the default size argument of stack_size() in the "threading" and +"_thread" modules. Patch from Mattip. + +.. + +.. bpo: 23725 +.. date: 7990 +.. nonce: 49TZ5f +.. section: Documentation + +Overhaul tempfile docs. Note deprecated status of mktemp. Patch from +Zbigniew Jędrzejewski-Szmek. + +.. + +.. bpo: 24808 +.. date: 7989 +.. nonce: MGjc3F +.. section: Documentation + +Update the types of some PyTypeObject fields. Patch by Joseph Weston. + +.. + +.. bpo: 22812 +.. date: 7988 +.. nonce: kLCF0G +.. section: Documentation + +Fix unittest discovery examples. Patch from Pam McA'Nulty. + +.. + +.. bpo: 25449 +.. date: 7987 +.. nonce: MP6KNs +.. section: Tests + +Added tests for OrderedDict subclasses. + +.. + +.. bpo: 25099 +.. date: 7986 +.. nonce: tJQOWx +.. section: Tests + +Make test_compileall not fail when an entry on sys.path cannot be written to +(commonly seen in administrative installs on Windows). + +.. + +.. bpo: 23919 +.. date: 7985 +.. nonce: vJnjaq +.. section: Tests + +Prevents assert dialogs appearing in the test suite. + +.. + +.. bpo: 0 +.. date: 7984 +.. nonce: X-Bk5l +.. section: Tests + +``PCbuild\rt.bat`` now accepts an unlimited number of arguments to pass +along to regrtest.py. Previously there was a limit of 9. + +.. + +.. bpo: 24915 +.. date: 7983 +.. nonce: PgD3Cx +.. section: Build + +Add LLVM support for PGO builds and use the test suite to generate the +profile data. Initial patch by Alecsandru Patrascu of Intel. + +.. + +.. bpo: 24910 +.. date: 7982 +.. nonce: ZZdfl0 +.. section: Build + +Windows MSIs now have unique display names. + +.. + +.. bpo: 24986 +.. date: 7981 +.. nonce: 1WyXeU +.. section: Build + +It is now possible to build Python on Windows without errors when external +libraries are not available. + +.. + +.. bpo: 25450 +.. date: 7980 +.. nonce: X4xlWf +.. section: Windows + +Updates shortcuts to start Python in installation directory. + +.. + +.. bpo: 25164 +.. date: 7979 +.. nonce: FHVOOA +.. section: Windows + +Changes default all-users install directory to match per-user directory. + +.. + +.. bpo: 25143 +.. date: 7978 +.. nonce: hmxsia +.. section: Windows + +Improves installer error messages for unsupported platforms. + +.. + +.. bpo: 25163 +.. date: 7977 +.. nonce: uCRe8H +.. section: Windows + +Display correct directory in installer when using non-default settings. + +.. + +.. bpo: 25361 +.. date: 7976 +.. nonce: GETaSY +.. section: Windows + +Disables use of SSE2 instructions in Windows 32-bit build + +.. + +.. bpo: 25089 +.. date: 7975 +.. nonce: n_YJgw +.. section: Windows + +Adds logging to installer for case where launcher is not selected on +upgrade. + +.. + +.. bpo: 25165 +.. date: 7974 +.. nonce: aUTN1e +.. section: Windows + +Windows uninstallation should not remove launcher if other versions remain + +.. + +.. bpo: 25112 +.. date: 7973 +.. nonce: frdKij +.. section: Windows + +py.exe launcher is missing icons + +.. + +.. bpo: 25102 +.. date: 7972 +.. nonce: 6y6Akl +.. section: Windows + +Windows installer does not precompile for -O or -OO. + +.. + +.. bpo: 25081 +.. date: 7971 +.. nonce: dcRCTO +.. section: Windows + +Makes Back button in installer go back to upgrade page when upgrading. + +.. + +.. bpo: 25091 +.. date: 7970 +.. nonce: 1u-VKy +.. section: Windows + +Increases font size of the installer. + +.. + +.. bpo: 25126 +.. date: 7969 +.. nonce: ANx3DW +.. section: Windows + +Clarifies that the non-web installer will download some components. + +.. + +.. bpo: 25213 +.. date: 7968 +.. nonce: KGmXoe +.. section: Windows + +Restores requestedExecutionLevel to manifest to disable UAC virtualization. + +.. + +.. bpo: 25022 +.. date: 7967 +.. nonce: vAt_zr +.. section: Windows + +Removed very outdated PC/example_nt/ directory. + +.. + +.. bpo: 25440 +.. date: 7966 +.. nonce: 5xhyGr +.. section: Tools/Demos + +Fix output of python-config --extension-suffix. diff --git a/Misc/NEWS.d/3.5.2.rst b/Misc/NEWS.d/3.5.2.rst new file mode 100644 index 0000000..b9c366e --- /dev/null +++ b/Misc/NEWS.d/3.5.2.rst @@ -0,0 +1,25 @@ +.. bpo: 26930 +.. date: 8336 +.. nonce: 9JUeSD +.. release date: 2016-06-26 +.. section: Core and Builtins + +Update Windows builds to use OpenSSL 1.0.2h. + +.. + +.. bpo: 26867 +.. date: 8335 +.. nonce: QPSyP5 +.. section: Tests + +Ubuntu's openssl OP_NO_SSLv3 is forced on by default; fix test. + +.. + +.. bpo: 27365 +.. date: 8334 +.. nonce: ipkJ_M +.. section: IDLE + +Allow non-ascii in idlelib/NEWS.txt - minimal part for 3.5.2. diff --git a/Misc/NEWS.d/3.5.2rc1.rst b/Misc/NEWS.d/3.5.2rc1.rst new file mode 100644 index 0000000..590fdba --- /dev/null +++ b/Misc/NEWS.d/3.5.2rc1.rst @@ -0,0 +1,2204 @@ +.. bpo: 27066 +.. date: 8333 +.. nonce: SNExZi +.. release date: 2016-06-12 +.. section: Core and Builtins + +Fixed SystemError if a custom opener (for open()) returns a negative number +without setting an exception. + +.. + +.. bpo: 20041 +.. date: 8332 +.. nonce: TypyGp +.. section: Core and Builtins + +Fixed TypeError when frame.f_trace is set to None. Patch by Xavier de Gaye. + +.. + +.. bpo: 26168 +.. date: 8331 +.. nonce: -nPBL6 +.. section: Core and Builtins + +Fixed possible refleaks in failing Py_BuildValue() with the "N" format unit. + +.. + +.. bpo: 26991 +.. date: 8330 +.. nonce: yWGNhz +.. section: Core and Builtins + +Fix possible refleak when creating a function with annotations. + +.. + +.. bpo: 27039 +.. date: 8329 +.. nonce: Zj7tV7 +.. section: Core and Builtins + +Fixed bytearray.remove() for values greater than 127. Patch by Joe Jevnik. + +.. + +.. bpo: 23640 +.. date: 8328 +.. nonce: kvNC4c +.. section: Core and Builtins + +int.from_bytes() no longer bypasses constructors for subclasses. + +.. + +.. bpo: 26811 +.. date: 8327 +.. nonce: oNzUWt +.. section: Core and Builtins + +gc.get_objects() no longer contains a broken tuple with NULL pointer. + +.. + +.. bpo: 20120 +.. date: 8326 +.. nonce: c-FZZc +.. section: Core and Builtins + +Use RawConfigParser for .pypirc parsing, removing support for interpolation +unintentionally added with move to Python 3. Behavior no longer does any +interpolation in .pypirc files, matching behavior in Python 2.7 and +Setuptools 19.0. + +.. + +.. bpo: 26659 +.. date: 8325 +.. nonce: 5PRa83 +.. section: Core and Builtins + +Make the builtin slice type support cycle collection. + +.. + +.. bpo: 26718 +.. date: 8324 +.. nonce: K5PQ8j +.. section: Core and Builtins + +super.__init__ no longer leaks memory if called multiple times. NOTE: A +direct call of super.__init__ is not endorsed! + +.. + +.. bpo: 25339 +.. date: 8323 +.. nonce: ZcaC2E +.. section: Core and Builtins + +PYTHONIOENCODING now has priority over locale in setting the error handler +for stdin and stdout. + +.. + +.. bpo: 26494 +.. date: 8322 +.. nonce: G6eXIi +.. section: Core and Builtins + +Fixed crash on iterating exhausting iterators. Affected classes are generic +sequence iterators, iterators of str, bytes, bytearray, list, tuple, set, +frozenset, dict, OrderedDict, corresponding views and os.scandir() iterator. + +.. + +.. bpo: 26581 +.. date: 8321 +.. nonce: yNA7nm +.. section: Core and Builtins + +If coding cookie is specified multiple times on a line in Python source code +file, only the first one is taken to account. + +.. + +.. bpo: 26464 +.. date: 8320 +.. nonce: 7BreGz +.. section: Core and Builtins + +Fix str.translate() when string is ASCII and first replacements removes +character, but next replacement uses a non-ASCII character or a string +longer than 1 character. Regression introduced in Python 3.5.0. + +.. + +.. bpo: 22836 +.. date: 8319 +.. nonce: cimt1y +.. section: Core and Builtins + +Ensure exception reports from PyErr_Display() and PyErr_WriteUnraisable() +are sensible even when formatting them produces secondary errors. This +affects the reports produced by sys.__excepthook__() and when __del__() +raises an exception. + +.. + +.. bpo: 26302 +.. date: 8318 +.. nonce: UD9XQt +.. section: Core and Builtins + +Correct behavior to reject comma as a legal character for cookie names. + +.. + +.. bpo: 4806 +.. date: 8317 +.. nonce: i9m3hj +.. section: Core and Builtins + +Avoid masking the original TypeError exception when using star (``*``) +unpacking in function calls. Based on patch by Hagen Fürstenau and Daniel +Urban. + +.. + +.. bpo: 27138 +.. date: 8316 +.. nonce: ifYEro +.. section: Core and Builtins + +Fix the doc comment for FileFinder.find_spec(). + +.. + +.. bpo: 26154 +.. date: 8315 +.. nonce: MtnRAH +.. section: Core and Builtins + +Add a new private _PyThreadState_UncheckedGet() function to get the current +Python thread state, but don't issue a fatal error if it is NULL. This new +function must be used instead of accessing directly the +_PyThreadState_Current variable. The variable is no more exposed since +Python 3.5.1 to hide the exact implementation of atomic C types, to avoid +compiler issues. + +.. + +.. bpo: 26194 +.. date: 8314 +.. nonce: j9zand +.. section: Core and Builtins + +Deque.insert() gave odd results for bounded deques that had reached their +maximum size. Now an IndexError will be raised when attempting to insert +into a full deque. + +.. + +.. bpo: 25843 +.. date: 8313 +.. nonce: t2kGug +.. section: Core and Builtins + +When compiling code, don't merge constants if they are equal but have a +different types. For example, ``f1, f2 = lambda: 1, lambda: 1.0`` is now +correctly compiled to two different functions: ``f1()`` returns ``1`` +(``int``) and ``f2()`` returns ``1.0`` (``int``), even if ``1`` and ``1.0`` +are equal. + +.. + +.. bpo: 22995 +.. date: 8312 +.. nonce: KYNKvs +.. section: Core and Builtins + +[UPDATE] Comment out the one of the pickleability tests in +_PyObject_GetState() due to regressions observed in Cython-based projects. + +.. + +.. bpo: 25961 +.. date: 8311 +.. nonce: Hdjjw0 +.. section: Core and Builtins + +Disallowed null characters in the type name. + +.. + +.. bpo: 25973 +.. date: 8310 +.. nonce: Ud__ZP +.. section: Core and Builtins + +Fix segfault when an invalid nonlocal statement binds a name starting with +two underscores. + +.. + +.. bpo: 22995 +.. date: 8309 +.. nonce: Wq0E86 +.. section: Core and Builtins + +Instances of extension types with a state that aren't subclasses of list or +dict and haven't implemented any pickle-related methods (__reduce__, +__reduce_ex__, __getnewargs__, __getnewargs_ex__, or __getstate__), can no +longer be pickled. Including memoryview. + +.. + +.. bpo: 20440 +.. date: 8308 +.. nonce: GCwOfH +.. section: Core and Builtins + +Massive replacing unsafe attribute setting code with special macro +Py_SETREF. + +.. + +.. bpo: 25766 +.. date: 8307 +.. nonce: jn93Yu +.. section: Core and Builtins + +Special method __bytes__() now works in str subclasses. + +.. + +.. bpo: 25421 +.. date: 8306 +.. nonce: c47YEL +.. section: Core and Builtins + +__sizeof__ methods of builtin types now use dynamic basic size. This allows +sys.getsize() to work correctly with their subclasses with __slots__ +defined. + +.. + +.. bpo: 25709 +.. date: 8305 +.. nonce: WwGm2k +.. section: Core and Builtins + +Fixed problem with in-place string concatenation and utf-8 cache. + +.. + +.. bpo: 27147 +.. date: 8304 +.. nonce: tCCgmH +.. section: Core and Builtins + +Mention PEP 420 in the importlib docs. + +.. + +.. bpo: 24097 +.. date: 8303 +.. nonce: Vt4E-i +.. section: Core and Builtins + +Fixed crash in object.__reduce__() if slot name is freed inside __getattr__. + +.. + +.. bpo: 24731 +.. date: 8302 +.. nonce: h9-hnz +.. section: Core and Builtins + +Fixed crash on converting objects with special methods __bytes__, __trunc__, +and __float__ returning instances of subclasses of bytes, int, and float to +subclasses of bytes, int, and float correspondingly. + +.. + +.. bpo: 26478 +.. date: 8301 +.. nonce: n0dB8e +.. section: Core and Builtins + +Fix semantic bugs when using binary operators with dictionary views and +tuples. + +.. + +.. bpo: 26171 +.. date: 8300 +.. nonce: 8SaQEa +.. section: Core and Builtins + +Fix possible integer overflow and heap corruption in zipimporter.get_data(). + +.. + +.. bpo: 25660 +.. date: 8299 +.. nonce: 93DzBo +.. section: Core and Builtins + +Fix TAB key behaviour in REPL with readline. + +.. + +.. bpo: 25887 +.. date: 8298 +.. nonce: PtVIX7 +.. section: Core and Builtins + +Raise a RuntimeError when a coroutine object is awaited more than once. + +.. + +.. bpo: 27243 +.. date: 8297 +.. nonce: U36M4E +.. section: Core and Builtins + +Update the __aiter__ protocol: instead of returning an awaitable that +resolves to an asynchronous iterator, the asynchronous iterator should be +returned directly. Doing the former will trigger a +PendingDeprecationWarning. + +.. + +.. bpo: 26556 +.. date: 8296 +.. nonce: v5j2uL +.. original section: Library +.. section: Security + +Update expat to 2.1.1, fixes CVE-2015-1283. + +.. + +.. bpo: 0 +.. date: 8295 +.. nonce: E4ochz +.. original section: Library +.. section: Security + +Fix TLS stripping vulnerability in smtplib, CVE-2016-0772. Reported by Team +Oststrom + +.. + +.. bpo: 21386 +.. date: 8294 +.. nonce: DjV72U +.. section: Library + +Implement missing IPv4Address.is_global property. It was documented since +07a5610bae9d. Initial patch by Roger Luethi. + +.. + +.. bpo: 20900 +.. date: 8293 +.. nonce: H5YQPR +.. section: Library + +distutils register command now decodes HTTP responses correctly. Initial +patch by ingrid. + +.. + +.. bpo: 0 +.. date: 8292 +.. nonce: iYIeng +.. section: Library + +A new version of typing.py provides several new classes and features: +@overload outside stubs, Reversible, DefaultDict, Text, ContextManager, +Type[], NewType(), TYPE_CHECKING, and numerous bug fixes (note that some of +the new features are not yet implemented in mypy or other static analyzers). +Also classes for PEP 492 (Awaitable, AsyncIterable, AsyncIterator) have been +added (in fact they made it into 3.5.1 but were never mentioned). + +.. + +.. bpo: 25738 +.. date: 8291 +.. nonce: mED9w4 +.. section: Library + +Stop http.server.BaseHTTPRequestHandler.send_error() from sending a message +body for 205 Reset Content. Also, don't send Content header fields in +responses that don't have a body. Patch by Susumu Koshiba. + +.. + +.. bpo: 21313 +.. date: 8290 +.. nonce: W30MBr +.. section: Library + +Fix the "platform" module to tolerate when sys.version contains truncated +build information. + +.. + +.. bpo: 26839 +.. date: 8289 +.. nonce: yVvy7R +.. original section: Library +.. section: Security + +On Linux, :func:`os.urandom` now calls ``getrandom()`` with +``GRND_NONBLOCK`` to fall back on reading ``/dev/urandom`` if the urandom +entropy pool is not initialized yet. Patch written by Colm Buckley. + +.. + +.. bpo: 27164 +.. date: 8288 +.. nonce: 6wmjx2 +.. section: Library + +In the zlib module, allow decompressing raw Deflate streams with a +predefined zdict. Based on patch by Xiang Zhang. + +.. + +.. bpo: 24291 +.. date: 8287 +.. nonce: Ac6HvL +.. section: Library + +Fix wsgiref.simple_server.WSGIRequestHandler to completely write data to the +client. Previously it could do partial writes and truncate data. Also, +wsgiref.handler.ServerHandler can now handle stdout doing partial writes, +but this is deprecated. + +.. + +.. bpo: 26809 +.. date: 8286 +.. nonce: ya7JMb +.. section: Library + +Add ``__all__`` to :mod:`string`. Patch by Emanuel Barry. + +.. + +.. bpo: 26373 +.. date: 8285 +.. nonce: P6qz6o +.. section: Library + +subprocess.Popen.communicate now correctly ignores BrokenPipeError when the +child process dies before .communicate() is called in more/all +circumstances. + +.. + +.. bpo: 21776 +.. date: 8284 +.. nonce: 04eQfa +.. section: Library + +distutils.upload now correctly handles HTTPError. Initial patch by Claudiu +Popa. + +.. + +.. bpo: 27114 +.. date: 8283 +.. nonce: bGCuAM +.. section: Library + +Fix SSLContext._load_windows_store_certs fails with PermissionError + +.. + +.. bpo: 18383 +.. date: 8282 +.. nonce: jr-b0l +.. section: Library + +Avoid creating duplicate filters when using filterwarnings and simplefilter. +Based on patch by Alex Shkop. + +.. + +.. bpo: 27057 +.. date: 8281 +.. nonce: YzTA_Q +.. section: Library + +Fix os.set_inheritable() on Android, ioctl() is blocked by SELinux and fails +with EACCESS. The function now falls back to fcntl(). Patch written by +Michał Bednarski. + +.. + +.. bpo: 27014 +.. date: 8280 +.. nonce: ui7Khn +.. section: Library + +Fix infinite recursion using typing.py. Thanks to Kalle Tuure! + +.. + +.. bpo: 14132 +.. date: 8279 +.. nonce: 5wR9MN +.. section: Library + +Fix urllib.request redirect handling when the target only has a query +string. Original fix by Ján Janech. + +.. + +.. bpo: 17214 +.. date: 8278 +.. nonce: lUbZOV +.. section: Library + +The "urllib.request" module now percent-encodes non-ASCII bytes found in +redirect target URLs. Some servers send Location header fields with non- +ASCII bytes, but "http.client" requires the request target to be ASCII- +encodable, otherwise a UnicodeEncodeError is raised. Based on patch by +Christian Heimes. + +.. + +.. bpo: 26892 +.. date: 8277 +.. nonce: XIXb0h +.. section: Library + +Honor debuglevel flag in urllib.request.HTTPHandler. Patch contributed by +Chi Hsuan Yen. + +.. + +.. bpo: 22274 +.. date: 8276 +.. nonce: 0RHDMN +.. section: Library + +In the subprocess module, allow stderr to be redirected to stdout even when +stdout is not redirected. Patch by Akira Li. + +.. + +.. bpo: 26807 +.. date: 8275 +.. nonce: LXSPP6 +.. section: Library + +mock_open 'files' no longer error on readline at end of file. Patch from +Yolanda Robla. + +.. + +.. bpo: 25745 +.. date: 8274 +.. nonce: -n8acU +.. section: Library + +Fixed leaking a userptr in curses panel destructor. + +.. + +.. bpo: 26977 +.. date: 8273 +.. nonce: 5G4HtL +.. section: Library + +Removed unnecessary, and ignored, call to sum of squares helper in +statistics.pvariance. + +.. + +.. bpo: 26881 +.. date: 8272 +.. nonce: mdiq_L +.. section: Library + +The modulefinder module now supports extended opcode arguments. + +.. + +.. bpo: 23815 +.. date: 8271 +.. nonce: _krNe8 +.. section: Library + +Fixed crashes related to directly created instances of types in _tkinter and +curses.panel modules. + +.. + +.. bpo: 17765 +.. date: 8270 +.. nonce: hiSVS1 +.. section: Library + +weakref.ref() no longer silently ignores keyword arguments. Patch by Georg +Brandl. + +.. + +.. bpo: 26873 +.. date: 8269 +.. nonce: cYXRcH +.. section: Library + +xmlrpc now raises ResponseError on unsupported type tags instead of silently +return incorrect result. + +.. + +.. bpo: 26711 +.. date: 8268 +.. nonce: Eu85Qw +.. section: Library + +Fixed the comparison of plistlib.Data with other types. + +.. + +.. bpo: 24114 +.. date: 8267 +.. nonce: RMRMtM +.. section: Library + +Fix an uninitialized variable in `ctypes.util`. + +The bug only occurs on SunOS when the ctypes implementation searches for the +`crle` program. Patch by Xiang Zhang. Tested on SunOS by Kees Bos. + +.. + +.. bpo: 26864 +.. date: 8266 +.. nonce: 1KgGds +.. section: Library + +In urllib.request, change the proxy bypass host checking against no_proxy to +be case-insensitive, and to not match unrelated host names that happen to +have a bypassed hostname as a suffix. Patch by Xiang Zhang. + +.. + +.. bpo: 26634 +.. date: 8265 +.. nonce: FZvsSb +.. section: Library + +recursive_repr() now sets __qualname__ of wrapper. Patch by Xiang Zhang. + +.. + +.. bpo: 26804 +.. date: 8264 +.. nonce: 9Orp-G +.. section: Library + +urllib.request will prefer lower_case proxy environment variables over +UPPER_CASE or Mixed_Case ones. Patch contributed by Hans-Peter Jansen. + +.. + +.. bpo: 26837 +.. date: 8263 +.. nonce: 2FXGsD +.. section: Library + +assertSequenceEqual() now correctly outputs non-stringified differing items +(like bytes in the -b mode). This affects assertListEqual() and +assertTupleEqual(). + +.. + +.. bpo: 26041 +.. date: 8262 +.. nonce: bVem-p +.. section: Library + +Remove "will be removed in Python 3.7" from deprecation messages of +platform.dist() and platform.linux_distribution(). Patch by Kumaripaba +Miyurusara Athukorala. + +.. + +.. bpo: 26822 +.. date: 8261 +.. nonce: rYSL4W +.. section: Library + +itemgetter, attrgetter and methodcaller objects no longer silently ignore +keyword arguments. + +.. + +.. bpo: 26733 +.. date: 8260 +.. nonce: YxaJmL +.. section: Library + +Disassembling a class now disassembles class and static methods. Patch by +Xiang Zhang. + +.. + +.. bpo: 26801 +.. date: 8259 +.. nonce: TQGY-7 +.. section: Library + +Fix error handling in :func:`shutil.get_terminal_size`, catch +:exc:`AttributeError` instead of :exc:`NameError`. Patch written by Emanuel +Barry. + +.. + +.. bpo: 24838 +.. date: 8258 +.. nonce: 3Pfx8T +.. section: Library + +tarfile's ustar and gnu formats now correctly calculate name and link field +limits for multibyte character encodings like utf-8. + +.. + +.. bpo: 26657 +.. date: 8257 +.. nonce: C_-XFg +.. original section: Library +.. section: Security + +Fix directory traversal vulnerability with http.server on Windows. This +fixes a regression that was introduced in 3.3.4rc1 and 3.4.0rc1. Based on +patch by Philipp Hagemeister. + +.. + +.. bpo: 26717 +.. date: 8256 +.. nonce: jngTdu +.. section: Library + +Stop encoding Latin-1-ized WSGI paths with UTF-8. Patch by Anthony Sottile. + +.. + +.. bpo: 26735 +.. date: 8255 +.. nonce: riSl3b +.. section: Library + +Fix :func:`os.urandom` on Solaris 11.3 and newer when reading more than +1,024 bytes: call ``getrandom()`` multiple times with a limit of 1024 bytes +per call. + +.. + +.. bpo: 16329 +.. date: 8254 +.. nonce: nuXD8W +.. section: Library + +Add .webm to mimetypes.types_map. Patch by Giampaolo Rodola'. + +.. + +.. bpo: 13952 +.. date: 8253 +.. nonce: SOoTVE +.. section: Library + +Add .csv to mimetypes.types_map. Patch by Geoff Wilson. + +.. + +.. bpo: 26709 +.. date: 8252 +.. nonce: luOPbP +.. section: Library + +Fixed Y2038 problem in loading binary PLists. + +.. + +.. bpo: 23735 +.. date: 8251 +.. nonce: Y5oQ9r +.. section: Library + +Handle terminal resizing with Readline 6.3+ by installing our own SIGWINCH +handler. Patch by Eric Price. + +.. + +.. bpo: 26586 +.. date: 8250 +.. nonce: V5pZNa +.. section: Library + +In http.server, respond with "413 Request header fields too large" if there +are too many header fields to parse, rather than killing the connection and +raising an unhandled exception. Patch by Xiang Zhang. + +.. + +.. bpo: 22854 +.. date: 8249 +.. nonce: K3rMEH +.. section: Library + +Change BufferedReader.writable() and BufferedWriter.readable() to always +return False. + +.. + +.. bpo: 25195 +.. date: 8248 +.. nonce: EOc4Po +.. section: Library + +Fix a regression in mock.MagicMock. _Call is a subclass of tuple (changeset +3603bae63c13 only works for classes) so we need to implement __ne__ +ourselves. Patch by Andrew Plummer. + +.. + +.. bpo: 26644 +.. date: 8247 +.. nonce: 7tt1tk +.. section: Library + +Raise ValueError rather than SystemError when a negative length is passed to +SSLSocket.recv() or read(). + +.. + +.. bpo: 23804 +.. date: 8246 +.. nonce: PP63Ff +.. section: Library + +Fix SSL recv(0) and read(0) methods to return zero bytes instead of up to +1024. + +.. + +.. bpo: 26616 +.. date: 8245 +.. nonce: v3QwdD +.. section: Library + +Fixed a bug in datetime.astimezone() method. + +.. + +.. bpo: 21925 +.. date: 8244 +.. nonce: _fr69L +.. section: Library + +:func:`warnings.formatwarning` now catches exceptions on +``linecache.getline(...)`` to be able to log :exc:`ResourceWarning` emitted +late during the Python shutdown process. + +.. + +.. bpo: 24266 +.. date: 8243 +.. nonce: YZgVyM +.. section: Library + +Ctrl+C during Readline history search now cancels the search mode when +compiled with Readline 7. + +.. + +.. bpo: 26560 +.. date: 8242 +.. nonce: A4WXNz +.. section: Library + +Avoid potential ValueError in BaseHandler.start_response. Initial patch by +Peter Inglesby. + +.. + +.. bpo: 26313 +.. date: 8241 +.. nonce: LjZAjy +.. original section: Library +.. section: Security + +ssl.py _load_windows_store_certs fails if windows cert store is empty. Patch +by Baji. + +.. + +.. bpo: 26569 +.. date: 8240 +.. nonce: EX8vF1 +.. section: Library + +Fix :func:`pyclbr.readmodule` and :func:`pyclbr.readmodule_ex` to support +importing packages. + +.. + +.. bpo: 26499 +.. date: 8239 +.. nonce: NP08PI +.. section: Library + +Account for remaining Content-Length in HTTPResponse.readline() and read1(). +Based on patch by Silent Ghost. Also document that HTTPResponse now supports +these methods. + +.. + +.. bpo: 25320 +.. date: 8238 +.. nonce: V96LIy +.. section: Library + +Handle sockets in directories unittest discovery is scanning. Patch from +Victor van den Elzen. + +.. + +.. bpo: 16181 +.. date: 8237 +.. nonce: P7lLvo +.. section: Library + +cookiejar.http2time() now returns None if year is higher than +datetime.MAXYEAR. + +.. + +.. bpo: 26513 +.. date: 8236 +.. nonce: HoPepy +.. section: Library + +Fixes platform module detection of Windows Server + +.. + +.. bpo: 23718 +.. date: 8235 +.. nonce: AMPC0o +.. section: Library + +Fixed parsing time in week 0 before Jan 1. Original patch by Tamás Bence +Gedai. + +.. + +.. bpo: 20589 +.. date: 8234 +.. nonce: NsQ_I1 +.. section: Library + +Invoking Path.owner() and Path.group() on Windows now raise +NotImplementedError instead of ImportError. + +.. + +.. bpo: 26177 +.. date: 8233 +.. nonce: HlSWer +.. section: Library + +Fixed the keys() method for Canvas and Scrollbar widgets. + +.. + +.. bpo: 15068 +.. date: 8232 +.. nonce: bcHtiw +.. section: Library + +Got rid of excessive buffering in the fileinput module. The bufsize +parameter is no longer used. + +.. + +.. bpo: 2202 +.. date: 8231 +.. nonce: dk9sd0 +.. section: Library + +Fix UnboundLocalError in AbstractDigestAuthHandler.get_algorithm_impls. +Initial patch by Mathieu Dupuy. + +.. + +.. bpo: 25718 +.. date: 8230 +.. nonce: 4EjZyv +.. section: Library + +Fixed pickling and copying the accumulate() iterator with total is None. + +.. + +.. bpo: 26475 +.. date: 8229 +.. nonce: JXVccY +.. section: Library + +Fixed debugging output for regular expressions with the (?x) flag. + +.. + +.. bpo: 26457 +.. date: 8228 +.. nonce: Xe6Clh +.. section: Library + +Fixed the subnets() methods in IP network classes for the case when +resulting prefix length is equal to maximal prefix length. Based on patch by +Xiang Zhang. + +.. + +.. bpo: 26385 +.. date: 8227 +.. nonce: 50bDXm +.. section: Library + +Remove the file if the internal open() call in NamedTemporaryFile() fails. +Patch by Silent Ghost. + +.. + +.. bpo: 26402 +.. date: 8226 +.. nonce: k7DVuU +.. section: Library + +Fix XML-RPC client to retry when the server shuts down a persistent +connection. This was a regression related to the new +http.client.RemoteDisconnected exception in 3.5.0a4. + +.. + +.. bpo: 25913 +.. date: 8225 +.. nonce: 5flb95 +.. section: Library + +Leading ``<~`` is optional now in base64.a85decode() with adobe=True. Patch +by Swati Jaiswal. + +.. + +.. bpo: 26186 +.. date: 8224 +.. nonce: R9rfiL +.. section: Library + +Remove an invalid type check in importlib.util.LazyLoader. + +.. + +.. bpo: 26367 +.. date: 8223 +.. nonce: ckpNeU +.. section: Library + +importlib.__import__() raises SystemError like builtins.__import__() when +``level`` is specified but without an accompanying package specified. + +.. + +.. bpo: 26309 +.. date: 8222 +.. nonce: ubEeiz +.. section: Library + +In the "socketserver" module, shut down the request (closing the connected +socket) when verify_request() returns false. Patch by Aviv Palivoda. + +.. + +.. bpo: 25939 +.. date: 8221 +.. nonce: X49Fqd +.. original section: Library +.. section: Security + +On Windows open the cert store readonly in ssl.enum_certificates. + +.. + +.. bpo: 25995 +.. date: 8220 +.. nonce: NfcimP +.. section: Library + +os.walk() no longer uses FDs proportional to the tree depth. + +.. + +.. bpo: 26117 +.. date: 8219 +.. nonce: ne6p11 +.. section: Library + +The os.scandir() iterator now closes file descriptor not only when the +iteration is finished, but when it was failed with error. + +.. + +.. bpo: 25911 +.. date: 8218 +.. nonce: d4Zadh +.. section: Library + +Restored support of bytes paths in os.walk() on Windows. + +.. + +.. bpo: 26045 +.. date: 8217 +.. nonce: WmzUrX +.. section: Library + +Add UTF-8 suggestion to error message when posting a non-Latin-1 string with +http.client. + +.. + +.. bpo: 12923 +.. date: 8216 +.. nonce: HPAu-B +.. section: Library + +Reset FancyURLopener's redirect counter even if there is an exception. +Based on patches by Brian Brazil and Daniel Rocco. + +.. + +.. bpo: 25945 +.. date: 8215 +.. nonce: guNgNM +.. section: Library + +Fixed a crash when unpickle the functools.partial object with wrong state. +Fixed a leak in failed functools.partial constructor. "args" and "keywords" +attributes of functools.partial have now always types tuple and dict +correspondingly. + +.. + +.. bpo: 26202 +.. date: 8214 +.. nonce: LPIXLg +.. section: Library + +copy.deepcopy() now correctly copies range() objects with non-atomic +attributes. + +.. + +.. bpo: 23076 +.. date: 8213 +.. nonce: 8rphoP +.. section: Library + +Path.glob() now raises a ValueError if it's called with an invalid pattern. +Patch by Thomas Nyberg. + +.. + +.. bpo: 19883 +.. date: 8212 +.. nonce: z9TsO6 +.. section: Library + +Fixed possible integer overflows in zipimport. + +.. + +.. bpo: 26227 +.. date: 8211 +.. nonce: Fe6oiB +.. section: Library + +On Windows, getnameinfo(), gethostbyaddr() and gethostbyname_ex() functions +of the socket module now decode the hostname from the ANSI code page rather +than UTF-8. + +.. + +.. bpo: 26147 +.. date: 8210 +.. nonce: i-Jc01 +.. section: Library + +xmlrpc now works with strings not encodable with used non-UTF-8 encoding. + +.. + +.. bpo: 25935 +.. date: 8209 +.. nonce: cyni91 +.. section: Library + +Garbage collector now breaks reference loops with OrderedDict. + +.. + +.. bpo: 16620 +.. date: 8208 +.. nonce: rxpn_Y +.. section: Library + +Fixed AttributeError in msilib.Directory.glob(). + +.. + +.. bpo: 26013 +.. date: 8207 +.. nonce: 93RKNz +.. section: Library + +Added compatibility with broken protocol 2 pickles created in old Python 3 +versions (3.4.3 and lower). + +.. + +.. bpo: 25850 +.. date: 8206 +.. nonce: jwFPxj +.. section: Library + +Use cross-compilation by default for 64-bit Windows. + +.. + +.. bpo: 17633 +.. date: 8205 +.. nonce: 9mpbUO +.. section: Library + +Improve zipimport's support for namespace packages. + +.. + +.. bpo: 24705 +.. date: 8204 +.. nonce: IZYwjR +.. section: Library + +Fix sysconfig._parse_makefile not expanding ${} vars appearing before $() +vars. + +.. + +.. bpo: 22138 +.. date: 8203 +.. nonce: nRNYkc +.. section: Library + +Fix mock.patch behavior when patching descriptors. Restore original values +after patching. Patch contributed by Sean McCully. + +.. + +.. bpo: 25672 +.. date: 8202 +.. nonce: fw9RJP +.. section: Library + +In the ssl module, enable the SSL_MODE_RELEASE_BUFFERS mode option if it is +safe to do so. + +.. + +.. bpo: 26012 +.. date: 8201 +.. nonce: IFSXNm +.. section: Library + +Don't traverse into symlinks for ``**`` pattern in pathlib.Path.[r]glob(). + +.. + +.. bpo: 24120 +.. date: 8200 +.. nonce: Yiwa0h +.. section: Library + +Ignore PermissionError when traversing a tree with pathlib.Path.[r]glob(). +Patch by Ulrich Petri. + +.. + +.. bpo: 25447 +.. date: 8199 +.. nonce: -4m4xO +.. section: Library + +fileinput now uses sys.stdin as-is if it does not have a buffer attribute +(restores backward compatibility). + +.. + +.. bpo: 25447 +.. date: 8198 +.. nonce: AtHkWA +.. section: Library + +Copying the lru_cache() wrapper object now always works, independedly from +the type of the wrapped object (by returning the original object unchanged). + +.. + +.. bpo: 24103 +.. date: 8197 +.. nonce: WufqrQ +.. section: Library + +Fixed possible use after free in ElementTree.XMLPullParser. + +.. + +.. bpo: 25860 +.. date: 8196 +.. nonce: 0hActb +.. section: Library + +os.fwalk() no longer skips remaining directories when error occurs. +Original patch by Samson Lee. + +.. + +.. bpo: 25914 +.. date: 8195 +.. nonce: h0V61F +.. section: Library + +Fixed and simplified OrderedDict.__sizeof__. + +.. + +.. bpo: 25902 +.. date: 8194 +.. nonce: 6t2FmH +.. section: Library + +Fixed various refcount issues in ElementTree iteration. + +.. + +.. bpo: 25717 +.. date: 8193 +.. nonce: 0_xjaK +.. section: Library + +Restore the previous behaviour of tolerating most fstat() errors when +opening files. This was a regression in 3.5a1, and stopped anonymous +temporary files from working in special cases. + +.. + +.. bpo: 24903 +.. date: 8192 +.. nonce: 3LBdzb +.. section: Library + +Fix regression in number of arguments compileall accepts when '-d' is +specified. The check on the number of arguments has been dropped completely +as it never worked correctly anyway. + +.. + +.. bpo: 25764 +.. date: 8191 +.. nonce: 7WWG07 +.. section: Library + +In the subprocess module, preserve any exception caused by fork() failure +when preexec_fn is used. + +.. + +.. bpo: 6478 +.. date: 8190 +.. nonce: -Bi9Hb +.. section: Library + +_strptime's regexp cache now is reset after changing timezone with +time.tzset(). + +.. + +.. bpo: 14285 +.. date: 8189 +.. nonce: UyG8Hj +.. section: Library + +When executing a package with the "python -m package" option, and package +initialization fails, a proper traceback is now reported. The "runpy" +module now lets exceptions from package initialization pass back to the +caller, rather than raising ImportError. + +.. + +.. bpo: 19771 +.. date: 8188 +.. nonce: 5NG-bg +.. section: Library + +Also in runpy and the "-m" option, omit the irrelevant message ". . . is a +package and cannot be directly executed" if the package could not even be +initialized (e.g. due to a bad ``*.pyc`` file). + +.. + +.. bpo: 25177 +.. date: 8187 +.. nonce: aNR4Ha +.. section: Library + +Fixed problem with the mean of very small and very large numbers. As a side +effect, statistics.mean and statistics.variance should be significantly +faster. + +.. + +.. bpo: 25718 +.. date: 8186 +.. nonce: D9mHZF +.. section: Library + +Fixed copying object with state with boolean value is false. + +.. + +.. bpo: 10131 +.. date: 8185 +.. nonce: a7tptz +.. section: Library + +Fixed deep copying of minidom documents. Based on patch by Marian Ganisin. + +.. + +.. bpo: 25725 +.. date: 8184 +.. nonce: XIKv3R +.. section: Library + +Fixed a reference leak in pickle.loads() when unpickling invalid data +including tuple instructions. + +.. + +.. bpo: 25663 +.. date: 8183 +.. nonce: Ofwfqa +.. section: Library + +In the Readline completer, avoid listing duplicate global names, and search +the global namespace before searching builtins. + +.. + +.. bpo: 25688 +.. date: 8182 +.. nonce: 8P1HOv +.. section: Library + +Fixed file leak in ElementTree.iterparse() raising an error. + +.. + +.. bpo: 23914 +.. date: 8181 +.. nonce: 1sEz4J +.. section: Library + +Fixed SystemError raised by unpickler on broken pickle data. + +.. + +.. bpo: 25691 +.. date: 8180 +.. nonce: ZEaapY +.. section: Library + +Fixed crash on deleting ElementTree.Element attributes. + +.. + +.. bpo: 25624 +.. date: 8179 +.. nonce: ed-fM0 +.. section: Library + +ZipFile now always writes a ZIP_STORED header for directory entries. Patch +by Dingyuan Wang. + +.. + +.. bpo: 0 +.. date: 8178 +.. nonce: rtZyid +.. section: Library + +Skip getaddrinfo if host is already resolved. Patch by A. Jesse Jiryu Davis. + +.. + +.. bpo: 26050 +.. date: 8177 +.. nonce: sclyvk +.. section: Library + +Add asyncio.StreamReader.readuntil() method. Patch by Марк Коренберг. + +.. + +.. bpo: 25924 +.. date: 8176 +.. nonce: Uxr2vt +.. section: Library + +Avoid unnecessary serialization of getaddrinfo(3) calls on OS X versions +10.5 or higher. Original patch by A. Jesse Jiryu Davis. + +.. + +.. bpo: 26406 +.. date: 8175 +.. nonce: ihvhF4 +.. section: Library + +Avoid unnecessary serialization of getaddrinfo(3) calls on current versions +of OpenBSD and NetBSD. Patch by A. Jesse Jiryu Davis. + +.. + +.. bpo: 26848 +.. date: 8174 +.. nonce: ChBOpQ +.. section: Library + +Fix asyncio/subprocess.communicate() to handle empty input. Patch by Jack +O'Connor. + +.. + +.. bpo: 27040 +.. date: 8173 +.. nonce: UASyCC +.. section: Library + +Add loop.get_exception_handler method + +.. + +.. bpo: 27041 +.. date: 8172 +.. nonce: p3893U +.. section: Library + +asyncio: Add loop.create_future method + +.. + +.. bpo: 27223 +.. date: 8171 +.. nonce: PRf4I6 +.. section: Library + +asyncio: Fix _read_ready and _write_ready to respect _conn_lost. Patch by +Łukasz Langa. + +.. + +.. bpo: 22970 +.. date: 8170 +.. nonce: WhdhyM +.. section: Library + +asyncio: Fix inconsistency cancelling Condition.wait. Patch by David Coles. + +.. + +.. bpo: 5124 +.. date: 8169 +.. nonce: 4kwBvM +.. section: IDLE + +Paste with text selected now replaces the selection on X11. This matches how +paste works on Windows, Mac, most modern Linux apps, and ttk widgets. +Original patch by Serhiy Storchaka. + +.. + +.. bpo: 24759 +.. date: 8168 +.. nonce: ccmySu +.. section: IDLE + +Make clear in idlelib.idle_test.__init__ that the directory is a private +implementation of test.test_idle and tool for maintainers. + +.. + +.. bpo: 27196 +.. date: 8167 +.. nonce: 3yp8TF +.. section: IDLE + +Stop 'ThemeChanged' warnings when running IDLE tests. These persisted after +other warnings were suppressed in #20567. Apply Serhiy Storchaka's +update_idletasks solution to four test files. Record this additional advice +in idle_test/README.txt + +.. + +.. bpo: 20567 +.. date: 8166 +.. nonce: hhT32b +.. section: IDLE + +Revise idle_test/README.txt with advice about avoiding tk warning messages +from tests. Apply advice to several IDLE tests. + +.. + +.. bpo: 27117 +.. date: 8165 +.. nonce: YrLPf4 +.. section: IDLE + +Make colorizer htest and turtledemo work with dark themes. Move code for +configuring text widget colors to a new function. + +.. + +.. bpo: 26673 +.. date: 8164 +.. nonce: dh0_Ij +.. section: IDLE + +When tk reports font size as 0, change to size 10. Such fonts on Linux +prevented the configuration dialog from opening. + +.. + +.. bpo: 21939 +.. date: 8163 +.. nonce: pWz-OK +.. section: IDLE + +Add test for IDLE's percolator. Original patch by Saimadhav Heblikar. + +.. + +.. bpo: 21676 +.. date: 8162 +.. nonce: hqy6Qh +.. section: IDLE + +Add test for IDLE's replace dialog. Original patch by Saimadhav Heblikar. + +.. + +.. bpo: 18410 +.. date: 8161 +.. nonce: DLSPZo +.. section: IDLE + +Add test for IDLE's search dialog. Original patch by Westley Martínez. + +.. + +.. bpo: 21703 +.. date: 8160 +.. nonce: BAZfDM +.. section: IDLE + +Add test for IDLE's undo delegator. Original patch by Saimadhav Heblikar . + +.. + +.. bpo: 27044 +.. date: 8159 +.. nonce: 4y7tyM +.. section: IDLE + +Add ConfigDialog.remove_var_callbacks to stop memory leaks. + +.. + +.. bpo: 23977 +.. date: 8158 +.. nonce: miDjj8 +.. section: IDLE + +Add more asserts to test_delegator. + +.. + +.. bpo: 20640 +.. date: 8157 +.. nonce: PmI-G8 +.. section: IDLE + +Add tests for idlelib.configHelpSourceEdit. Patch by Saimadhav Heblikar. + +.. + +.. bpo: 0 +.. date: 8156 +.. nonce: _YJfG7 +.. section: IDLE + +In the 'IDLE-console differences' section of the IDLE doc, clarify how +running with IDLE affects sys.modules and the standard streams. + +.. + +.. bpo: 25507 +.. date: 8155 +.. nonce: i8bNpk +.. section: IDLE + +fix incorrect change in IOBinding that prevented printing. Augment IOBinding +htest to include all major IOBinding functions. + +.. + +.. bpo: 25905 +.. date: 8154 +.. nonce: FzNb3B +.. section: IDLE + +Revert unwanted conversion of ' to ’ RIGHT SINGLE QUOTATION MARK in +README.txt and open this and NEWS.txt with 'ascii'. Re-encode CREDITS.txt to +utf-8 and open it with 'utf-8'. + +.. + +.. bpo: 19489 +.. date: 8153 +.. nonce: jvzuO7 +.. section: Documentation + +Moved the search box from the sidebar to the header and footer of each page. +Patch by Ammar Askar. + +.. + +.. bpo: 24136 +.. date: 8152 +.. nonce: MUK0zK +.. section: Documentation + +Document the new PEP 448 unpacking syntax of 3.5. + +.. + +.. bpo: 26736 +.. date: 8151 +.. nonce: U_Hyqo +.. section: Documentation + +Used HTTPS for external links in the documentation if possible. + +.. + +.. bpo: 6953 +.. date: 8150 +.. nonce: Zk6rno +.. section: Documentation + +Rework the Readline module documentation to group related functions +together, and add more details such as what underlying Readline functions +and variables are accessed. + +.. + +.. bpo: 23606 +.. date: 8149 +.. nonce: 9MhIso +.. section: Documentation + +Adds note to ctypes documentation regarding cdll.msvcrt. + +.. + +.. bpo: 25500 +.. date: 8148 +.. nonce: AV47eF +.. section: Documentation + +Fix documentation to not claim that __import__ is searched for in the global +scope. + +.. + +.. bpo: 26014 +.. date: 8147 +.. nonce: ptdZ_I +.. section: Documentation + +Update 3.x packaging documentation: * "See also" links to the new docs are +now provided in the legacy pages * links to setuptools documentation have +been updated + +.. + +.. bpo: 21916 +.. date: 8146 +.. nonce: muwCyp +.. section: Tests + +Added tests for the turtle module. Patch by ingrid, Gregory Loyse and Jelle +Zijlstra. + +.. + +.. bpo: 26523 +.. date: 8145 +.. nonce: em_Uzt +.. section: Tests + +The multiprocessing thread pool (multiprocessing.dummy.Pool) was untested. + +.. + +.. bpo: 26015 +.. date: 8144 +.. nonce: p3oWK3 +.. section: Tests + +Added new tests for pickling iterators of mutable sequences. + +.. + +.. bpo: 26325 +.. date: 8143 +.. nonce: KOUc82 +.. section: Tests + +Added test.support.check_no_resource_warning() to check that no +ResourceWarning is emitted. + +.. + +.. bpo: 25940 +.. date: 8142 +.. nonce: PgiLVN +.. section: Tests + +Changed test_ssl to use self-signed.pythontest.net. This avoids relying on +svn.python.org, which recently changed root certificate. + +.. + +.. bpo: 25616 +.. date: 8141 +.. nonce: Qr-60p +.. section: Tests + +Tests for OrderedDict are extracted from test_collections into separate file +test_ordered_dict. + +.. + +.. bpo: 26583 +.. date: 8140 +.. nonce: Up7hTl +.. section: Tests + +Skip test_timestamp_overflow in test_import if bytecode files cannot be +written. + +.. + +.. bpo: 26884 +.. date: 8139 +.. nonce: O8-azL +.. section: Build + +Fix linking extension modules for cross builds. Patch by Xavier de Gaye. + +.. + +.. bpo: 22359 +.. date: 8138 +.. nonce: HDjM4s +.. section: Build + +Disable the rules for running _freeze_importlib and pgen when cross- +compiling. The output of these programs is normally saved with the source +code anyway, and is still regenerated when doing a native build. Patch by +Xavier de Gaye. + +.. + +.. bpo: 27229 +.. date: 8137 +.. nonce: C2NDch +.. section: Build + +Fix the cross-compiling pgen rule for in-tree builds. Patch by Xavier de +Gaye. + +.. + +.. bpo: 21668 +.. date: 8136 +.. nonce: 4sMAa1 +.. section: Build + +Link audioop, _datetime, _ctypes_test modules to libm, except on Mac OS X. +Patch written by Xavier de Gaye. + +.. + +.. bpo: 25702 +.. date: 8135 +.. nonce: ipxyJs +.. section: Build + +A --with-lto configure option has been added that will enable link time +optimizations at build time during a make profile-opt. Some compilers and +toolchains are known to not produce stable code when using LTO, be sure to +test things thoroughly before relying on it. It can provide a few % speed up +over profile-opt alone. + +.. + +.. bpo: 26624 +.. date: 8134 +.. nonce: 4fGrTl +.. section: Build + +Adds validation of ucrtbase[d].dll version with warning for old versions. + +.. + +.. bpo: 17603 +.. date: 8133 +.. nonce: 102DA- +.. section: Build + +Avoid error about nonexistant fileblocks.o file by using a lower-level check +for st_blocks in struct stat. + +.. + +.. bpo: 26079 +.. date: 8132 +.. nonce: mEzW0O +.. section: Build + +Fixing the build output folder for tix-8.4.3.6. Patch by Bjoern Thiel. + +.. + +.. bpo: 26465 +.. date: 8131 +.. nonce: _YR608 +.. section: Build + +Update Windows builds to use OpenSSL 1.0.2g. + +.. + +.. bpo: 24421 +.. date: 8130 +.. nonce: 2zY7vM +.. section: Build + +Compile Modules/_math.c once, before building extensions. Previously it +could fail to compile properly if the math and cmath builds were concurrent. + +.. + +.. bpo: 25348 +.. date: 8129 +.. nonce: u6_BaQ +.. section: Build + +Added ``--pgo`` and ``--pgo-job`` arguments to ``PCbuild\build.bat`` for +building with Profile-Guided Optimization. The old +``PCbuild\build_pgo.bat`` script is now deprecated, and simply calls +``PCbuild\build.bat --pgo %*``. + +.. + +.. bpo: 25827 +.. date: 8128 +.. nonce: yg3DMM +.. section: Build + +Add support for building with ICC to ``configure``, including a new +``--with-icc`` flag. + +.. + +.. bpo: 25696 +.. date: 8127 +.. nonce: 2R_wIv +.. section: Build + +Fix installation of Python on UNIX with make -j9. + +.. + +.. bpo: 26930 +.. date: 8126 +.. nonce: Sqz2O3 +.. section: Build + +Update OS X 10.5+ 32-bit-only installer to build and link with OpenSSL +1.0.2h. + +.. + +.. bpo: 26268 +.. date: 8125 +.. nonce: I3-YLh +.. section: Build + +Update Windows builds to use OpenSSL 1.0.2f. + +.. + +.. bpo: 25136 +.. date: 8124 +.. nonce: Vi-fmO +.. section: Build + +Support Apple Xcode 7's new textual SDK stub libraries. + +.. + +.. bpo: 24324 +.. date: 8123 +.. nonce: m6DZMx +.. section: Build + +Do not enable unreachable code warnings when using gcc as the option does +not work correctly in older versions of gcc and has been silently removed as +of gcc-4.5. + +.. + +.. bpo: 27053 +.. date: 8122 +.. nonce: 1IRbae +.. section: Windows + +Updates make_zip.py to correctly generate library ZIP file. + +.. + +.. bpo: 26268 +.. date: 8121 +.. nonce: Z-lJEh +.. section: Windows + +Update the prepare_ssl.py script to handle OpenSSL releases that don't +include the contents of the include directory (that is, 1.0.2e and later). + +.. + +.. bpo: 26071 +.. date: 8120 +.. nonce: wLxL2l +.. section: Windows + +bdist_wininst created binaries fail to start and find 32bit Python + +.. + +.. bpo: 26073 +.. date: 8119 +.. nonce: XwWgHp +.. section: Windows + +Update the list of magic numbers in launcher + +.. + +.. bpo: 26065 +.. date: 8118 +.. nonce: SkVLJp +.. section: Windows + +Excludes venv from library when generating embeddable distro. + +.. + +.. bpo: 26799 +.. date: 8117 +.. nonce: gK2VXX +.. section: Tools/Demos + +Fix python-gdb.py: don't get C types once when the Python code is loaded, +but get C types on demand. The C types can change if python-gdb.py is loaded +before the Python executable. Patch written by Thomas Ilsche. + +.. + +.. bpo: 26271 +.. date: 8116 +.. nonce: wg-rzr +.. section: Tools/Demos + +Fix the Freeze tool to properly use flags passed through configure. Patch by +Daniel Shaulov. + +.. + +.. bpo: 26489 +.. date: 8115 +.. nonce: rJ_U5S +.. section: Tools/Demos + +Add dictionary unpacking support to Tools/parser/unparse.py. Patch by Guo Ci +Teo. + +.. + +.. bpo: 26316 +.. date: 8114 +.. nonce: QJvVOi +.. section: Tools/Demos + +Fix variable name typo in Argument Clinic. + +.. + +.. bpo: 17500 +.. date: 8113 +.. nonce: QTZbRV +.. section: Windows + +Remove unused and outdated icons. (See also: +https://github.com/python/pythondotorg/issues/945) diff --git a/Misc/NEWS.d/3.5.3.rst b/Misc/NEWS.d/3.5.3.rst new file mode 100644 index 0000000..da804dc --- /dev/null +++ b/Misc/NEWS.d/3.5.3.rst @@ -0,0 +1,7 @@ +.. bpo: 0 +.. date: 8559 +.. no changes: True +.. nonce: zYPqUK +.. release date: 2017-01-17 + +There were no code changes between 3.5.3rc1 and 3.5.3 final. diff --git a/Misc/NEWS.d/3.5.3rc1.rst b/Misc/NEWS.d/3.5.3rc1.rst new file mode 100644 index 0000000..5c6859c --- /dev/null +++ b/Misc/NEWS.d/3.5.3rc1.rst @@ -0,0 +1,2164 @@ +.. bpo: 29073 +.. date: 8558 +.. nonce: EFpHQ7 +.. release date: 2017-01-02 +.. section: Core and Builtins + +bytearray formatting no longer truncates on first null byte. + +.. + +.. bpo: 28932 +.. date: 8557 +.. nonce: QnLx8A +.. section: Core and Builtins + +Do not include <sys/random.h> if it does not exist. + +.. + +.. bpo: 28147 +.. date: 8556 +.. nonce: EV4bm6 +.. section: Core and Builtins + +Fix a memory leak in split-table dictionaries: setattr() must not convert +combined table into split table. + +.. + +.. bpo: 25677 +.. date: 8555 +.. nonce: RWhZrb +.. section: Core and Builtins + +Correct the positioning of the syntax error caret for indented blocks. +Based on patch by Michael Layzell. + +.. + +.. bpo: 29000 +.. date: 8554 +.. nonce: K6wQ-3 +.. section: Core and Builtins + +Fixed bytes formatting of octals with zero padding in alternate form. + +.. + +.. bpo: 28512 +.. date: 8553 +.. nonce: i-pv6d +.. section: Core and Builtins + +Fixed setting the offset attribute of SyntaxError by +PyErr_SyntaxLocationEx() and PyErr_SyntaxLocationObject(). + +.. + +.. bpo: 28991 +.. date: 8552 +.. nonce: -qOTxS +.. section: Core and Builtins + +functools.lru_cache() was susceptible to an obscure reentrancy bug caused by +a monkey-patched len() function. + +.. + +.. bpo: 28648 +.. date: 8551 +.. nonce: z7B52W +.. section: Core and Builtins + +Fixed crash in Py_DecodeLocale() in debug build on Mac OS X when decode +astral characters. Patch by Xiang Zhang. + +.. + +.. bpo: 19398 +.. date: 8550 +.. nonce: RYbEGH +.. section: Core and Builtins + +Extra slash no longer added to sys.path components in case of empty compile- +time PYTHONPATH components. + +.. + +.. bpo: 28426 +.. date: 8549 +.. nonce: E_quyK +.. section: Core and Builtins + +Fixed potential crash in PyUnicode_AsDecodedObject() in debug build. + +.. + +.. bpo: 23782 +.. date: 8548 +.. nonce: lonDzj +.. section: Core and Builtins + +Fixed possible memory leak in _PyTraceback_Add() and exception loss in +PyTraceBack_Here(). + +.. + +.. bpo: 28379 +.. date: 8547 +.. nonce: DuXlco +.. section: Core and Builtins + +Added sanity checks and tests for PyUnicode_CopyCharacters(). Patch by Xiang +Zhang. + +.. + +.. bpo: 28376 +.. date: 8546 +.. nonce: oPD-5D +.. section: Core and Builtins + +The type of long range iterator is now registered as Iterator. Patch by Oren +Milman. + +.. + +.. bpo: 28376 +.. date: 8545 +.. nonce: fLeHM2 +.. section: Core and Builtins + +The constructor of range_iterator now checks that step is not 0. Patch by +Oren Milman. + +.. + +.. bpo: 26906 +.. date: 8544 +.. nonce: YBjcwI +.. section: Core and Builtins + +Resolving special methods of uninitialized type now causes implicit +initialization of the type instead of a fail. + +.. + +.. bpo: 18287 +.. date: 8543 +.. nonce: k6jffS +.. section: Core and Builtins + +PyType_Ready() now checks that tp_name is not NULL. Original patch by Niklas +Koep. + +.. + +.. bpo: 24098 +.. date: 8542 +.. nonce: XqlP_1 +.. section: Core and Builtins + +Fixed possible crash when AST is changed in process of compiling it. + +.. + +.. bpo: 28350 +.. date: 8541 +.. nonce: 8M5Eg9 +.. section: Core and Builtins + +String constants with null character no longer interned. + +.. + +.. bpo: 26617 +.. date: 8540 +.. nonce: Gh5LvN +.. section: Core and Builtins + +Fix crash when GC runs during weakref callbacks. + +.. + +.. bpo: 27942 +.. date: 8539 +.. nonce: ZGuhns +.. section: Core and Builtins + +String constants now interned recursively in tuples and frozensets. + +.. + +.. bpo: 21578 +.. date: 8538 +.. nonce: GI1bhj +.. section: Core and Builtins + +Fixed misleading error message when ImportError called with invalid keyword +args. + +.. + +.. bpo: 28203 +.. date: 8537 +.. nonce: kOgvtp +.. section: Core and Builtins + +Fix incorrect type in error message from ``complex(1.0, {2:3})``. Patch by +Soumya Sharma. + +.. + +.. bpo: 27955 +.. date: 8536 +.. nonce: HC4pZ4 +.. section: Core and Builtins + +Fallback on reading /dev/urandom device when the getrandom() syscall fails +with EPERM, for example when blocked by SECCOMP. + +.. + +.. bpo: 28131 +.. date: 8535 +.. nonce: owq0wW +.. section: Core and Builtins + +Fix a regression in zipimport's compile_source(). zipimport should use the +same optimization level as the interpreter. + +.. + +.. bpo: 25221 +.. date: 8534 +.. nonce: Zvkz9i +.. section: Core and Builtins + +Fix corrupted result from PyLong_FromLong(0) when Python is compiled with +NSMALLPOSINTS = 0. + +.. + +.. bpo: 25758 +.. date: 8533 +.. nonce: yR-YTD +.. section: Core and Builtins + +Prevents zipimport from unnecessarily encoding a filename (patch by Eryk +Sun) + +.. + +.. bpo: 28189 +.. date: 8532 +.. nonce: c_nbR_ +.. section: Core and Builtins + +dictitems_contains no longer swallows compare errors. (Patch by Xiang Zhang) + +.. + +.. bpo: 27812 +.. date: 8531 +.. nonce: sidcs8 +.. section: Core and Builtins + +Properly clear out a generator's frame's backreference to the generator to +prevent crashes in frame.clear(). + +.. + +.. bpo: 27811 +.. date: 8530 +.. nonce: T4AuBo +.. section: Core and Builtins + +Fix a crash when a coroutine that has not been awaited is finalized with +warnings-as-errors enabled. + +.. + +.. bpo: 27587 +.. date: 8529 +.. nonce: mbavY2 +.. section: Core and Builtins + +Fix another issue found by PVS-Studio: Null pointer check after use of 'def' +in _PyState_AddModule(). Initial patch by Christian Heimes. + +.. + +.. bpo: 26020 +.. date: 8528 +.. nonce: niLbLa +.. section: Core and Builtins + +set literal evaluation order did not match documented behaviour. + +.. + +.. bpo: 27782 +.. date: 8527 +.. nonce: C8OBQD +.. section: Core and Builtins + +Multi-phase extension module import now correctly allows the ``m_methods`` +field to be used to add module level functions to instances of non-module +types returned from ``Py_create_mod``. Patch by Xiang Zhang. + +.. + +.. bpo: 27936 +.. date: 8526 +.. nonce: AdOann +.. section: Core and Builtins + +The round() function accepted a second None argument for some types but not +for others. Fixed the inconsistency by accepting None for all numeric +types. + +.. + +.. bpo: 27487 +.. date: 8525 +.. nonce: jeTQNr +.. section: Core and Builtins + +Warn if a submodule argument to "python -m" or runpy.run_module() is found +in sys.modules after parent packages are imported, but before the submodule +is executed. + +.. + +.. bpo: 27558 +.. date: 8524 +.. nonce: VmltMh +.. section: Core and Builtins + +Fix a SystemError in the implementation of "raise" statement. In a brand new +thread, raise a RuntimeError since there is no active exception to reraise. +Patch written by Xiang Zhang. + +.. + +.. bpo: 27419 +.. date: 8523 +.. nonce: JZ94ju +.. section: Core and Builtins + +Standard __import__() no longer look up "__import__" in globals or builtins +for importing submodules or "from import". Fixed handling an error of non- +string package name. + +.. + +.. bpo: 27083 +.. date: 8522 +.. nonce: F4ZT1C +.. section: Core and Builtins + +Respect the PYTHONCASEOK environment variable under Windows. + +.. + +.. bpo: 27514 +.. date: 8521 +.. nonce: NLbwPG +.. section: Core and Builtins + +Make having too many statically nested blocks a SyntaxError instead of +SystemError. + +.. + +.. bpo: 27473 +.. date: 8520 +.. nonce: _nOtTA +.. section: Core and Builtins + +Fixed possible integer overflow in bytes and bytearray concatenations. +Patch by Xiang Zhang. + +.. + +.. bpo: 27507 +.. date: 8519 +.. nonce: 3pX0Be +.. section: Core and Builtins + +Add integer overflow check in bytearray.extend(). Patch by Xiang Zhang. + +.. + +.. bpo: 27581 +.. date: 8518 +.. nonce: KezjNt +.. section: Core and Builtins + +Don't rely on wrapping for overflow check in PySequence_Tuple(). Patch by +Xiang Zhang. + +.. + +.. bpo: 27443 +.. date: 8517 +.. nonce: 87ZwZ1 +.. section: Core and Builtins + +__length_hint__() of bytearray iterators no longer return a negative integer +for a resized bytearray. + +.. + +.. bpo: 27942 +.. date: 8516 +.. nonce: wCAkW5 +.. section: Core and Builtins + +Fix memory leak in codeobject.c + +.. + +.. bpo: 15812 +.. date: 8515 +.. nonce: R1U-Ec +.. section: Library + +inspect.getframeinfo() now correctly shows the first line of a context. +Patch by Sam Breese. + +.. + +.. bpo: 29094 +.. date: 8514 +.. nonce: 460ZQo +.. section: Library + +Offsets in a ZIP file created with extern file object and modes "w" and "x" +now are relative to the start of the file. + +.. + +.. bpo: 13051 +.. date: 8513 +.. nonce: YzC1Te +.. section: Library + +Fixed recursion errors in large or resized curses.textpad.Textbox. Based on +patch by Tycho Andersen. + +.. + +.. bpo: 29119 +.. date: 8512 +.. nonce: Ov69fr +.. section: Library + +Fix weakrefs in the pure python version of collections.OrderedDict +move_to_end() method. Contributed by Andra Bogildea. + +.. + +.. bpo: 9770 +.. date: 8511 +.. nonce: WJJnwP +.. section: Library + +curses.ascii predicates now work correctly with negative integers. + +.. + +.. bpo: 28427 +.. date: 8510 +.. nonce: vUd-va +.. section: Library + +old keys should not remove new values from WeakValueDictionary when +collecting from another thread. + +.. + +.. bpo: 28923 +.. date: 8509 +.. nonce: naVULD +.. section: Library + +Remove editor artifacts from Tix.py. + +.. + +.. bpo: 28871 +.. date: 8508 +.. nonce: cPMXCJ +.. section: Library + +Fixed a crash when deallocate deep ElementTree. + +.. + +.. bpo: 19542 +.. date: 8507 +.. nonce: 5tCkaK +.. section: Library + +Fix bugs in WeakValueDictionary.setdefault() and WeakValueDictionary.pop() +when a GC collection happens in another thread. + +.. + +.. bpo: 20191 +.. date: 8506 +.. nonce: P_EZ7c +.. section: Library + +Fixed a crash in resource.prlimit() when pass a sequence that doesn't own +its elements as limits. + +.. + +.. bpo: 28779 +.. date: 8505 +.. nonce: t-mjED +.. section: Library + +multiprocessing.set_forkserver_preload() would crash the forkserver process +if a preloaded module instantiated some multiprocessing objects such as +locks. + +.. + +.. bpo: 28847 +.. date: 8504 +.. nonce: J7d3nG +.. section: Library + +dbm.dumb now supports reading read-only files and no longer writes the index +file when it is not changed. + +.. + +.. bpo: 25659 +.. date: 8503 +.. nonce: lE2IlT +.. section: Library + +In ctypes, prevent a crash calling the from_buffer() and from_buffer_copy() +methods on abstract classes like Array. + +.. + +.. bpo: 28732 +.. date: 8502 +.. nonce: xkG8k7 +.. section: Library + +Fix crash in os.spawnv() with no elements in args + +.. + +.. bpo: 28485 +.. date: 8501 +.. nonce: WuKqKh +.. section: Library + +Always raise ValueError for negative compileall.compile_dir(workers=...) +parameter, even when multithreading is unavailable. + +.. + +.. bpo: 28387 +.. date: 8500 +.. nonce: 1clJu7 +.. section: Library + +Fixed possible crash in _io.TextIOWrapper deallocator when the garbage +collector is invoked in other thread. Based on patch by Sebastian Cufre. + +.. + +.. bpo: 27517 +.. date: 8499 +.. nonce: 1CYM8A +.. section: Library + +LZMA compressor and decompressor no longer raise exceptions if given empty +data twice. Patch by Benjamin Fogle. + +.. + +.. bpo: 28549 +.. date: 8498 +.. nonce: ShnM2y +.. section: Library + +Fixed segfault in curses's addch() with ncurses6. + +.. + +.. bpo: 28449 +.. date: 8497 +.. nonce: 5JK6ES +.. section: Library + +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. + +.. + +.. bpo: 23262 +.. date: 8496 +.. nonce: 6EVB7N +.. section: Library + +The webbrowser module now supports Firefox 36+ and derived browsers. Based +on patch by Oleg Broytman. + +.. + +.. bpo: 27939 +.. date: 8495 +.. nonce: mTfADV +.. section: Library + +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. + +.. + +.. bpo: 28255 +.. date: 8494 +.. nonce: _ZH4wm +.. section: Library + +calendar.TextCalendar().prmonth() no longer prints a space at the start of +new line after printing a month's calendar. Patch by Xiang Zhang. + +.. + +.. bpo: 20491 +.. date: 8493 +.. nonce: ObgnQ2 +.. section: Library + +The textwrap.TextWrapper class now honors non-breaking spaces. Based on +patch by Kaarle Ritvanen. + +.. + +.. bpo: 28353 +.. date: 8492 +.. nonce: sKGbLL +.. section: Library + +os.fwalk() no longer fails on broken links. + +.. + +.. bpo: 25464 +.. date: 8491 +.. nonce: HDUTCu +.. section: Library + +Fixed HList.header_exists() in tkinter.tix module by addin a workaround to +Tix library bug. + +.. + +.. bpo: 28488 +.. date: 8490 +.. nonce: NlkjBM +.. section: Library + +shutil.make_archive() no longer add entry "./" to ZIP archive. + +.. + +.. bpo: 24452 +.. date: 8489 +.. nonce: m9Kyg3 +.. section: Library + +Make webbrowser support Chrome on Mac OS X. + +.. + +.. bpo: 20766 +.. date: 8488 +.. nonce: 4kvCzx +.. section: Library + +Fix references leaked by pdb in the handling of SIGINT handlers. + +.. + +.. bpo: 26293 +.. date: 8487 +.. nonce: 2mjvwX +.. section: Library + +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. + +.. + +.. bpo: 28321 +.. date: 8486 +.. nonce: bQ-IIX +.. section: Library + +Fixed writing non-BMP characters with binary format in plistlib. + +.. + +.. bpo: 28322 +.. date: 8485 +.. nonce: l9hzap +.. section: Library + +Fixed possible crashes when unpickle itertools objects from incorrect pickle +data. Based on patch by John Leitch. + +.. + +.. bpo: 0 +.. date: 8484 +.. nonce: 81jNns +.. section: Library + +Fix possible integer overflows and crashes in the mmap module with unusual +usage patterns. + +.. + +.. bpo: 1703178 +.. date: 8483 +.. nonce: meb49K +.. section: Library + +Fix the ability to pass the --link-objects option to the distutils build_ext +command. + +.. + +.. bpo: 28253 +.. date: 8482 +.. nonce: aLfmhe +.. section: Library + +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. + +.. + +.. bpo: 28275 +.. date: 8481 +.. nonce: EhWIsz +.. section: Library + +Fixed possible use after free in the decompress() methods of the +LZMADecompressor and BZ2Decompressor classes. Original patch by John Leitch. + +.. + +.. bpo: 27897 +.. date: 8480 +.. nonce: I0Ppmx +.. section: Library + +Fixed possible crash in sqlite3.Connection.create_collation() if pass +invalid string-like object as a name. Patch by Xiang Zhang. + +.. + +.. bpo: 18893 +.. date: 8479 +.. nonce: osiX5c +.. section: Library + +Fix invalid exception handling in Lib/ctypes/macholib/dyld.py. Patch by +Madison May. + +.. + +.. bpo: 27611 +.. date: 8478 +.. nonce: qL-UVQ +.. section: Library + +Fixed support of default root window in the tkinter.tix module. + +.. + +.. bpo: 27348 +.. date: 8477 +.. nonce: tDx7Vw +.. section: Library + +In the traceback module, restore the formatting of exception messages like +"Exception: None". This fixes a regression introduced in 3.5a2. + +.. + +.. bpo: 25651 +.. date: 8476 +.. nonce: 3UhyPo +.. section: Library + +Allow falsy values to be used for msg parameter of subTest(). + +.. + +.. bpo: 27932 +.. date: 8475 +.. nonce: mtgl-6 +.. section: Library + +Prevent memory leak in win32_ver(). + +.. + +.. bpo: 0 +.. date: 8474 +.. nonce: iPpjqX +.. section: Library + +Fix UnboundLocalError in socket._sendfile_use_sendfile. + +.. + +.. bpo: 28075 +.. date: 8473 +.. nonce: aLiUs9 +.. section: Library + +Check for ERROR_ACCESS_DENIED in Windows implementation of os.stat(). Patch +by Eryk Sun. + +.. + +.. bpo: 25270 +.. date: 8472 +.. nonce: jrZruM +.. section: Library + +Prevent codecs.escape_encode() from raising SystemError when an empty +bytestring is passed. + +.. + +.. bpo: 28181 +.. date: 8471 +.. nonce: NGc4Yv +.. section: Library + +Get antigravity over HTTPS. Patch by Kaartic Sivaraam. + +.. + +.. bpo: 25895 +.. date: 8470 +.. nonce: j92qoQ +.. section: Library + +Enable WebSocket URL schemes in urllib.parse.urljoin. Patch by Gergely Imreh +and Markus Holtermann. + +.. + +.. bpo: 27599 +.. date: 8469 +.. nonce: itvm8T +.. section: Library + +Fixed buffer overrun in binascii.b2a_qp() and binascii.a2b_qp(). + +.. + +.. bpo: 19003 +.. date: 8468 +.. nonce: UUcK_F +.. section: Library + +m email.generator now replaces only ``\r`` and/or ``\n`` line endings, per +the RFC, instead of all unicode line endings. + +.. + +.. bpo: 28019 +.. date: 8467 +.. nonce: KUhBaS +.. section: Library + +itertools.count() no longer rounds non-integer step in range between 1.0 and +2.0 to 1. + +.. + +.. bpo: 25969 +.. date: 8466 +.. nonce: qSPkl- +.. section: Library + +Update the lib2to3 grammar to handle the unpacking generalizations added in +3.5. + +.. + +.. bpo: 14977 +.. date: 8465 +.. nonce: 4MvALg +.. section: Library + +mailcap now respects the order of the lines in the mailcap files ("first +match"), as required by RFC 1542. Patch by Michael Lazar. + +.. + +.. bpo: 24594 +.. date: 8464 +.. nonce: 9CnFVS +.. section: Library + +Validates persist parameter when opening MSI database + +.. + +.. bpo: 17582 +.. date: 8463 +.. nonce: MXEHxQ +.. section: Library + +xml.etree.ElementTree nows preserves whitespaces in attributes (Patch by +Duane Griffin. Reviewed and approved by Stefan Behnel.) + +.. + +.. bpo: 28047 +.. date: 8462 +.. nonce: pDu3Fm +.. section: Library + +Fixed calculation of line length used for the base64 CTE in the new email +policies. + +.. + +.. bpo: 27445 +.. date: 8461 +.. nonce: wOG0C0 +.. section: Library + +Don't pass str(_charset) to MIMEText.set_payload(). Patch by Claude Paroz. + +.. + +.. bpo: 22450 +.. date: 8460 +.. nonce: T3Sn_J +.. section: Library + +urllib now includes an ``Accept: */*`` header among the default headers. +This makes the results of REST API requests more consistent and predictable +especially when proxy servers are involved. + +.. + +.. bpo: 0 +.. date: 8459 +.. nonce: PVZStR +.. section: Library + +lib2to3.pgen3.driver.load_grammar() now creates a stable cache file between +runs given the same Grammar.txt input regardless of the hash randomization +setting. + +.. + +.. bpo: 27570 +.. date: 8458 +.. nonce: pU0Zie +.. section: Library + +Avoid zero-length memcpy() etc calls with null source pointers in the +"ctypes" and "array" modules. + +.. + +.. bpo: 22233 +.. date: 8457 +.. nonce: uXSN0R +.. section: Library + +Break email header lines *only* on the RFC specified CR and LF characters, +not on arbitrary unicode line breaks. This also fixes a bug in HTTP header +parsing. + +.. + +.. bpo: 27988 +.. date: 8456 +.. nonce: VfMzZH +.. section: Library + +Fix email iter_attachments incorrect mutation of payload list. + +.. + +.. bpo: 27691 +.. date: 8455 +.. nonce: TMYF5_ +.. section: Library + +Fix ssl module's parsing of GEN_RID subject alternative name fields in X.509 +certs. + +.. + +.. bpo: 27850 +.. date: 8454 +.. nonce: kIVQ0m +.. section: Library + +Remove 3DES from ssl module's default cipher list to counter measure sweet32 +attack (CVE-2016-2183). + +.. + +.. bpo: 27766 +.. date: 8453 +.. nonce: WI70Tc +.. section: Library + +Add ChaCha20 Poly1305 to ssl module's default ciper list. (Required OpenSSL +1.1.0 or LibreSSL). + +.. + +.. bpo: 26470 +.. date: 8452 +.. nonce: QGu_wo +.. section: Library + +Port ssl and hashlib module to OpenSSL 1.1.0. + +.. + +.. bpo: 0 +.. date: 8451 +.. nonce: 6TjEgz +.. section: Library + +Remove support for passing a file descriptor to os.access. It never worked +but previously didn't raise. + +.. + +.. bpo: 12885 +.. date: 8450 +.. nonce: r-IV1g +.. section: Library + +Fix error when distutils encounters symlink. + +.. + +.. bpo: 27881 +.. date: 8449 +.. nonce: fkETd9 +.. section: Library + +Fixed possible bugs when setting sqlite3.Connection.isolation_level. Based +on patch by Xiang Zhang. + +.. + +.. bpo: 27861 +.. date: 8448 +.. nonce: DBYuo9 +.. section: Library + +Fixed a crash in sqlite3.Connection.cursor() when a factory creates not a +cursor. Patch by Xiang Zhang. + +.. + +.. bpo: 19884 +.. date: 8447 +.. nonce: MO8AWH +.. section: Library + +Avoid spurious output on OS X with Gnu Readline. + +.. + +.. bpo: 27706 +.. date: 8446 +.. nonce: ZY67yu +.. section: Library + +Restore deterministic behavior of random.Random().seed() for string seeds +using seeding version 1. Allows sequences of calls to random() to exactly +match those obtained in Python 2. Patch by Nofar Schnider. + +.. + +.. bpo: 10513 +.. date: 8445 +.. nonce: tQIQD_ +.. section: Library + +Fix a regression in Connection.commit(). Statements should not be reset +after a commit. + +.. + +.. bpo: 0 +.. date: 8444 +.. nonce: cYraeH +.. section: Library + +A new version of typing.py from https://github.com/python/typing: - +Collection (only for 3.6) (Issue #27598) - Add FrozenSet to __all__ +(upstream #261) - fix crash in _get_type_vars() (upstream #259) - Remove the +dict constraint in ForwardRef._eval_type (upstream #252) + +.. + +.. bpo: 27539 +.. date: 8443 +.. nonce: S4L1cq +.. section: Library + +Fix unnormalised ``Fraction.__pow__`` result in the case of negative +exponent and negative base. + +.. + +.. bpo: 21718 +.. date: 8442 +.. nonce: FUJd-7 +.. section: Library + +cursor.description is now available for queries using CTEs. + +.. + +.. bpo: 2466 +.. date: 8441 +.. nonce: VRNlkg +.. section: Library + +posixpath.ismount now correctly recognizes mount points which the user does +not have permission to access. + +.. + +.. bpo: 27773 +.. date: 8440 +.. nonce: hMSSeX +.. section: Library + +Correct some memory management errors server_hostname in _ssl.wrap_socket(). + +.. + +.. bpo: 26750 +.. date: 8439 +.. nonce: rv76vt +.. section: Library + +unittest.mock.create_autospec() now works properly for subclasses of +property() and other data descriptors. + +.. + +.. bpo: 0 +.. date: 8438 +.. nonce: Ny9oPv +.. section: Library + +In the curses module, raise an error if window.getstr() or window.instr() is +passed a negative value. + +.. + +.. bpo: 27783 +.. date: 8437 +.. nonce: cR1jXH +.. section: Library + +Fix possible usage of uninitialized memory in operator.methodcaller. + +.. + +.. bpo: 27774 +.. date: 8436 +.. nonce: FDcik1 +.. section: Library + +Fix possible Py_DECREF on unowned object in _sre. + +.. + +.. bpo: 27760 +.. date: 8435 +.. nonce: gxMjp4 +.. section: Library + +Fix possible integer overflow in binascii.b2a_qp. + +.. + +.. bpo: 27758 +.. date: 8434 +.. nonce: 0NRV03 +.. section: Library + +Fix possible integer overflow in the _csv module for large record lengths. + +.. + +.. bpo: 27568 +.. date: 8433 +.. nonce: OnuO9s +.. section: Library + +Prevent HTTPoxy attack (CVE-2016-1000110). Ignore the HTTP_PROXY variable +when REQUEST_METHOD environment is set, which indicates that the script is +in CGI mode. + +.. + +.. bpo: 27656 +.. date: 8432 +.. nonce: joTscM +.. section: Library + +Do not assume sched.h defines any SCHED_* constants. + +.. + +.. bpo: 27130 +.. date: 8431 +.. nonce: SUxwXZ +.. section: Library + +In the "zlib" module, fix handling of large buffers (typically 4 GiB) when +compressing and decompressing. Previously, inputs were limited to 4 GiB, +and compression and decompression operations did not properly handle results +of 4 GiB. + +.. + +.. bpo: 27533 +.. date: 8430 +.. nonce: iDmKzV +.. section: Library + +Release GIL in nt._isdir + +.. + +.. bpo: 17711 +.. date: 8429 +.. nonce: 47AILJ +.. section: Library + +Fixed unpickling by the persistent ID with protocol 0. Original patch by +Alexandre Vassalotti. + +.. + +.. bpo: 27522 +.. date: 8428 +.. nonce: 8vVz_t +.. section: Library + +Avoid an unintentional reference cycle in email.feedparser. + +.. + +.. bpo: 26844 +.. date: 8427 +.. nonce: I0wdnY +.. section: Library + +Fix error message for imp.find_module() to refer to 'path' instead of +'name'. Patch by Lev Maximov. + +.. + +.. bpo: 23804 +.. date: 8426 +.. nonce: ipFvxc +.. section: Library + +Fix SSL zero-length recv() calls to not block and not raise an error about +unclean EOF. + +.. + +.. bpo: 27466 +.. date: 8425 +.. nonce: C_3a8E +.. section: Library + +Change time format returned by http.cookie.time2netscape, confirming the +netscape cookie format and making it consistent with documentation. + +.. + +.. bpo: 26664 +.. date: 8424 +.. nonce: OzsSzf +.. section: Library + +Fix activate.fish by removing mis-use of ``$``. + +.. + +.. bpo: 22115 +.. date: 8423 +.. nonce: apoFQ9 +.. section: Library + +Fixed tracing Tkinter variables: trace_vdelete() with wrong mode no longer +break tracing, trace_vinfo() now always returns a list of pairs of strings, +tracing in the "u" mode now works. + +.. + +.. bpo: 0 +.. date: 8422 +.. nonce: oZOeFE +.. section: Library + +Fix a scoping issue in importlib.util.LazyLoader which triggered an +UnboundLocalError when lazy-loading a module that was already put into +sys.modules. + +.. + +.. bpo: 27079 +.. date: 8421 +.. nonce: c7d0Ym +.. section: Library + +Fixed curses.ascii functions isblank(), iscntrl() and ispunct(). + +.. + +.. bpo: 26754 +.. date: 8420 +.. nonce: J3n0QW +.. section: Library + +Some functions (compile() etc) accepted a filename argument encoded as an +iterable of integers. Now only strings and byte-like objects are accepted. + +.. + +.. bpo: 27048 +.. date: 8419 +.. nonce: EVe-Bk +.. section: Library + +Prevents distutils failing on Windows when environment variables contain +non-ASCII characters + +.. + +.. bpo: 27330 +.. date: 8418 +.. nonce: GJaFCV +.. section: Library + +Fixed possible leaks in the ctypes module. + +.. + +.. bpo: 27238 +.. date: 8417 +.. nonce: Q6v6Qv +.. section: Library + +Got rid of bare excepts in the turtle module. Original patch by Jelle +Zijlstra. + +.. + +.. bpo: 27122 +.. date: 8416 +.. nonce: 06t7zN +.. section: Library + +When an exception is raised within the context being managed by a +contextlib.ExitStack() and one of the exit stack generators catches and +raises it in a chain, do not re-raise the original exception when exiting, +let the new chained one through. This avoids the PEP 479 bug described in +issue25782. + +.. + +.. bpo: 27278 +.. date: 8415 +.. nonce: y_HkGw +.. original section: Library +.. section: Security + +Fix os.urandom() implementation using getrandom() on Linux. Truncate size +to INT_MAX and loop until we collected enough random bytes, instead of +casting a directly Py_ssize_t to int. + +.. + +.. bpo: 26386 +.. date: 8414 +.. nonce: 9L3Ut4 +.. section: Library + +Fixed ttk.TreeView selection operations with item id's containing spaces. + +.. + +.. bpo: 22636 +.. date: 8413 +.. nonce: 3fQW_g +.. original section: Library +.. section: Security + +Avoid shell injection problems with ctypes.util.find_library(). + +.. + +.. bpo: 16182 +.. date: 8412 +.. nonce: RgFXyr +.. section: Library + +Fix various functions in the "readline" module to use the locale encoding, +and fix get_begidx() and get_endidx() to return code point indexes. + +.. + +.. bpo: 27392 +.. date: 8411 +.. nonce: obfni7 +.. section: Library + +Add loop.connect_accepted_socket(). Patch by Jim Fulton. + +.. + +.. bpo: 27930 +.. date: 8410 +.. nonce: BkOfSi +.. section: Library + +Improved behaviour of logging.handlers.QueueListener. Thanks to Paulo +Andrade and Petr Viktorin for the analysis and patch. + +.. + +.. bpo: 21201 +.. date: 8409 +.. nonce: wLCKiA +.. section: Library + +Improves readability of multiprocessing error message. Thanks to Wojciech +Walczak for patch. + +.. + +.. bpo: 27456 +.. date: 8408 +.. nonce: lI_IE7 +.. section: Library + +asyncio: Set TCP_NODELAY by default. + +.. + +.. bpo: 27906 +.. date: 8407 +.. nonce: TBBXrv +.. section: Library + +Fix socket accept exhaustion during high TCP traffic. Patch by Kevin Conway. + +.. + +.. bpo: 28174 +.. date: 8406 +.. nonce: CV1UdI +.. section: Library + +Handle when SO_REUSEPORT isn't properly supported. Patch by Seth Michael +Larson. + +.. + +.. bpo: 26654 +.. date: 8405 +.. nonce: XtzTE9 +.. section: Library + +Inspect functools.partial in asyncio.Handle.__repr__. Patch by iceboy. + +.. + +.. bpo: 26909 +.. date: 8404 +.. nonce: ASiakT +.. section: Library + +Fix slow pipes IO in asyncio. Patch by INADA Naoki. + +.. + +.. bpo: 28176 +.. date: 8403 +.. nonce: sU8R6L +.. section: Library + +Fix callbacks race in asyncio.SelectorLoop.sock_connect. + +.. + +.. bpo: 27759 +.. date: 8402 +.. nonce: qpMDGq +.. section: Library + +Fix selectors incorrectly retain invalid file descriptors. Patch by Mark +Williams. + +.. + +.. bpo: 28368 +.. date: 8401 +.. nonce: n594X4 +.. section: Library + +Refuse monitoring processes if the child watcher has no loop attached. Patch +by Vincent Michel. + +.. + +.. bpo: 28369 +.. date: 8400 +.. nonce: 8DTANe +.. section: Library + +Raise RuntimeError when transport's FD is used with add_reader, add_writer, +etc. + +.. + +.. bpo: 28370 +.. date: 8399 +.. nonce: 18jBuZ +.. section: Library + +Speedup asyncio.StreamReader.readexactly. Patch by Коренберг Марк. + +.. + +.. bpo: 28371 +.. date: 8398 +.. nonce: U9Zqdk +.. section: Library + +Deprecate passing asyncio.Handles to run_in_executor. + +.. + +.. bpo: 28372 +.. date: 8397 +.. nonce: njcIPk +.. section: Library + +Fix asyncio to support formatting of non-python coroutines. + +.. + +.. bpo: 28399 +.. date: 8396 +.. nonce: QKIqRX +.. section: Library + +Remove UNIX socket from FS before binding. Patch by Коренберг Марк. + +.. + +.. bpo: 27972 +.. date: 8395 +.. nonce: ZK-GFm +.. section: Library + +Prohibit Tasks to await on themselves. + +.. + +.. bpo: 26923 +.. date: 8394 +.. nonce: 8dh3AV +.. section: Library + +Fix asyncio.Gather to refuse being cancelled once all children are done. +Patch by Johannes Ebke. + +.. + +.. bpo: 26796 +.. date: 8393 +.. nonce: TZyAfJ +.. section: Library + +Don't configure the number of workers for default threadpool executor. +Initial patch by Hans Lawrenz. + +.. + +.. bpo: 28600 +.. date: 8392 +.. nonce: 2ThUQV +.. section: Library + +Optimize loop.call_soon(). + +.. + +.. bpo: 28613 +.. date: 8391 +.. nonce: sqUPrv +.. section: Library + +Fix get_event_loop() return the current loop if called from +coroutines/callbacks. + +.. + +.. bpo: 28639 +.. date: 8390 +.. nonce: WUPo1o +.. section: Library + +Fix inspect.isawaitable to always return bool Patch by Justin Mayfield. + +.. + +.. bpo: 28652 +.. date: 8389 +.. nonce: f5M8FG +.. section: Library + +Make loop methods reject socket kinds they do not support. + +.. + +.. bpo: 28653 +.. date: 8388 +.. nonce: S5bA9i +.. section: Library + +Fix a refleak in functools.lru_cache. + +.. + +.. bpo: 28703 +.. date: 8387 +.. nonce: CRLTJc +.. section: Library + +Fix asyncio.iscoroutinefunction to handle Mock objects. + +.. + +.. bpo: 24142 +.. date: 8386 +.. nonce: _BgogI +.. section: Library + +Reading a corrupt config file left the parser in an invalid state. Original +patch by Florian Höch. + +.. + +.. bpo: 28990 +.. date: 8385 +.. nonce: W8tuYZ +.. section: Library + +Fix SSL hanging if connection is closed before handshake completed. (Patch +by HoHo-Ho) + +.. + +.. bpo: 15308 +.. date: 8384 +.. nonce: zZxn8m +.. section: IDLE + +Add 'interrupt execution' (^C) to Shell menu. Patch by Roger Serwy, updated +by Bayard Randel. + +.. + +.. bpo: 27922 +.. date: 8383 +.. nonce: UEtEv9 +.. section: IDLE + +Stop IDLE tests from 'flashing' gui widgets on the screen. + +.. + +.. bpo: 0 +.. date: 8382 +.. nonce: zWZs6o +.. section: IDLE + +Add version to title of IDLE help window. + +.. + +.. bpo: 25564 +.. date: 8381 +.. nonce: GN0p14 +.. section: IDLE + +In section on IDLE -- console differences, mention that using exec means +that __builtins__ is defined for each statement. + +.. + +.. bpo: 27714 +.. date: 8380 +.. nonce: bUEDsI +.. section: IDLE + +text_textview and test_autocomplete now pass when re-run in the same +process. This occurs when test_idle fails when run with the -w option but +without -jn. Fix warning from test_config. + +.. + +.. bpo: 25507 +.. date: 8379 +.. nonce: lxf68d +.. section: IDLE + +IDLE no longer runs buggy code because of its tkinter imports. Users must +include the same imports required to run directly in Python. + +.. + +.. bpo: 27452 +.. date: 8378 +.. nonce: RtWnyR +.. section: IDLE + +add line counter and crc to IDLE configHandler test dump. + +.. + +.. bpo: 27365 +.. date: 8377 +.. nonce: y7ys_A +.. section: IDLE + +Allow non-ascii chars in IDLE NEWS.txt, for contributor names. + +.. + +.. bpo: 27245 +.. date: 8376 +.. nonce: u9aKO1 +.. section: IDLE + +IDLE: Cleanly delete custom themes and key bindings. Previously, when IDLE +was started from a console or by import, a cascade of warnings was emitted. +Patch by Serhiy Storchaka. + +.. + +.. bpo: 28808 +.. date: 8375 +.. nonce: A03X6r +.. section: C API + +PyUnicode_CompareWithASCIIString() now never raises exceptions. + +.. + +.. bpo: 26754 +.. date: 8374 +.. nonce: j2czHF +.. section: C API + +PyUnicode_FSDecoder() accepted a filename argument encoded as an iterable of +integers. Now only strings and bytes-like objects are accepted. + +.. + +.. bpo: 28513 +.. date: 8373 +.. nonce: L3joAz +.. section: Documentation + +Documented command-line interface of zipfile. + +.. + +.. bpo: 28950 +.. date: 8372 +.. nonce: 9_vY6R +.. section: Tests + +Disallow -j0 to be combined with -T/-l/-M in regrtest command line +arguments. + +.. + +.. bpo: 28666 +.. date: 8371 +.. nonce: RtTk-4 +.. section: Tests + +Now test.support.rmtree is able to remove unwritable or unreadable +directories. + +.. + +.. bpo: 23839 +.. date: 8370 +.. nonce: zsT_L9 +.. section: Tests + +Various caches now are cleared before running every test file. + +.. + +.. bpo: 28409 +.. date: 8369 +.. nonce: Q2IlxJ +.. section: Tests + +regrtest: fix the parser of command line arguments. + +.. + +.. bpo: 27787 +.. date: 8368 +.. nonce: kf0YAt +.. section: Tests + +Call gc.collect() before checking each test for "dangling threads", since +the dangling threads are weak references. + +.. + +.. bpo: 27369 +.. date: 8367 +.. nonce: LG7U2D +.. section: Tests + +In test_pyexpat, avoid testing an error message detail that changed in Expat +2.2.0. + +.. + +.. bpo: 27952 +.. date: 8366 +.. nonce: WX9Ufc +.. section: Tools/Demos + +Get Tools/scripts/fixcid.py working with Python 3 and the current "re" +module, avoid invalid Python backslash escapes, and fix a bug parsing +escaped C quote signs. + +.. + +.. bpo: 27332 +.. date: 8365 +.. nonce: OuRZp9 +.. section: Tools/Demos + +Fixed the type of the first argument of module-level functions generated by +Argument Clinic. Patch by Petr Viktorin. + +.. + +.. bpo: 27418 +.. date: 8364 +.. nonce: W2m_8I +.. section: Tools/Demos + +Fixed Tools/importbench/importbench.py. + +.. + +.. bpo: 28251 +.. date: 8363 +.. nonce: tR_AFs +.. section: Windows + +Improvements to help manuals on Windows. + +.. + +.. bpo: 28110 +.. date: 8362 +.. nonce: cnkP5F +.. section: Windows + +launcher.msi has different product codes between 32-bit and 64-bit + +.. + +.. bpo: 25144 +.. date: 8361 +.. nonce: iUha52 +.. section: Windows + +Ensures TargetDir is set before continuing with custom install. + +.. + +.. bpo: 27469 +.. date: 8360 +.. nonce: 0GwDkX +.. section: Windows + +Adds a shell extension to the launcher so that drag and drop works +correctly. + +.. + +.. bpo: 27309 +.. date: 8359 +.. nonce: 4DPjhF +.. section: Windows + +Enabled proper Windows styles in python[w].exe manifest. + +.. + +.. bpo: 29080 +.. date: 8358 +.. nonce: b3qLQT +.. section: Build + +Removes hard dependency on hg.exe from PCBuild/build.bat + +.. + +.. bpo: 23903 +.. date: 8357 +.. nonce: JXJ889 +.. section: Build + +Added missed names to PC/python3.def. + +.. + +.. bpo: 10656 +.. date: 8356 +.. nonce: pR8FFU +.. section: Build + +Fix out-of-tree building on AIX. Patch by Tristan Carel and Michael +Haubenwallner. + +.. + +.. bpo: 26359 +.. date: 8355 +.. nonce: CLz6qy +.. section: Build + +Rename --with-optimiations to --enable-optimizations. + +.. + +.. bpo: 28444 +.. date: 8354 +.. nonce: zkc9nT +.. section: Build + +Fix missing extensions modules when cross compiling. + +.. + +.. bpo: 28248 +.. date: 8353 +.. nonce: KY_-en +.. section: Build + +Update Windows build and OS X installers to use OpenSSL 1.0.2j. + +.. + +.. bpo: 28258 +.. date: 8352 +.. nonce: iKtAHd +.. section: Build + +Fixed build with Estonian locale (python-config and distclean targets in +Makefile). Patch by Arfrever Frehtes Taifersar Arahesis. + +.. + +.. bpo: 26661 +.. date: 8351 +.. nonce: Z_HNbs +.. section: Build + +setup.py now detects system libffi with multiarch wrapper. + +.. + +.. bpo: 28066 +.. date: 8350 +.. nonce: _3xImV +.. section: Build + +Fix the logic that searches build directories for generated include files +when building outside the source tree. + +.. + +.. bpo: 15819 +.. date: 8349 +.. nonce: QVDr3E +.. section: Build + +Remove redundant include search directory option for building outside the +source tree. + +.. + +.. bpo: 27566 +.. date: 8348 +.. nonce: xDWjEb +.. section: Build + +Fix clean target in freeze makefile (patch by Lisa Roach) + +.. + +.. bpo: 27705 +.. date: 8347 +.. nonce: 8C2Ms3 +.. section: Build + +Update message in validate_ucrtbase.py + +.. + +.. bpo: 27983 +.. date: 8346 +.. nonce: jL_1n8 +.. section: Build + +Cause lack of llvm-profdata tool when using clang as required for PGO +linking to be a configure time error rather than make time when --with- +optimizations is enabled. Also improve our ability to find the llvm- +profdata tool on MacOS and some Linuxes. + +.. + +.. bpo: 26307 +.. date: 8345 +.. nonce: Puk2rd +.. section: Build + +The profile-opt build now applies PGO to the built-in modules. + +.. + +.. bpo: 26359 +.. date: 8344 +.. nonce: WXBL-Y +.. section: Build + +Add the --with-optimizations configure flag. + +.. + +.. bpo: 27713 +.. date: 8343 +.. nonce: _3DgXG +.. section: Build + +Suppress spurious build warnings when updating importlib's bootstrap files. +Patch by Xiang Zhang + +.. + +.. bpo: 25825 +.. date: 8342 +.. nonce: JD8aRp +.. section: Build + +Correct the references to Modules/python.exp and ld_so_aix, which are +required on AIX. This updates references to an installation path that was +changed in 3.2a4, and undoes changed references to the build tree that were +made in 3.5.0a1. + +.. + +.. bpo: 27453 +.. date: 8341 +.. nonce: Pb5DBi +.. section: Build + +CPP invocation in configure must use CPPFLAGS. Patch by Chi Hsuan Yen. + +.. + +.. bpo: 27641 +.. date: 8340 +.. nonce: eGzgCk +.. section: Build + +The configure script now inserts comments into the makefile to prevent the +pgen and _freeze_importlib executables from being cross- compiled. + +.. + +.. bpo: 26662 +.. date: 8339 +.. nonce: XkwRxM +.. section: Build + +Set PYTHON_FOR_GEN in configure as the Python program to be used for file +generation during the build. + +.. + +.. bpo: 10910 +.. date: 8338 +.. nonce: ZdRayb +.. section: Build + +Avoid C++ compilation errors on FreeBSD and OS X. Also update FreedBSD +version checks for the original ctype UTF-8 workaround. + +.. + +.. bpo: 28676 +.. date: 8337 +.. nonce: Wxf6Ds +.. section: Build + +Prevent missing 'getentropy' declaration warning on macOS. Patch by Gareth +Rees. diff --git a/Misc/NEWS.d/3.6.0.rst b/Misc/NEWS.d/3.6.0.rst new file mode 100644 index 0000000..25b2b70 --- /dev/null +++ b/Misc/NEWS.d/3.6.0.rst @@ -0,0 +1,7 @@ +.. bpo: 0 +.. date: 9497 +.. no changes: True +.. nonce: F9ENBV +.. release date: 2016-12-23 + +No changes since release candidate 2 diff --git a/Misc/NEWS.d/3.6.0a1.rst b/Misc/NEWS.d/3.6.0a1.rst new file mode 100644 index 0000000..81e9492 --- /dev/null +++ b/Misc/NEWS.d/3.6.0a1.rst @@ -0,0 +1,3941 @@ +.. bpo: 20041 +.. date: 8953 +.. nonce: TypyGp +.. release date: 2016-05-16 +.. section: Core and Builtins + +Fixed TypeError when frame.f_trace is set to None. Patch by Xavier de Gaye. + +.. + +.. bpo: 26168 +.. date: 8952 +.. nonce: -nPBL6 +.. section: Core and Builtins + +Fixed possible refleaks in failing Py_BuildValue() with the "N" format unit. + +.. + +.. bpo: 26991 +.. date: 8951 +.. nonce: yWGNhz +.. section: Core and Builtins + +Fix possible refleak when creating a function with annotations. + +.. + +.. bpo: 27039 +.. date: 8950 +.. nonce: oO-wLV +.. section: Core and Builtins + +Fixed bytearray.remove() for values greater than 127. Based on patch by Joe +Jevnik. + +.. + +.. bpo: 23640 +.. date: 8949 +.. nonce: kvNC4c +.. section: Core and Builtins + +int.from_bytes() no longer bypasses constructors for subclasses. + +.. + +.. bpo: 27005 +.. date: 8948 +.. nonce: ZtcJf- +.. section: Core and Builtins + +Optimized the float.fromhex() class method for exact float. It is now 2 +times faster. + +.. + +.. bpo: 18531 +.. date: 8947 +.. nonce: PkXgtO +.. section: Core and Builtins + +Single var-keyword argument of dict subtype was passed unscathed to the +C-defined function. Now it is converted to exact dict. + +.. + +.. bpo: 26811 +.. date: 8946 +.. nonce: oNzUWt +.. section: Core and Builtins + +gc.get_objects() no longer contains a broken tuple with NULL pointer. + +.. + +.. bpo: 20120 +.. date: 8945 +.. nonce: c-FZZc +.. section: Core and Builtins + +Use RawConfigParser for .pypirc parsing, removing support for interpolation +unintentionally added with move to Python 3. Behavior no longer does any +interpolation in .pypirc files, matching behavior in Python 2.7 and +Setuptools 19.0. + +.. + +.. bpo: 26249 +.. date: 8944 +.. nonce: ZbpWF3 +.. section: Core and Builtins + +Memory functions of the :c:func:`PyMem_Malloc` domain +(:c:data:`PYMEM_DOMAIN_MEM`) now use the :ref:`pymalloc allocator +<pymalloc>` rather than system :c:func:`malloc`. Applications calling +:c:func:`PyMem_Malloc` without holding the GIL can now crash: use +``PYTHONMALLOC=debug`` environment variable to validate the usage of memory +allocators in your application. + +.. + +.. bpo: 26802 +.. date: 8943 +.. nonce: hWpU4v +.. section: Core and Builtins + +Optimize function calls only using unpacking like ``func(*tuple)`` (no other +positional argument, no keyword): avoid copying the tuple. Patch written by +Joe Jevnik. + +.. + +.. bpo: 26659 +.. date: 8942 +.. nonce: 5PRa83 +.. section: Core and Builtins + +Make the builtin slice type support cycle collection. + +.. + +.. bpo: 26718 +.. date: 8941 +.. nonce: K5PQ8j +.. section: Core and Builtins + +super.__init__ no longer leaks memory if called multiple times. NOTE: A +direct call of super.__init__ is not endorsed! + +.. + +.. bpo: 27138 +.. date: 8940 +.. nonce: ifYEro +.. section: Core and Builtins + +Fix the doc comment for FileFinder.find_spec(). + +.. + +.. bpo: 27147 +.. date: 8939 +.. nonce: tCCgmH +.. section: Core and Builtins + +Mention PEP 420 in the importlib docs. + +.. + +.. bpo: 25339 +.. date: 8938 +.. nonce: ZcaC2E +.. section: Core and Builtins + +PYTHONIOENCODING now has priority over locale in setting the error handler +for stdin and stdout. + +.. + +.. bpo: 26494 +.. date: 8937 +.. nonce: G6eXIi +.. section: Core and Builtins + +Fixed crash on iterating exhausting iterators. Affected classes are generic +sequence iterators, iterators of str, bytes, bytearray, list, tuple, set, +frozenset, dict, OrderedDict, corresponding views and os.scandir() iterator. + +.. + +.. bpo: 26574 +.. date: 8936 +.. nonce: D2YL_w +.. section: Core and Builtins + +Optimize ``bytes.replace(b'', b'.')`` and ``bytearray.replace(b'', b'.')``. +Patch written by Josh Snider. + +.. + +.. bpo: 26581 +.. date: 8935 +.. nonce: yNA7nm +.. section: Core and Builtins + +If coding cookie is specified multiple times on a line in Python source code +file, only the first one is taken to account. + +.. + +.. bpo: 19711 +.. date: 8934 +.. nonce: gDDPJE +.. section: Core and Builtins + +Add tests for reloading namespace packages. + +.. + +.. bpo: 21099 +.. date: 8933 +.. nonce: CuMWZJ +.. section: Core and Builtins + +Switch applicable importlib tests to use PEP 451 API. + +.. + +.. bpo: 26563 +.. date: 8932 +.. nonce: lyrB2Q +.. section: Core and Builtins + +Debug hooks on Python memory allocators now raise a fatal error if functions +of the :c:func:`PyMem_Malloc` family are called without holding the GIL. + +.. + +.. bpo: 26564 +.. date: 8931 +.. nonce: xeRXaz +.. section: Core and Builtins + +On error, the debug hooks on Python memory allocators now use the +:mod:`tracemalloc` module to get the traceback where a memory block was +allocated. + +.. + +.. bpo: 26558 +.. date: 8930 +.. nonce: s05jz7 +.. section: Core and Builtins + +The debug hooks on Python memory allocator :c:func:`PyObject_Malloc` now +detect when functions are called without holding the GIL. + +.. + +.. bpo: 26516 +.. date: 8929 +.. nonce: OjekqZ +.. section: Core and Builtins + +Add :envvar:`PYTHONMALLOC` environment variable to set the Python memory +allocators and/or install debug hooks. + +.. + +.. bpo: 26516 +.. date: 8928 +.. nonce: chNJuF +.. section: Core and Builtins + +The :c:func:`PyMem_SetupDebugHooks` function can now also be used on Python +compiled in release mode. + +.. + +.. bpo: 26516 +.. date: 8927 +.. nonce: q7fu1f +.. section: Core and Builtins + +The :envvar:`PYTHONMALLOCSTATS` environment variable can now also be used on +Python compiled in release mode. It now has no effect if set to an empty +string. + +.. + +.. bpo: 26516 +.. date: 8926 +.. nonce: 2k9k6R +.. section: Core and Builtins + +In debug mode, debug hooks are now also installed on Python memory +allocators when Python is configured without pymalloc. + +.. + +.. bpo: 26464 +.. date: 8925 +.. nonce: 7BreGz +.. section: Core and Builtins + +Fix str.translate() when string is ASCII and first replacements removes +character, but next replacement uses a non-ASCII character or a string +longer than 1 character. Regression introduced in Python 3.5.0. + +.. + +.. bpo: 22836 +.. date: 8924 +.. nonce: cimt1y +.. section: Core and Builtins + +Ensure exception reports from PyErr_Display() and PyErr_WriteUnraisable() +are sensible even when formatting them produces secondary errors. This +affects the reports produced by sys.__excepthook__() and when __del__() +raises an exception. + +.. + +.. bpo: 26302 +.. date: 8923 +.. nonce: UD9XQt +.. section: Core and Builtins + +Correct behavior to reject comma as a legal character for cookie names. + +.. + +.. bpo: 26136 +.. date: 8922 +.. nonce: eZ0t1K +.. section: Core and Builtins + +Upgrade the warning when a generator raises StopIteration from +PendingDeprecationWarning to DeprecationWarning. Patch by Anish Shah. + +.. + +.. bpo: 26204 +.. date: 8921 +.. nonce: x3Zp8E +.. section: Core and Builtins + +The compiler now ignores all constant statements: bytes, str, int, float, +complex, name constants (None, False, True), Ellipsis and ast.Constant; not +only str and int. For example, ``1.0`` is now ignored in ``def f(): 1.0``. + +.. + +.. bpo: 4806 +.. date: 8920 +.. nonce: i9m3hj +.. section: Core and Builtins + +Avoid masking the original TypeError exception when using star (``*``) +unpacking in function calls. Based on patch by Hagen Fürstenau and Daniel +Urban. + +.. + +.. bpo: 26146 +.. date: 8919 +.. nonce: HKrUth +.. section: Core and Builtins + +Add a new kind of AST node: ``ast.Constant``. It can be used by external AST +optimizers, but the compiler does not emit directly such node. + +.. + +.. bpo: 23601 +.. date: 8918 +.. nonce: 2E4seG +.. section: Core and Builtins + +Sped-up allocation of dict key objects by using Python's small object +allocator. (Contributed by Julian Taylor.) + +.. + +.. bpo: 18018 +.. date: 8917 +.. nonce: XKKap3 +.. section: Core and Builtins + +Import raises ImportError instead of SystemError if a relative import is +attempted without a known parent package. + +.. + +.. bpo: 25843 +.. date: 8916 +.. nonce: NtJZie +.. section: Core and Builtins + +When compiling code, don't merge constants if they are equal but have a +different types. For example, ``f1, f2 = lambda: 1, lambda: 1.0`` is now +correctly compiled to two different functions: ``f1()`` returns ``1`` +(``int``) and ``f2()`` returns ``1.0`` (``float``), even if ``1`` and +``1.0`` are equal. + +.. + +.. bpo: 26107 +.. date: 8915 +.. nonce: q0LBMY +.. section: Core and Builtins + +The format of the ``co_lnotab`` attribute of code objects changes to support +negative line number delta. + +.. + +.. bpo: 26154 +.. date: 8914 +.. nonce: MtnRAH +.. section: Core and Builtins + +Add a new private _PyThreadState_UncheckedGet() function to get the current +Python thread state, but don't issue a fatal error if it is NULL. This new +function must be used instead of accessing directly the +_PyThreadState_Current variable. The variable is no more exposed since +Python 3.5.1 to hide the exact implementation of atomic C types, to avoid +compiler issues. + +.. + +.. bpo: 25791 +.. date: 8913 +.. nonce: gllzPw +.. section: Core and Builtins + +If __package__ != __spec__.parent or if neither __package__ or __spec__ are +defined then ImportWarning is raised. + +.. + +.. bpo: 22995 +.. date: 8912 +.. nonce: KYNKvs +.. section: Core and Builtins + +[UPDATE] Comment out the one of the pickleability tests in +_PyObject_GetState() due to regressions observed in Cython-based projects. + +.. + +.. bpo: 25961 +.. date: 8911 +.. nonce: Hdjjw0 +.. section: Core and Builtins + +Disallowed null characters in the type name. + +.. + +.. bpo: 25973 +.. date: 8910 +.. nonce: Ud__ZP +.. section: Core and Builtins + +Fix segfault when an invalid nonlocal statement binds a name starting with +two underscores. + +.. + +.. bpo: 22995 +.. date: 8909 +.. nonce: Wq0E86 +.. section: Core and Builtins + +Instances of extension types with a state that aren't subclasses of list or +dict and haven't implemented any pickle-related methods (__reduce__, +__reduce_ex__, __getnewargs__, __getnewargs_ex__, or __getstate__), can no +longer be pickled. Including memoryview. + +.. + +.. bpo: 20440 +.. date: 8908 +.. nonce: GCwOfH +.. section: Core and Builtins + +Massive replacing unsafe attribute setting code with special macro +Py_SETREF. + +.. + +.. bpo: 25766 +.. date: 8907 +.. nonce: jn93Yu +.. section: Core and Builtins + +Special method __bytes__() now works in str subclasses. + +.. + +.. bpo: 25421 +.. date: 8906 +.. nonce: c47YEL +.. section: Core and Builtins + +__sizeof__ methods of builtin types now use dynamic basic size. This allows +sys.getsize() to work correctly with their subclasses with __slots__ +defined. + +.. + +.. bpo: 25709 +.. date: 8905 +.. nonce: WwGm2k +.. section: Core and Builtins + +Fixed problem with in-place string concatenation and utf-8 cache. + +.. + +.. bpo: 5319 +.. date: 8904 +.. nonce: HxlGwI +.. section: Core and Builtins + +New Py_FinalizeEx() API allowing Python to set an exit status of 120 on +failure to flush buffered streams. + +.. + +.. bpo: 25485 +.. date: 8903 +.. nonce: 9qnaPt +.. section: Core and Builtins + +telnetlib.Telnet is now a context manager. + +.. + +.. bpo: 24097 +.. date: 8902 +.. nonce: Vt4E-i +.. section: Core and Builtins + +Fixed crash in object.__reduce__() if slot name is freed inside __getattr__. + +.. + +.. bpo: 24731 +.. date: 8901 +.. nonce: h9-hnz +.. section: Core and Builtins + +Fixed crash on converting objects with special methods __bytes__, __trunc__, +and __float__ returning instances of subclasses of bytes, int, and float to +subclasses of bytes, int, and float correspondingly. + +.. + +.. bpo: 25630 +.. date: 8900 +.. nonce: ZxzcoY +.. section: Core and Builtins + +Fix a possible segfault during argument parsing in functions that accept +filesystem paths. + +.. + +.. bpo: 23564 +.. date: 8899 +.. nonce: XHarGG +.. section: Core and Builtins + +Fixed a partially broken sanity check in the _posixsubprocess internals +regarding how fds_to_pass were passed to the child. The bug had no actual +impact as subprocess.py already avoided it. + +.. + +.. bpo: 25388 +.. date: 8898 +.. nonce: zm3uuQ +.. section: Core and Builtins + +Fixed tokenizer crash when processing undecodable source code with a null +byte. + +.. + +.. bpo: 25462 +.. date: 8897 +.. nonce: eXDzgO +.. section: Core and Builtins + +The hash of the key now is calculated only once in most operations in C +implementation of OrderedDict. + +.. + +.. bpo: 22995 +.. date: 8896 +.. nonce: 90kpuP +.. section: Core and Builtins + +Default implementation of __reduce__ and __reduce_ex__ now rejects builtin +types with not defined __new__. + +.. + +.. bpo: 24802 +.. date: 8895 +.. nonce: Qie066 +.. section: Core and Builtins + +Avoid buffer overreads when int(), float(), compile(), exec() and eval() are +passed bytes-like objects. These objects are not necessarily terminated by +a null byte, but the functions assumed they were. + +.. + +.. bpo: 25555 +.. date: 8894 +.. nonce: MUpG-j +.. section: Core and Builtins + +Fix parser and AST: fill lineno and col_offset of "arg" node when compiling +AST from Python objects. + +.. + +.. bpo: 24726 +.. date: 8893 +.. nonce: AHk4v2 +.. section: Core and Builtins + +Fixed a crash and leaking NULL in repr() of OrderedDict that was mutated by +direct calls of dict methods. + +.. + +.. bpo: 25449 +.. date: 8892 +.. nonce: VqTOFi +.. section: Core and Builtins + +Iterating OrderedDict with keys with unstable hash now raises KeyError in C +implementations as well as in Python implementation. + +.. + +.. bpo: 25395 +.. date: 8891 +.. nonce: htkE3W +.. section: Core and Builtins + +Fixed crash when highly nested OrderedDict structures were garbage +collected. + +.. + +.. bpo: 25401 +.. date: 8890 +.. nonce: ofrAtd +.. section: Core and Builtins + +Optimize bytes.fromhex() and bytearray.fromhex(): they are now between 2x +and 3.5x faster. + +.. + +.. bpo: 25399 +.. date: 8889 +.. nonce: dNKIhY +.. section: Core and Builtins + +Optimize bytearray % args using the new private _PyBytesWriter API. +Formatting is now between 2.5 and 5 times faster. + +.. + +.. bpo: 25274 +.. date: 8888 +.. nonce: QCGvAF +.. section: Core and Builtins + +sys.setrecursionlimit() now raises a RecursionError if the new recursion +limit is too low depending at the current recursion depth. Modify also the +"lower-water mark" formula to make it monotonic. This mark is used to decide +when the overflowed flag of the thread state is reset. + +.. + +.. bpo: 24402 +.. date: 8887 +.. nonce: MAgi3X +.. section: Core and Builtins + +Fix input() to prompt to the redirected stdout when sys.stdout.fileno() +fails. + +.. + +.. bpo: 25349 +.. date: 8886 +.. nonce: 7lBgJ8 +.. section: Core and Builtins + +Optimize bytes % args using the new private _PyBytesWriter API. Formatting +is now up to 2 times faster. + +.. + +.. bpo: 24806 +.. date: 8885 +.. nonce: Nb0znT +.. section: Core and Builtins + +Prevent builtin types that are not allowed to be subclassed from being +subclassed through multiple inheritance. + +.. + +.. bpo: 25301 +.. date: 8884 +.. nonce: hUTCfr +.. section: Core and Builtins + +The UTF-8 decoder is now up to 15 times as fast for error handlers: +``ignore``, ``replace`` and ``surrogateescape``. + +.. + +.. bpo: 24848 +.. date: 8883 +.. nonce: HlUSuy +.. section: Core and Builtins + +Fixed a number of bugs in UTF-7 decoding of misformed data. + +.. + +.. bpo: 25267 +.. date: 8882 +.. nonce: SW8Gs6 +.. section: Core and Builtins + +The UTF-8 encoder is now up to 75 times as fast for error handlers: +``ignore``, ``replace``, ``surrogateescape``, ``surrogatepass``. Patch co- +written with Serhiy Storchaka. + +.. + +.. bpo: 25280 +.. date: 8881 +.. nonce: ivTMwd +.. section: Core and Builtins + +Import trace messages emitted in verbose (-v) mode are no longer formatted +twice. + +.. + +.. bpo: 25227 +.. date: 8880 +.. nonce: 19v5rp +.. section: Core and Builtins + +Optimize ASCII and latin1 encoders with the ``surrogateescape`` error +handler: the encoders are now up to 3 times as fast. Initial patch written +by Serhiy Storchaka. + +.. + +.. bpo: 25003 +.. date: 8879 +.. nonce: _ban92 +.. section: Core and Builtins + +On Solaris 11.3 or newer, os.urandom() now uses the getrandom() function +instead of the getentropy() function. The getentropy() function is blocking +to generate very good quality entropy, os.urandom() doesn't need such high- +quality entropy. + +.. + +.. bpo: 9232 +.. date: 8878 +.. nonce: pjsmWw +.. section: Core and Builtins + +Modify Python's grammar to allow trailing commas in the argument list of a +function declaration. For example, "def f(\*, a = 3,): pass" is now legal. +Patch from Mark Dickinson. + +.. + +.. bpo: 24965 +.. date: 8877 +.. nonce: wfyxbB +.. section: Core and Builtins + +Implement PEP 498 "Literal String Interpolation". This allows you to embed +expressions inside f-strings, which are converted to normal strings at run +time. Given x=3, then f'value={x}' == 'value=3'. Patch by Eric V. Smith. + +.. + +.. bpo: 26478 +.. date: 8876 +.. nonce: n0dB8e +.. section: Core and Builtins + +Fix semantic bugs when using binary operators with dictionary views and +tuples. + +.. + +.. bpo: 26171 +.. date: 8875 +.. nonce: 8SaQEa +.. section: Core and Builtins + +Fix possible integer overflow and heap corruption in zipimporter.get_data(). + +.. + +.. bpo: 25660 +.. date: 8874 +.. nonce: 93DzBo +.. section: Core and Builtins + +Fix TAB key behaviour in REPL with readline. + +.. + +.. bpo: 26288 +.. date: 8873 +.. nonce: f67RLk +.. section: Core and Builtins + +Optimize PyLong_AsDouble. + +.. + +.. bpo: 26289 +.. date: 8872 +.. nonce: uG9ozG +.. section: Core and Builtins + +Optimize floor and modulo division for single-digit longs. Microbenchmarks +show 2-2.5x improvement. Built-in 'divmod' function is now also ~10% +faster. (See also: bpo-26315) + +.. + +.. bpo: 25887 +.. date: 8871 +.. nonce: PtVIX7 +.. section: Core and Builtins + +Raise a RuntimeError when a coroutine object is awaited more than once. + +.. + +.. bpo: 27057 +.. date: 8870 +.. nonce: YzTA_Q +.. section: Library + +Fix os.set_inheritable() on Android, ioctl() is blocked by SELinux and fails +with EACCESS. The function now falls back to fcntl(). Patch written by +Michał Bednarski. + +.. + +.. bpo: 27014 +.. date: 8869 +.. nonce: ui7Khn +.. section: Library + +Fix infinite recursion using typing.py. Thanks to Kalle Tuure! + +.. + +.. bpo: 27031 +.. date: 8868 +.. nonce: FtvDPs +.. section: Library + +Removed dummy methods in Tkinter widget classes: tk_menuBar() and +tk_bindForTraversal(). + +.. + +.. bpo: 14132 +.. date: 8867 +.. nonce: 5wR9MN +.. section: Library + +Fix urllib.request redirect handling when the target only has a query +string. Original fix by Ján Janech. + +.. + +.. bpo: 17214 +.. date: 8866 +.. nonce: lUbZOV +.. section: Library + +The "urllib.request" module now percent-encodes non-ASCII bytes found in +redirect target URLs. Some servers send Location header fields with non- +ASCII bytes, but "http.client" requires the request target to be ASCII- +encodable, otherwise a UnicodeEncodeError is raised. Based on patch by +Christian Heimes. + +.. + +.. bpo: 27033 +.. date: 8865 +.. nonce: o4XIPr +.. section: Library + +The default value of the decode_data parameter for smtpd.SMTPChannel and +smtpd.SMTPServer constructors is changed to False. + +.. + +.. bpo: 27034 +.. date: 8864 +.. nonce: ptzz_S +.. section: Library + +Removed deprecated class asynchat.fifo. + +.. + +.. bpo: 26870 +.. date: 8863 +.. nonce: 5tCUlp +.. section: Library + +Added readline.set_auto_history(), which can stop entries being +automatically added to the history list. Based on patch by Tyler Crompton. + +.. + +.. bpo: 26039 +.. date: 8862 +.. nonce: JnXjiE +.. section: Library + +zipfile.ZipFile.open() can now be used to write data into a ZIP file, as +well as for extracting data. Patch by Thomas Kluyver. + +.. + +.. bpo: 26892 +.. date: 8861 +.. nonce: XIXb0h +.. section: Library + +Honor debuglevel flag in urllib.request.HTTPHandler. Patch contributed by +Chi Hsuan Yen. + +.. + +.. bpo: 22274 +.. date: 8860 +.. nonce: 0RHDMN +.. section: Library + +In the subprocess module, allow stderr to be redirected to stdout even when +stdout is not redirected. Patch by Akira Li. + +.. + +.. bpo: 26807 +.. date: 8859 +.. nonce: LXSPP6 +.. section: Library + +mock_open 'files' no longer error on readline at end of file. Patch from +Yolanda Robla. + +.. + +.. bpo: 25745 +.. date: 8858 +.. nonce: -n8acU +.. section: Library + +Fixed leaking a userptr in curses panel destructor. + +.. + +.. bpo: 26977 +.. date: 8857 +.. nonce: 5G4HtL +.. section: Library + +Removed unnecessary, and ignored, call to sum of squares helper in +statistics.pvariance. + +.. + +.. bpo: 26002 +.. date: 8856 +.. nonce: bVD4pW +.. section: Library + +Use bisect in statistics.median instead of a linear search. Patch by Upendra +Kuma. + +.. + +.. bpo: 25974 +.. date: 8855 +.. nonce: cpOy5R +.. section: Library + +Make use of new Decimal.as_integer_ratio() method in statistics module. +Patch by Stefan Krah. + +.. + +.. bpo: 26996 +.. date: 8854 +.. nonce: LR__VD +.. section: Library + +Add secrets module as described in PEP 506. + +.. + +.. bpo: 26881 +.. date: 8853 +.. nonce: mdiq_L +.. section: Library + +The modulefinder module now supports extended opcode arguments. + +.. + +.. bpo: 23815 +.. date: 8852 +.. nonce: _krNe8 +.. section: Library + +Fixed crashes related to directly created instances of types in _tkinter and +curses.panel modules. + +.. + +.. bpo: 17765 +.. date: 8851 +.. nonce: hiSVS1 +.. section: Library + +weakref.ref() no longer silently ignores keyword arguments. Patch by Georg +Brandl. + +.. + +.. bpo: 26873 +.. date: 8850 +.. nonce: cYXRcH +.. section: Library + +xmlrpc now raises ResponseError on unsupported type tags instead of silently +return incorrect result. + +.. + +.. bpo: 26915 +.. date: 8849 +.. nonce: GoQKUL +.. section: Library + +The __contains__ methods in the collections ABCs now check for identity +before checking equality. This better matches the behavior of the concrete +classes, allows sensible handling of NaNs, and makes it easier to reason +about container invariants. + +.. + +.. bpo: 26711 +.. date: 8848 +.. nonce: Eu85Qw +.. section: Library + +Fixed the comparison of plistlib.Data with other types. + +.. + +.. bpo: 24114 +.. date: 8847 +.. nonce: RMRMtM +.. section: Library + +Fix an uninitialized variable in `ctypes.util`. + +The bug only occurs on SunOS when the ctypes implementation searches for the +`crle` program. Patch by Xiang Zhang. Tested on SunOS by Kees Bos. + +.. + +.. bpo: 26864 +.. date: 8846 +.. nonce: 1KgGds +.. section: Library + +In urllib.request, change the proxy bypass host checking against no_proxy to +be case-insensitive, and to not match unrelated host names that happen to +have a bypassed hostname as a suffix. Patch by Xiang Zhang. + +.. + +.. bpo: 24902 +.. date: 8845 +.. nonce: bwWpLj +.. section: Library + +Print server URL on http.server startup. Initial patch by Felix Kaiser. + +.. + +.. bpo: 25788 +.. date: 8844 +.. nonce: 9weIV5 +.. section: Library + +fileinput.hook_encoded() now supports an "errors" argument for passing to +open. Original patch by Joseph Hackman. + +.. + +.. bpo: 26634 +.. date: 8843 +.. nonce: FZvsSb +.. section: Library + +recursive_repr() now sets __qualname__ of wrapper. Patch by Xiang Zhang. + +.. + +.. bpo: 26804 +.. date: 8842 +.. nonce: 9Orp-G +.. section: Library + +urllib.request will prefer lower_case proxy environment variables over +UPPER_CASE or Mixed_Case ones. Patch contributed by Hans-Peter Jansen. + +.. + +.. bpo: 26837 +.. date: 8841 +.. nonce: 2FXGsD +.. section: Library + +assertSequenceEqual() now correctly outputs non-stringified differing items +(like bytes in the -b mode). This affects assertListEqual() and +assertTupleEqual(). + +.. + +.. bpo: 26041 +.. date: 8840 +.. nonce: bVem-p +.. section: Library + +Remove "will be removed in Python 3.7" from deprecation messages of +platform.dist() and platform.linux_distribution(). Patch by Kumaripaba +Miyurusara Athukorala. + +.. + +.. bpo: 26822 +.. date: 8839 +.. nonce: rYSL4W +.. section: Library + +itemgetter, attrgetter and methodcaller objects no longer silently ignore +keyword arguments. + +.. + +.. bpo: 26733 +.. date: 8838 +.. nonce: YxaJmL +.. section: Library + +Disassembling a class now disassembles class and static methods. Patch by +Xiang Zhang. + +.. + +.. bpo: 26801 +.. date: 8837 +.. nonce: TQGY-7 +.. section: Library + +Fix error handling in :func:`shutil.get_terminal_size`, catch +:exc:`AttributeError` instead of :exc:`NameError`. Patch written by Emanuel +Barry. + +.. + +.. bpo: 24838 +.. date: 8836 +.. nonce: 3Pfx8T +.. section: Library + +tarfile's ustar and gnu formats now correctly calculate name and link field +limits for multibyte character encodings like utf-8. + +.. + +.. bpo: 26657 +.. date: 8835 +.. nonce: C_-XFg +.. original section: Library +.. section: Security + +Fix directory traversal vulnerability with http.server on Windows. This +fixes a regression that was introduced in 3.3.4rc1 and 3.4.0rc1. Based on +patch by Philipp Hagemeister. + +.. + +.. bpo: 26717 +.. date: 8834 +.. nonce: jngTdu +.. section: Library + +Stop encoding Latin-1-ized WSGI paths with UTF-8. Patch by Anthony Sottile. + +.. + +.. bpo: 26782 +.. date: 8833 +.. nonce: JWLPrH +.. section: Library + +Add STARTUPINFO to subprocess.__all__ on Windows. + +.. + +.. bpo: 26404 +.. date: 8832 +.. nonce: hXw7Bs +.. section: Library + +Add context manager to socketserver. Patch by Aviv Palivoda. + +.. + +.. bpo: 26735 +.. date: 8831 +.. nonce: riSl3b +.. section: Library + +Fix :func:`os.urandom` on Solaris 11.3 and newer when reading more than +1,024 bytes: call ``getrandom()`` multiple times with a limit of 1024 bytes +per call. + +.. + +.. bpo: 26585 +.. date: 8830 +.. nonce: kfb749 +.. section: Library + +Eliminate http.server._quote_html() and use html.escape(quote=False). Patch +by Xiang Zhang. + +.. + +.. bpo: 26685 +.. date: 8829 +.. nonce: sI_1Ff +.. section: Library + +Raise OSError if closing a socket fails. + +.. + +.. bpo: 16329 +.. date: 8828 +.. nonce: nuXD8W +.. section: Library + +Add .webm to mimetypes.types_map. Patch by Giampaolo Rodola'. + +.. + +.. bpo: 13952 +.. date: 8827 +.. nonce: SOoTVE +.. section: Library + +Add .csv to mimetypes.types_map. Patch by Geoff Wilson. + +.. + +.. bpo: 26587 +.. date: 8826 +.. nonce: Qo-B6C +.. section: Library + +the site module now allows .pth files to specify files to be added to +sys.path (e.g. zip files). + +.. + +.. bpo: 25609 +.. date: 8825 +.. nonce: t1ydQM +.. section: Library + +Introduce contextlib.AbstractContextManager and typing.ContextManager. + +.. + +.. bpo: 26709 +.. date: 8824 +.. nonce: luOPbP +.. section: Library + +Fixed Y2038 problem in loading binary PLists. + +.. + +.. bpo: 23735 +.. date: 8823 +.. nonce: Y5oQ9r +.. section: Library + +Handle terminal resizing with Readline 6.3+ by installing our own SIGWINCH +handler. Patch by Eric Price. + +.. + +.. bpo: 25951 +.. date: 8822 +.. nonce: 1CUASJ +.. section: Library + +Change SSLSocket.sendall() to return None, as explicitly documented for +plain socket objects. Patch by Aviv Palivoda. + +.. + +.. bpo: 26586 +.. date: 8821 +.. nonce: V5pZNa +.. section: Library + +In http.server, respond with "413 Request header fields too large" if there +are too many header fields to parse, rather than killing the connection and +raising an unhandled exception. Patch by Xiang Zhang. + +.. + +.. bpo: 26676 +.. date: 8820 +.. nonce: zLRFed +.. section: Library + +Added missing XMLPullParser to ElementTree.__all__. + +.. + +.. bpo: 22854 +.. date: 8819 +.. nonce: K3rMEH +.. section: Library + +Change BufferedReader.writable() and BufferedWriter.readable() to always +return False. + +.. + +.. bpo: 26492 +.. date: 8818 +.. nonce: YN18iz +.. section: Library + +Exhausted iterator of array.array now conforms with the behavior of +iterators of other mutable sequences: it lefts exhausted even if iterated +array is extended. + +.. + +.. bpo: 26641 +.. date: 8817 +.. nonce: 1ICQz0 +.. section: Library + +doctest.DocFileTest and doctest.testfile() now support packages (module +splitted into multiple directories) for the package parameter. + +.. + +.. bpo: 25195 +.. date: 8816 +.. nonce: EOc4Po +.. section: Library + +Fix a regression in mock.MagicMock. _Call is a subclass of tuple (changeset +3603bae63c13 only works for classes) so we need to implement __ne__ +ourselves. Patch by Andrew Plummer. + +.. + +.. bpo: 26644 +.. date: 8815 +.. nonce: 7tt1tk +.. section: Library + +Raise ValueError rather than SystemError when a negative length is passed to +SSLSocket.recv() or read(). + +.. + +.. bpo: 23804 +.. date: 8814 +.. nonce: PP63Ff +.. section: Library + +Fix SSL recv(0) and read(0) methods to return zero bytes instead of up to +1024. + +.. + +.. bpo: 26616 +.. date: 8813 +.. nonce: v3QwdD +.. section: Library + +Fixed a bug in datetime.astimezone() method. + +.. + +.. bpo: 26637 +.. date: 8812 +.. nonce: ttiUf7 +.. section: Library + +The :mod:`importlib` module now emits an :exc:`ImportError` rather than a +:exc:`TypeError` if :func:`__import__` is tried during the Python shutdown +process but :data:`sys.path` is already cleared (set to ``None``). + +.. + +.. bpo: 21925 +.. date: 8811 +.. nonce: xFz-hR +.. section: Library + +:func:`warnings.formatwarning` now catches exceptions when calling +:func:`linecache.getline` and :func:`tracemalloc.get_object_traceback` to be +able to log :exc:`ResourceWarning` emitted late during the Python shutdown +process. + +.. + +.. bpo: 23848 +.. date: 8810 +.. nonce: RkKqPi +.. section: Library + +On Windows, faulthandler.enable() now also installs an exception handler to +dump the traceback of all Python threads on any Windows exception, not only +on UNIX signals (SIGSEGV, SIGFPE, SIGABRT). + +.. + +.. bpo: 26530 +.. date: 8809 +.. nonce: RWN1jR +.. section: Library + +Add C functions :c:func:`_PyTraceMalloc_Track` and +:c:func:`_PyTraceMalloc_Untrack` to track memory blocks using the +:mod:`tracemalloc` module. Add :c:func:`_PyTraceMalloc_GetTraceback` to get +the traceback of an object. + +.. + +.. bpo: 26588 +.. date: 8808 +.. nonce: uen0XP +.. section: Library + +The _tracemalloc now supports tracing memory allocations of multiple address +spaces (domains). + +.. + +.. bpo: 24266 +.. date: 8807 +.. nonce: YZgVyM +.. section: Library + +Ctrl+C during Readline history search now cancels the search mode when +compiled with Readline 7. + +.. + +.. bpo: 26590 +.. date: 8806 +.. nonce: qEy91x +.. section: Library + +Implement a safe finalizer for the _socket.socket type. It now releases the +GIL to close the socket. + +.. + +.. bpo: 18787 +.. date: 8805 +.. nonce: rWyzgA +.. section: Library + +spwd.getspnam() now raises a PermissionError if the user doesn't have +privileges. + +.. + +.. bpo: 26560 +.. date: 8804 +.. nonce: A4WXNz +.. section: Library + +Avoid potential ValueError in BaseHandler.start_response. Initial patch by +Peter Inglesby. + +.. + +.. bpo: 26567 +.. date: 8803 +.. nonce: kcC99B +.. section: Library + +Add a new function :c:func:`PyErr_ResourceWarning` function to pass the +destroyed object. Add a *source* attribute to +:class:`warnings.WarningMessage`. Add warnings._showwarnmsg() which uses +tracemalloc to get the traceback where source object was allocated. + +.. + +.. bpo: 26313 +.. date: 8802 +.. nonce: LjZAjy +.. original section: Library +.. section: Security + +ssl.py _load_windows_store_certs fails if windows cert store is empty. Patch +by Baji. + +.. + +.. bpo: 26569 +.. date: 8801 +.. nonce: EX8vF1 +.. section: Library + +Fix :func:`pyclbr.readmodule` and :func:`pyclbr.readmodule_ex` to support +importing packages. + +.. + +.. bpo: 26499 +.. date: 8800 +.. nonce: NP08PI +.. section: Library + +Account for remaining Content-Length in HTTPResponse.readline() and read1(). +Based on patch by Silent Ghost. Also document that HTTPResponse now supports +these methods. + +.. + +.. bpo: 25320 +.. date: 8799 +.. nonce: V96LIy +.. section: Library + +Handle sockets in directories unittest discovery is scanning. Patch from +Victor van den Elzen. + +.. + +.. bpo: 16181 +.. date: 8798 +.. nonce: P7lLvo +.. section: Library + +cookiejar.http2time() now returns None if year is higher than +datetime.MAXYEAR. + +.. + +.. bpo: 26513 +.. date: 8797 +.. nonce: HoPepy +.. section: Library + +Fixes platform module detection of Windows Server + +.. + +.. bpo: 23718 +.. date: 8796 +.. nonce: AMPC0o +.. section: Library + +Fixed parsing time in week 0 before Jan 1. Original patch by Tamás Bence +Gedai. + +.. + +.. bpo: 26323 +.. date: 8795 +.. nonce: KkZqEj +.. section: Library + +Add Mock.assert_called() and Mock.assert_called_once() methods to +unittest.mock. Patch written by Amit Saha. + +.. + +.. bpo: 20589 +.. date: 8794 +.. nonce: NsQ_I1 +.. section: Library + +Invoking Path.owner() and Path.group() on Windows now raise +NotImplementedError instead of ImportError. + +.. + +.. bpo: 26177 +.. date: 8793 +.. nonce: HlSWer +.. section: Library + +Fixed the keys() method for Canvas and Scrollbar widgets. + +.. + +.. bpo: 15068 +.. date: 8792 +.. nonce: xokEVC +.. section: Library + +Got rid of excessive buffering in fileinput. The bufsize parameter is now +deprecated and ignored. + +.. + +.. bpo: 19475 +.. date: 8791 +.. nonce: MH2HH9 +.. section: Library + +Added an optional argument timespec to the datetime isoformat() method to +choose the precision of the time component. + +.. + +.. bpo: 2202 +.. date: 8790 +.. nonce: dk9sd0 +.. section: Library + +Fix UnboundLocalError in AbstractDigestAuthHandler.get_algorithm_impls. +Initial patch by Mathieu Dupuy. + +.. + +.. bpo: 26167 +.. date: 8789 +.. nonce: 3F-d12 +.. section: Library + +Minimized overhead in copy.copy() and copy.deepcopy(). Optimized copying and +deepcopying bytearrays, NotImplemented, slices, short lists, tuples, dicts, +sets. + +.. + +.. bpo: 25718 +.. date: 8788 +.. nonce: 4EjZyv +.. section: Library + +Fixed pickling and copying the accumulate() iterator with total is None. + +.. + +.. bpo: 26475 +.. date: 8787 +.. nonce: JXVccY +.. section: Library + +Fixed debugging output for regular expressions with the (?x) flag. + +.. + +.. bpo: 26482 +.. date: 8786 +.. nonce: d635gW +.. section: Library + +Allowed pickling recursive dequeues. + +.. + +.. bpo: 26335 +.. date: 8785 +.. nonce: iXw5Yb +.. section: Library + +Make mmap.write() return the number of bytes written like other write +methods. Patch by Jakub Stasiak. + +.. + +.. bpo: 26457 +.. date: 8784 +.. nonce: Xe6Clh +.. section: Library + +Fixed the subnets() methods in IP network classes for the case when +resulting prefix length is equal to maximal prefix length. Based on patch by +Xiang Zhang. + +.. + +.. bpo: 26385 +.. date: 8783 +.. nonce: 50bDXm +.. section: Library + +Remove the file if the internal open() call in NamedTemporaryFile() fails. +Patch by Silent Ghost. + +.. + +.. bpo: 26402 +.. date: 8782 +.. nonce: k7DVuU +.. section: Library + +Fix XML-RPC client to retry when the server shuts down a persistent +connection. This was a regression related to the new +http.client.RemoteDisconnected exception in 3.5.0a4. + +.. + +.. bpo: 25913 +.. date: 8781 +.. nonce: 5flb95 +.. section: Library + +Leading ``<~`` is optional now in base64.a85decode() with adobe=True. Patch +by Swati Jaiswal. + +.. + +.. bpo: 26186 +.. date: 8780 +.. nonce: R9rfiL +.. section: Library + +Remove an invalid type check in importlib.util.LazyLoader. + +.. + +.. bpo: 26367 +.. date: 8779 +.. nonce: Qct-9S +.. section: Library + +importlib.__import__() raises ImportError like builtins.__import__() when +``level`` is specified but without an accompanying package specified. + +.. + +.. bpo: 26309 +.. date: 8778 +.. nonce: ubEeiz +.. section: Library + +In the "socketserver" module, shut down the request (closing the connected +socket) when verify_request() returns false. Patch by Aviv Palivoda. + +.. + +.. bpo: 23430 +.. date: 8777 +.. nonce: s_mLiA +.. section: Library + +Change the socketserver module to only catch exceptions raised from a +request handler that are derived from Exception (instead of BaseException). +Therefore SystemExit and KeyboardInterrupt no longer trigger the +handle_error() method, and will now to stop a single-threaded server. + +.. + +.. bpo: 25939 +.. date: 8776 +.. nonce: X49Fqd +.. original section: Library +.. section: Security + +On Windows open the cert store readonly in ssl.enum_certificates. + +.. + +.. bpo: 25995 +.. date: 8775 +.. nonce: NfcimP +.. section: Library + +os.walk() no longer uses FDs proportional to the tree depth. + +.. + +.. bpo: 25994 +.. date: 8774 +.. nonce: ga9rT- +.. section: Library + +Added the close() method and the support of the context manager protocol for +the os.scandir() iterator. + +.. + +.. bpo: 23992 +.. date: 8773 +.. nonce: O0Hhvc +.. section: Library + +multiprocessing: make MapResult not fail-fast upon exception. + +.. + +.. bpo: 26243 +.. date: 8772 +.. nonce: 41WSpF +.. section: Library + +Support keyword arguments to zlib.compress(). Patch by Aviv Palivoda. + +.. + +.. bpo: 26117 +.. date: 8771 +.. nonce: ne6p11 +.. section: Library + +The os.scandir() iterator now closes file descriptor not only when the +iteration is finished, but when it was failed with error. + +.. + +.. bpo: 25949 +.. date: 8770 +.. nonce: -Lh9vz +.. section: Library + +__dict__ for an OrderedDict instance is now created only when needed. + +.. + +.. bpo: 25911 +.. date: 8769 +.. nonce: d4Zadh +.. section: Library + +Restored support of bytes paths in os.walk() on Windows. + +.. + +.. bpo: 26045 +.. date: 8768 +.. nonce: WmzUrX +.. section: Library + +Add UTF-8 suggestion to error message when posting a non-Latin-1 string with +http.client. + +.. + +.. bpo: 26039 +.. date: 8767 +.. nonce: a5Bxm4 +.. section: Library + +Added zipfile.ZipInfo.from_file() and zipinfo.ZipInfo.is_dir(). Patch by +Thomas Kluyver. + +.. + +.. bpo: 12923 +.. date: 8766 +.. nonce: HPAu-B +.. section: Library + +Reset FancyURLopener's redirect counter even if there is an exception. +Based on patches by Brian Brazil and Daniel Rocco. + +.. + +.. bpo: 25945 +.. date: 8765 +.. nonce: guNgNM +.. section: Library + +Fixed a crash when unpickle the functools.partial object with wrong state. +Fixed a leak in failed functools.partial constructor. "args" and "keywords" +attributes of functools.partial have now always types tuple and dict +correspondingly. + +.. + +.. bpo: 26202 +.. date: 8764 +.. nonce: LPIXLg +.. section: Library + +copy.deepcopy() now correctly copies range() objects with non-atomic +attributes. + +.. + +.. bpo: 23076 +.. date: 8763 +.. nonce: 8rphoP +.. section: Library + +Path.glob() now raises a ValueError if it's called with an invalid pattern. +Patch by Thomas Nyberg. + +.. + +.. bpo: 19883 +.. date: 8762 +.. nonce: z9TsO6 +.. section: Library + +Fixed possible integer overflows in zipimport. + +.. + +.. bpo: 26227 +.. date: 8761 +.. nonce: Fe6oiB +.. section: Library + +On Windows, getnameinfo(), gethostbyaddr() and gethostbyname_ex() functions +of the socket module now decode the hostname from the ANSI code page rather +than UTF-8. + +.. + +.. bpo: 26099 +.. date: 8760 +.. nonce: CH5jer +.. section: Library + +The site module now writes an error into stderr if sitecustomize module can +be imported but executing the module raise an ImportError. Same change for +usercustomize. + +.. + +.. bpo: 26147 +.. date: 8759 +.. nonce: i-Jc01 +.. section: Library + +xmlrpc now works with strings not encodable with used non-UTF-8 encoding. + +.. + +.. bpo: 25935 +.. date: 8758 +.. nonce: cyni91 +.. section: Library + +Garbage collector now breaks reference loops with OrderedDict. + +.. + +.. bpo: 16620 +.. date: 8757 +.. nonce: rxpn_Y +.. section: Library + +Fixed AttributeError in msilib.Directory.glob(). + +.. + +.. bpo: 26013 +.. date: 8756 +.. nonce: 93RKNz +.. section: Library + +Added compatibility with broken protocol 2 pickles created in old Python 3 +versions (3.4.3 and lower). + +.. + +.. bpo: 26129 +.. date: 8755 +.. nonce: g4RQZd +.. section: Library + +Deprecated accepting non-integers in grp.getgrgid(). + +.. + +.. bpo: 25850 +.. date: 8754 +.. nonce: jwFPxj +.. section: Library + +Use cross-compilation by default for 64-bit Windows. + +.. + +.. bpo: 25822 +.. date: 8753 +.. nonce: 0Eafyi +.. section: Library + +Add docstrings to the fields of urllib.parse results. Patch contributed by +Swati Jaiswal. + +.. + +.. bpo: 22642 +.. date: 8752 +.. nonce: PEgS9F +.. section: Library + +Convert trace module option parsing mechanism to argparse. Patch contributed +by SilentGhost. + +.. + +.. bpo: 24705 +.. date: 8751 +.. nonce: IZYwjR +.. section: Library + +Fix sysconfig._parse_makefile not expanding ${} vars appearing before $() +vars. + +.. + +.. bpo: 26069 +.. date: 8750 +.. nonce: NaF4lN +.. section: Library + +Remove the deprecated apis in the trace module. + +.. + +.. bpo: 22138 +.. date: 8749 +.. nonce: nRNYkc +.. section: Library + +Fix mock.patch behavior when patching descriptors. Restore original values +after patching. Patch contributed by Sean McCully. + +.. + +.. bpo: 25672 +.. date: 8748 +.. nonce: fw9RJP +.. section: Library + +In the ssl module, enable the SSL_MODE_RELEASE_BUFFERS mode option if it is +safe to do so. + +.. + +.. bpo: 26012 +.. date: 8747 +.. nonce: IFSXNm +.. section: Library + +Don't traverse into symlinks for ``**`` pattern in pathlib.Path.[r]glob(). + +.. + +.. bpo: 24120 +.. date: 8746 +.. nonce: Yiwa0h +.. section: Library + +Ignore PermissionError when traversing a tree with pathlib.Path.[r]glob(). +Patch by Ulrich Petri. + +.. + +.. bpo: 21815 +.. date: 8745 +.. nonce: h7-UY8 +.. section: Library + +Accept ] characters in the data portion of imap responses, in order to +handle the flags with square brackets accepted and produced by servers such +as gmail. + +.. + +.. bpo: 25447 +.. date: 8744 +.. nonce: -4m4xO +.. section: Library + +fileinput now uses sys.stdin as-is if it does not have a buffer attribute +(restores backward compatibility). + +.. + +.. bpo: 25971 +.. date: 8743 +.. nonce: vhMeG0 +.. section: Library + +Optimized creating Fractions from floats by 2 times and from Decimals by 3 +times. + +.. + +.. bpo: 25802 +.. date: 8742 +.. nonce: Y2KOnA +.. section: Library + +Document as deprecated the remaining implementations of +importlib.abc.Loader.load_module(). + +.. + +.. bpo: 25928 +.. date: 8741 +.. nonce: JsQfKK +.. section: Library + +Add Decimal.as_integer_ratio(). + +.. + +.. bpo: 25447 +.. date: 8740 +.. nonce: ajPRDy +.. section: Library + +Copying the lru_cache() wrapper object now always works, independently from +the type of the wrapped object (by returning the original object unchanged). + +.. + +.. bpo: 25768 +.. date: 8739 +.. nonce: GDj2ip +.. section: Library + +Have the functions in compileall return booleans instead of ints and add +proper documentation and tests for the return values. + +.. + +.. bpo: 24103 +.. date: 8738 +.. nonce: WufqrQ +.. section: Library + +Fixed possible use after free in ElementTree.XMLPullParser. + +.. + +.. bpo: 25860 +.. date: 8737 +.. nonce: 0hActb +.. section: Library + +os.fwalk() no longer skips remaining directories when error occurs. +Original patch by Samson Lee. + +.. + +.. bpo: 25914 +.. date: 8736 +.. nonce: h0V61F +.. section: Library + +Fixed and simplified OrderedDict.__sizeof__. + +.. + +.. bpo: 25869 +.. date: 8735 +.. nonce: eAnRH5 +.. section: Library + +Optimized deepcopying ElementTree; it is now 20 times faster. + +.. + +.. bpo: 25873 +.. date: 8734 +.. nonce: L4Fgjm +.. section: Library + +Optimized iterating ElementTree. Iterating elements Element.iter() is now +40% faster, iterating text Element.itertext() is now up to 2.5 times faster. + +.. + +.. bpo: 25902 +.. date: 8733 +.. nonce: 6t2FmH +.. section: Library + +Fixed various refcount issues in ElementTree iteration. + +.. + +.. bpo: 22227 +.. date: 8732 +.. nonce: 5utM-Q +.. section: Library + +The TarFile iterator is reimplemented using generator. This implementation +is simpler that using class. + +.. + +.. bpo: 25638 +.. date: 8731 +.. nonce: yitRj4 +.. section: Library + +Optimized ElementTree.iterparse(); it is now 2x faster. Optimized +ElementTree parsing; it is now 10% faster. + +.. + +.. bpo: 25761 +.. date: 8730 +.. nonce: JGgMOP +.. section: Library + +Improved detecting errors in broken pickle data. + +.. + +.. bpo: 25717 +.. date: 8729 +.. nonce: 0_xjaK +.. section: Library + +Restore the previous behaviour of tolerating most fstat() errors when +opening files. This was a regression in 3.5a1, and stopped anonymous +temporary files from working in special cases. + +.. + +.. bpo: 24903 +.. date: 8728 +.. nonce: 3LBdzb +.. section: Library + +Fix regression in number of arguments compileall accepts when '-d' is +specified. The check on the number of arguments has been dropped completely +as it never worked correctly anyway. + +.. + +.. bpo: 25764 +.. date: 8727 +.. nonce: 7WWG07 +.. section: Library + +In the subprocess module, preserve any exception caused by fork() failure +when preexec_fn is used. + +.. + +.. bpo: 25771 +.. date: 8726 +.. nonce: It-7Qf +.. section: Library + +Tweak the exception message for importlib.util.resolve_name() when 'package' +isn't specified but necessary. + +.. + +.. bpo: 6478 +.. date: 8725 +.. nonce: -Bi9Hb +.. section: Library + +_strptime's regexp cache now is reset after changing timezone with +time.tzset(). + +.. + +.. bpo: 14285 +.. date: 8724 +.. nonce: UyG8Hj +.. section: Library + +When executing a package with the "python -m package" option, and package +initialization fails, a proper traceback is now reported. The "runpy" +module now lets exceptions from package initialization pass back to the +caller, rather than raising ImportError. + +.. + +.. bpo: 19771 +.. date: 8723 +.. nonce: 5NG-bg +.. section: Library + +Also in runpy and the "-m" option, omit the irrelevant message ". . . is a +package and cannot be directly executed" if the package could not even be +initialized (e.g. due to a bad ``*.pyc`` file). + +.. + +.. bpo: 25177 +.. date: 8722 +.. nonce: aNR4Ha +.. section: Library + +Fixed problem with the mean of very small and very large numbers. As a side +effect, statistics.mean and statistics.variance should be significantly +faster. + +.. + +.. bpo: 25718 +.. date: 8721 +.. nonce: D9mHZF +.. section: Library + +Fixed copying object with state with boolean value is false. + +.. + +.. bpo: 10131 +.. date: 8720 +.. nonce: a7tptz +.. section: Library + +Fixed deep copying of minidom documents. Based on patch by Marian Ganisin. + +.. + +.. bpo: 7990 +.. date: 8719 +.. nonce: fpvQxH +.. section: Library + +dir() on ElementTree.Element now lists properties: "tag", "text", "tail" and +"attrib". Original patch by Santoso Wijaya. + +.. + +.. bpo: 25725 +.. date: 8718 +.. nonce: XIKv3R +.. section: Library + +Fixed a reference leak in pickle.loads() when unpickling invalid data +including tuple instructions. + +.. + +.. bpo: 25663 +.. date: 8717 +.. nonce: Ofwfqa +.. section: Library + +In the Readline completer, avoid listing duplicate global names, and search +the global namespace before searching builtins. + +.. + +.. bpo: 25688 +.. date: 8716 +.. nonce: 8P1HOv +.. section: Library + +Fixed file leak in ElementTree.iterparse() raising an error. + +.. + +.. bpo: 23914 +.. date: 8715 +.. nonce: 1sEz4J +.. section: Library + +Fixed SystemError raised by unpickler on broken pickle data. + +.. + +.. bpo: 25691 +.. date: 8714 +.. nonce: ZEaapY +.. section: Library + +Fixed crash on deleting ElementTree.Element attributes. + +.. + +.. bpo: 25624 +.. date: 8713 +.. nonce: ed-fM0 +.. section: Library + +ZipFile now always writes a ZIP_STORED header for directory entries. Patch +by Dingyuan Wang. + +.. + +.. bpo: 25626 +.. date: 8712 +.. nonce: TQ3fvb +.. section: Library + +Change three zlib functions to accept sizes that fit in Py_ssize_t, but +internally cap those sizes to UINT_MAX. This resolves a regression in 3.5 +where GzipFile.read() failed to read chunks larger than 2 or 4 GiB. The +change affects the zlib.Decompress.decompress() max_length parameter, the +zlib.decompress() bufsize parameter, and the zlib.Decompress.flush() length +parameter. + +.. + +.. bpo: 25583 +.. date: 8711 +.. nonce: Gk-cim +.. section: Library + +Avoid incorrect errors raised by os.makedirs(exist_ok=True) when the OS +gives priority to errors such as EACCES over EEXIST. + +.. + +.. bpo: 25593 +.. date: 8710 +.. nonce: 56uegI +.. section: Library + +Change semantics of EventLoop.stop() in asyncio. + +.. + +.. bpo: 6973 +.. date: 8709 +.. nonce: nl5cHt +.. section: Library + +When we know a subprocess.Popen process has died, do not allow the +send_signal(), terminate(), or kill() methods to do anything as they could +potentially signal a different process. + +.. + +.. bpo: 23883 +.. date: 8708 +.. nonce: OQS5sS +.. section: Library + +Added missing APIs to __all__ to match the documented APIs for the following +modules: calendar, csv, enum, fileinput, ftplib, logging, optparse, tarfile, +threading and wave. Also added a test.support.check__all__() helper. +Patches by Jacek Kołodziej, Mauro S. M. Rodrigues and Joel Taddei. + +.. + +.. bpo: 25590 +.. date: 8707 +.. nonce: KPcnfv +.. section: Library + +In the Readline completer, only call getattr() once per attribute. Also +complete names of attributes such as properties and slots which are listed +by dir() but not yet created on an instance. + +.. + +.. bpo: 25498 +.. date: 8706 +.. nonce: AvqEBl +.. section: Library + +Fix a crash when garbage-collecting ctypes objects created by wrapping a +memoryview. This was a regression made in 3.5a1. Based on patch by +Eryksun. + +.. + +.. bpo: 25584 +.. date: 8705 +.. nonce: 124mYw +.. section: Library + +Added "escape" to the __all__ list in the glob module. + +.. + +.. bpo: 25584 +.. date: 8704 +.. nonce: ZeWX0J +.. section: Library + +Fixed recursive glob() with patterns starting with ``**``. + +.. + +.. bpo: 25446 +.. date: 8703 +.. nonce: k1DByx +.. section: Library + +Fix regression in smtplib's AUTH LOGIN support. + +.. + +.. bpo: 18010 +.. date: 8702 +.. nonce: Azyf1C +.. section: Library + +Fix the pydoc web server's module search function to handle exceptions from +importing packages. + +.. + +.. bpo: 25554 +.. date: 8701 +.. nonce: UM9MlR +.. section: Library + +Got rid of circular references in regular expression parsing. + +.. + +.. bpo: 18973 +.. date: 8700 +.. nonce: Am9jFL +.. section: Library + +Command-line interface of the calendar module now uses argparse instead of +optparse. + +.. + +.. bpo: 25510 +.. date: 8699 +.. nonce: 79g7LA +.. section: Library + +fileinput.FileInput.readline() now returns b'' instead of '' at the end if +the FileInput was opened with binary mode. Patch by Ryosuke Ito. + +.. + +.. bpo: 25503 +.. date: 8698 +.. nonce: Zea0Y7 +.. section: Library + +Fixed inspect.getdoc() for inherited docstrings of properties. Original +patch by John Mark Vandenberg. + +.. + +.. bpo: 25515 +.. date: 8697 +.. nonce: fQsyYG +.. section: Library + +Always use os.urandom as a source of randomness in uuid.uuid4. + +.. + +.. bpo: 21827 +.. date: 8696 +.. nonce: k2oreR +.. section: Library + +Fixed textwrap.dedent() for the case when largest common whitespace is a +substring of smallest leading whitespace. Based on patch by Robert Li. + +.. + +.. bpo: 25447 +.. date: 8695 +.. nonce: eDYc4t +.. section: Library + +The lru_cache() wrapper objects now can be copied and pickled (by returning +the original object unchanged). + +.. + +.. bpo: 25390 +.. date: 8694 +.. nonce: 6mSgRq +.. section: Library + +typing: Don't crash on Union[str, Pattern]. + +.. + +.. bpo: 25441 +.. date: 8693 +.. nonce: d7zph6 +.. section: Library + +asyncio: Raise error from drain() when socket is closed. + +.. + +.. bpo: 25410 +.. date: 8692 +.. nonce: QAs_3B +.. section: Library + +Cleaned up and fixed minor bugs in C implementation of OrderedDict. + +.. + +.. bpo: 25411 +.. date: 8691 +.. nonce: qsJTCb +.. section: Library + +Improved Unicode support in SMTPHandler through better use of the email +package. Thanks to user simon04 for the patch. + +.. + +.. bpo: 0 +.. date: 8690 +.. nonce: pFHJ0i +.. section: Library + +Move the imp module from a PendingDeprecationWarning to DeprecationWarning. + +.. + +.. bpo: 25407 +.. date: 8689 +.. nonce: ukNt1D +.. section: Library + +Remove mentions of the formatter module being removed in Python 3.6. + +.. + +.. bpo: 25406 +.. date: 8688 +.. nonce: 5MZKU_ +.. section: Library + +Fixed a bug in C implementation of OrderedDict.move_to_end() that caused +segmentation fault or hang in iterating after moving several items to the +start of ordered dict. + +.. + +.. bpo: 25382 +.. date: 8687 +.. nonce: XQ44yE +.. section: Library + +pickletools.dis() now outputs implicit memo index for the MEMOIZE opcode. + +.. + +.. bpo: 25357 +.. date: 8686 +.. nonce: ebqGy- +.. section: Library + +Add an optional newline paramer to binascii.b2a_base64(). base64.b64encode() +uses it to avoid a memory copy. + +.. + +.. bpo: 24164 +.. date: 8685 +.. nonce: oi6H3E +.. section: Library + +Objects that need calling ``__new__`` with keyword arguments, can now be +pickled using pickle protocols older than protocol version 4. + +.. + +.. bpo: 25364 +.. date: 8684 +.. nonce: u_1Wi6 +.. section: Library + +zipfile now works in threads disabled builds. + +.. + +.. bpo: 25328 +.. date: 8683 +.. nonce: Rja1Xg +.. section: Library + +smtpd's SMTPChannel now correctly raises a ValueError if both decode_data +and enable_SMTPUTF8 are set to true. + +.. + +.. bpo: 16099 +.. date: 8682 +.. nonce: _MTt3k +.. section: Library + +RobotFileParser now supports Crawl-delay and Request-rate extensions. Patch +by Nikolay Bogoychev. + +.. + +.. bpo: 25316 +.. date: 8681 +.. nonce: dHQHWI +.. section: Library + +distutils raises OSError instead of DistutilsPlatformError when MSVC is not +installed. + +.. + +.. bpo: 25380 +.. date: 8680 +.. nonce: sKZ6-I +.. section: Library + +Fixed protocol for the STACK_GLOBAL opcode in pickletools.opcodes. + +.. + +.. bpo: 23972 +.. date: 8679 +.. nonce: s2g30g +.. section: Library + +Updates asyncio datagram create method allowing reuseport and reuseaddr +socket options to be set prior to binding the socket. Mirroring the existing +asyncio create_server method the reuseaddr option for datagram sockets +defaults to True if the O/S is 'posix' (except if the platform is Cygwin). +Patch by Chris Laws. + +.. + +.. bpo: 25304 +.. date: 8678 +.. nonce: CsmLyI +.. section: Library + +Add asyncio.run_coroutine_threadsafe(). This lets you submit a coroutine to +a loop from another thread, returning a concurrent.futures.Future. By +Vincent Michel. + +.. + +.. bpo: 25232 +.. date: 8677 +.. nonce: KhKjCE +.. section: Library + +Fix CGIRequestHandler to split the query from the URL at the first question +mark (?) rather than the last. Patch from Xiang Zhang. + +.. + +.. bpo: 24657 +.. date: 8676 +.. nonce: h2Ag7y +.. section: Library + +Prevent CGIRequestHandler from collapsing slashes in the query part of the +URL as if it were a path. Patch from Xiang Zhang. + +.. + +.. bpo: 25287 +.. date: 8675 +.. nonce: KhzzMW +.. section: Library + +Don't add crypt.METHOD_CRYPT to crypt.methods if it's not supported. Check +if it is supported, it may not be supported on OpenBSD for example. + +.. + +.. bpo: 23600 +.. date: 8674 +.. nonce: 7J_RD5 +.. section: Library + +Default implementation of tzinfo.fromutc() was returning wrong results in +some cases. + +.. + +.. bpo: 25203 +.. date: 8673 +.. nonce: IgDEbt +.. section: Library + +Failed readline.set_completer_delims() no longer left the module in +inconsistent state. + +.. + +.. bpo: 25011 +.. date: 8672 +.. nonce: VcaCd6 +.. section: Library + +rlcompleter now omits private and special attribute names unless the prefix +starts with underscores. + +.. + +.. bpo: 25209 +.. date: 8671 +.. nonce: WxKcdJ +.. section: Library + +rlcompleter now can add a space or a colon after completed keyword. + +.. + +.. bpo: 22241 +.. date: 8670 +.. nonce: a-Mtw2 +.. section: Library + +timezone.utc name is now plain 'UTC', not 'UTC-00:00'. + +.. + +.. bpo: 23517 +.. date: 8669 +.. nonce: 0ABp8q +.. section: Library + +fromtimestamp() and utcfromtimestamp() methods of datetime.datetime now +round microseconds to nearest with ties going to nearest even integer +(ROUND_HALF_EVEN), as round(float), instead of rounding towards -Infinity +(ROUND_FLOOR). + +.. + +.. bpo: 23552 +.. date: 8668 +.. nonce: I0T-M- +.. section: Library + +Timeit now warns when there is substantial (4x) variance between best and +worst times. Patch from Serhiy Storchaka. + +.. + +.. bpo: 24633 +.. date: 8667 +.. nonce: 6Unn9B +.. section: Library + +site-packages/README -> README.txt. + +.. + +.. bpo: 24879 +.. date: 8666 +.. nonce: YUzg_z +.. section: Library + +help() and pydoc can now list named tuple fields in the order they were +defined rather than alphabetically. The ordering is determined by the +_fields attribute if present. + +.. + +.. bpo: 24874 +.. date: 8665 +.. nonce: luBfgA +.. section: Library + +Improve speed of itertools.cycle() and make its pickle more compact. + +.. + +.. bpo: 0 +.. date: 8664 +.. nonce: mD-_3v +.. section: Library + +Fix crash in itertools.cycle.__setstate__() when the first argument wasn't a +list. + +.. + +.. bpo: 20059 +.. date: 8663 +.. nonce: SHv0Ji +.. section: Library + +urllib.parse raises ValueError on all invalid ports. Patch by Martin Panter. + +.. + +.. bpo: 24360 +.. date: 8662 +.. nonce: 5RwH-e +.. section: Library + +Improve __repr__ of argparse.Namespace() for invalid identifiers. Patch by +Matthias Bussonnier. + +.. + +.. bpo: 23426 +.. date: 8661 +.. nonce: PUV-Cx +.. section: Library + +run_setup was broken in distutils. Patch from Alexander Belopolsky. + +.. + +.. bpo: 13938 +.. date: 8660 +.. nonce: e5NSE1 +.. section: Library + +2to3 converts StringTypes to a tuple. Patch from Mark Hammond. + +.. + +.. bpo: 2091 +.. date: 8659 +.. nonce: bp56pO +.. section: Library + +open() accepted a 'U' mode string containing '+', but 'U' can only be used +with 'r'. Patch from Jeff Balogh and John O'Connor. + +.. + +.. bpo: 8585 +.. date: 8658 +.. nonce: 78hPc2 +.. section: Library + +improved tests for zipimporter2. Patch from Mark Lawrence. + +.. + +.. bpo: 18622 +.. date: 8657 +.. nonce: i6nCCW +.. section: Library + +unittest.mock.mock_open().reset_mock would recurse infinitely. Patch from +Nicola Palumbo and Laurent De Buyst. + +.. + +.. bpo: 24426 +.. date: 8656 +.. nonce: yCtQfT +.. section: Library + +Fast searching optimization in regular expressions now works for patterns +that starts with capturing groups. Fast searching optimization now can't be +disabled at compile time. + +.. + +.. bpo: 23661 +.. date: 8655 +.. nonce: 5VHJmh +.. section: Library + +unittest.mock side_effects can now be exceptions again. This was a +regression vs Python 3.4. Patch from Ignacio Rossi + +.. + +.. bpo: 13248 +.. date: 8654 +.. nonce: SA2hvu +.. section: Library + +Remove deprecated inspect.getmoduleinfo function. + +.. + +.. bpo: 25578 +.. date: 8653 +.. nonce: G6S-ft +.. section: Library + +Fix (another) memory leak in SSLSocket.getpeercer(). + +.. + +.. bpo: 25530 +.. date: 8652 +.. nonce: hDFkwu +.. section: Library + +Disable the vulnerable SSLv3 protocol by default when creating +ssl.SSLContext. + +.. + +.. bpo: 25569 +.. date: 8651 +.. nonce: CfvQjK +.. section: Library + +Fix memory leak in SSLSocket.getpeercert(). + +.. + +.. bpo: 25471 +.. date: 8650 +.. nonce: T0A02M +.. section: Library + +Sockets returned from accept() shouldn't appear to be nonblocking. + +.. + +.. bpo: 25319 +.. date: 8649 +.. nonce: iyuglv +.. section: Library + +When threading.Event is reinitialized, the underlying condition should use a +regular lock rather than a recursive lock. + +.. + +.. bpo: 0 +.. date: 8648 +.. nonce: rtZyid +.. section: Library + +Skip getaddrinfo if host is already resolved. Patch by A. Jesse Jiryu Davis. + +.. + +.. bpo: 26050 +.. date: 8647 +.. nonce: sclyvk +.. section: Library + +Add asyncio.StreamReader.readuntil() method. Patch by Марк Коренберг. + +.. + +.. bpo: 25924 +.. date: 8646 +.. nonce: Uxr2vt +.. section: Library + +Avoid unnecessary serialization of getaddrinfo(3) calls on OS X versions +10.5 or higher. Original patch by A. Jesse Jiryu Davis. + +.. + +.. bpo: 26406 +.. date: 8645 +.. nonce: ihvhF4 +.. section: Library + +Avoid unnecessary serialization of getaddrinfo(3) calls on current versions +of OpenBSD and NetBSD. Patch by A. Jesse Jiryu Davis. + +.. + +.. bpo: 26848 +.. date: 8644 +.. nonce: ChBOpQ +.. section: Library + +Fix asyncio/subprocess.communicate() to handle empty input. Patch by Jack +O'Connor. + +.. + +.. bpo: 27040 +.. date: 8643 +.. nonce: UASyCC +.. section: Library + +Add loop.get_exception_handler method + +.. + +.. bpo: 27041 +.. date: 8642 +.. nonce: p3893U +.. section: Library + +asyncio: Add loop.create_future method + +.. + +.. bpo: 20640 +.. date: 8641 +.. nonce: PmI-G8 +.. section: IDLE + +Add tests for idlelib.configHelpSourceEdit. Patch by Saimadhav Heblikar. + +.. + +.. bpo: 0 +.. date: 8640 +.. nonce: _YJfG7 +.. section: IDLE + +In the 'IDLE-console differences' section of the IDLE doc, clarify how +running with IDLE affects sys.modules and the standard streams. + +.. + +.. bpo: 25507 +.. date: 8639 +.. nonce: i8bNpk +.. section: IDLE + +fix incorrect change in IOBinding that prevented printing. Augment IOBinding +htest to include all major IOBinding functions. + +.. + +.. bpo: 25905 +.. date: 8638 +.. nonce: FzNb3B +.. section: IDLE + +Revert unwanted conversion of ' to ’ RIGHT SINGLE QUOTATION MARK in +README.txt and open this and NEWS.txt with 'ascii'. Re-encode CREDITS.txt to +utf-8 and open it with 'utf-8'. + +.. + +.. bpo: 15348 +.. date: 8637 +.. nonce: d1Fg01 +.. section: IDLE + +Stop the debugger engine (normally in a user process) before closing the +debugger window (running in the IDLE process). This prevents the +RuntimeErrors that were being caught and ignored. + +.. + +.. bpo: 24455 +.. date: 8636 +.. nonce: x6YqtE +.. section: IDLE + +Prevent IDLE from hanging when a) closing the shell while the debugger is +active (15347); b) closing the debugger with the [X] button (15348); and c) +activating the debugger when already active (24455). The patch by Mark +Roseman does this by making two changes. 1. Suspend and resume the +gui.interaction method with the tcl vwait mechanism intended for this +purpose (instead of root.mainloop & .quit). 2. In gui.run, allow any +existing interaction to terminate first. + +.. + +.. bpo: 0 +.. date: 8635 +.. nonce: Yp9LRY +.. section: IDLE + +Change 'The program' to 'Your program' in an IDLE 'kill program?' message to +make it clearer that the program referred to is the currently running user +program, not IDLE itself. + +.. + +.. bpo: 24750 +.. date: 8634 +.. nonce: xgsi-K +.. section: IDLE + +Improve the appearance of the IDLE editor window status bar. Patch by Mark +Roseman. + +.. + +.. bpo: 25313 +.. date: 8633 +.. nonce: xMXHpO +.. section: IDLE + +Change the handling of new built-in text color themes to better address the +compatibility problem introduced by the addition of IDLE Dark. Consistently +use the revised idleConf.CurrentTheme everywhere in idlelib. + +.. + +.. bpo: 24782 +.. date: 8632 +.. nonce: RgIPYE +.. section: IDLE + +Extension configuration is now a tab in the IDLE Preferences dialog rather +than a separate dialog. The former tabs are now a sorted list. Patch by +Mark Roseman. + +.. + +.. bpo: 22726 +.. date: 8631 +.. nonce: x8T0dA +.. section: IDLE + +Re-activate the config dialog help button with some content about the other +buttons and the new IDLE Dark theme. + +.. + +.. bpo: 24820 +.. date: 8630 +.. nonce: TFPJhr +.. section: IDLE + +IDLE now has an 'IDLE Dark' built-in text color theme. It is more or less +IDLE Classic inverted, with a cobalt blue background. Strings, comments, +keywords, ... are still green, red, orange, ... . To use it with IDLEs +released before November 2015, hit the 'Save as New Custom Theme' button and +enter a new name, such as 'Custom Dark'. The custom theme will work with +any IDLE release, and can be modified. + +.. + +.. bpo: 25224 +.. date: 8629 +.. nonce: 5Llwo4 +.. section: IDLE + +README.txt is now an idlelib index for IDLE developers and curious users. +The previous user content is now in the IDLE doc chapter. 'IDLE' now means +'Integrated Development and Learning Environment'. + +.. + +.. bpo: 24820 +.. date: 8628 +.. nonce: ZUz9Fn +.. section: IDLE + +Users can now set breakpoint colors in Settings -> Custom Highlighting. +Original patch by Mark Roseman. + +.. + +.. bpo: 24972 +.. date: 8627 +.. nonce: uc0uNo +.. section: IDLE + +Inactive selection background now matches active selection background, as +configured by users, on all systems. Found items are now always highlighted +on Windows. Initial patch by Mark Roseman. + +.. + +.. bpo: 24570 +.. date: 8626 +.. nonce: s3EkNn +.. section: IDLE + +Idle: make calltip and completion boxes appear on Macs affected by a tk +regression. Initial patch by Mark Roseman. + +.. + +.. bpo: 24988 +.. date: 8625 +.. nonce: tXqq4T +.. section: IDLE + +Idle ScrolledList context menus (used in debugger) now work on Mac Aqua. +Patch by Mark Roseman. + +.. + +.. bpo: 24801 +.. date: 8624 +.. nonce: -bj_Ou +.. section: IDLE + +Make right-click for context menu work on Mac Aqua. Patch by Mark Roseman. + +.. + +.. bpo: 25173 +.. date: 8623 +.. nonce: EZzrPg +.. section: IDLE + +Associate tkinter messageboxes with a specific widget. For Mac OSX, make +them a 'sheet'. Patch by Mark Roseman. + +.. + +.. bpo: 25198 +.. date: 8622 +.. nonce: -j_BV7 +.. section: IDLE + +Enhance the initial html viewer now used for Idle Help. * Properly indent +fixed-pitch text (patch by Mark Roseman). * Give code snippet a very Sphinx- +like light blueish-gray background. * Re-use initial width and height set by +users for shell and editor. * When the Table of Contents (TOC) menu is used, +put the section header at the top of the screen. + +.. + +.. bpo: 25225 +.. date: 8621 +.. nonce: 9pvdq6 +.. section: IDLE + +Condense and rewrite Idle doc section on text colors. + +.. + +.. bpo: 21995 +.. date: 8620 +.. nonce: C5Rmzx +.. section: IDLE + +Explain some differences between IDLE and console Python. + +.. + +.. bpo: 22820 +.. date: 8619 +.. nonce: hix_8X +.. section: IDLE + +Explain need for *print* when running file from Idle editor. + +.. + +.. bpo: 25224 +.. date: 8618 +.. nonce: UVMYQq +.. section: IDLE + +Doc: augment Idle feature list and no-subprocess section. + +.. + +.. bpo: 25219 +.. date: 8617 +.. nonce: 8_9DYg +.. section: IDLE + +Update doc for Idle command line options. Some were missing and notes were +not correct. + +.. + +.. bpo: 24861 +.. date: 8616 +.. nonce: Ecg2yT +.. section: IDLE + +Most of idlelib is private and subject to change. Use idleib.idle.* to start +Idle. See idlelib.__init__.__doc__. + +.. + +.. bpo: 25199 +.. date: 8615 +.. nonce: ih7yY3 +.. section: IDLE + +Idle: add synchronization comments for future maintainers. + +.. + +.. bpo: 16893 +.. date: 8614 +.. nonce: uIi1oB +.. section: IDLE + +Replace help.txt with help.html for Idle doc display. The new +idlelib/help.html is rstripped Doc/build/html/library/idle.html. It looks +better than help.txt and will better document Idle as released. The tkinter +html viewer that works for this file was written by Rose Roseman. The now +unused EditorWindow.HelpDialog class and helt.txt file are deprecated. + +.. + +.. bpo: 24199 +.. date: 8613 +.. nonce: VKnZEv +.. section: IDLE + +Deprecate unused idlelib.idlever with possible removal in 3.6. + +.. + +.. bpo: 24790 +.. date: 8612 +.. nonce: hD1hlj +.. section: IDLE + +Remove extraneous code (which also create 2 & 3 conflicts). + +.. + +.. bpo: 26736 +.. date: 8611 +.. nonce: U_Hyqo +.. section: Documentation + +Used HTTPS for external links in the documentation if possible. + +.. + +.. bpo: 6953 +.. date: 8610 +.. nonce: Zk6rno +.. section: Documentation + +Rework the Readline module documentation to group related functions +together, and add more details such as what underlying Readline functions +and variables are accessed. + +.. + +.. bpo: 23606 +.. date: 8609 +.. nonce: 9MhIso +.. section: Documentation + +Adds note to ctypes documentation regarding cdll.msvcrt. + +.. + +.. bpo: 24952 +.. date: 8608 +.. nonce: RHhFPE +.. section: Documentation + +Clarify the default size argument of stack_size() in the "threading" and +"_thread" modules. Patch from Mattip. + +.. + +.. bpo: 26014 +.. date: 8607 +.. nonce: ptdZ_I +.. section: Documentation + +Update 3.x packaging documentation: * "See also" links to the new docs are +now provided in the legacy pages * links to setuptools documentation have +been updated + +.. + +.. bpo: 21916 +.. date: 8606 +.. nonce: muwCyp +.. section: Tests + +Added tests for the turtle module. Patch by ingrid, Gregory Loyse and Jelle +Zijlstra. + +.. + +.. bpo: 26295 +.. date: 8605 +.. nonce: sYBtj5 +.. section: Tests + +When using "python3 -m test --testdir=TESTDIR", regrtest doesn't add "test." +prefix to test module names. + +.. + +.. bpo: 26523 +.. date: 8604 +.. nonce: em_Uzt +.. section: Tests + +The multiprocessing thread pool (multiprocessing.dummy.Pool) was untested. + +.. + +.. bpo: 26015 +.. date: 8603 +.. nonce: p3oWK3 +.. section: Tests + +Added new tests for pickling iterators of mutable sequences. + +.. + +.. bpo: 26325 +.. date: 8602 +.. nonce: KOUc82 +.. section: Tests + +Added test.support.check_no_resource_warning() to check that no +ResourceWarning is emitted. + +.. + +.. bpo: 25940 +.. date: 8601 +.. nonce: MvBwSe +.. section: Tests + +Changed test_ssl to use its internal local server more. This avoids relying +on svn.python.org, which recently changed root certificate. + +.. + +.. bpo: 25616 +.. date: 8600 +.. nonce: Qr-60p +.. section: Tests + +Tests for OrderedDict are extracted from test_collections into separate file +test_ordered_dict. + +.. + +.. bpo: 25449 +.. date: 8599 +.. nonce: MP6KNs +.. section: Tests + +Added tests for OrderedDict subclasses. + +.. + +.. bpo: 25188 +.. date: 8598 +.. nonce: lnLnIW +.. section: Tests + +Add -P/--pgo to test.regrtest to suppress error output when running the test +suite for the purposes of a PGO build. Initial patch by Alecsandru Patrascu. + +.. + +.. bpo: 22806 +.. date: 8597 +.. nonce: _QHyyV +.. section: Tests + +Add ``python -m test --list-tests`` command to list tests. + +.. + +.. bpo: 18174 +.. date: 8596 +.. nonce: TzH9d_ +.. section: Tests + +``python -m test --huntrleaks ...`` now also checks for leak of file +descriptors. Patch written by Richard Oudkerk. + +.. + +.. bpo: 25260 +.. date: 8595 +.. nonce: jw3p83 +.. section: Tests + +Fix ``python -m test --coverage`` on Windows. Remove the list of ignored +directories. + +.. + +.. bpo: 0 +.. date: 8594 +.. nonce: X-Bk5l +.. section: Tests + +``PCbuild\rt.bat`` now accepts an unlimited number of arguments to pass +along to regrtest.py. Previously there was a limit of 9. + +.. + +.. bpo: 26583 +.. date: 8593 +.. nonce: Up7hTl +.. section: Tests + +Skip test_timestamp_overflow in test_import if bytecode files cannot be +written. + +.. + +.. bpo: 21277 +.. date: 8592 +.. nonce: 7y1j9a +.. section: Build + +Don't try to link _ctypes with a ffi_convenience library. + +.. + +.. bpo: 26884 +.. date: 8591 +.. nonce: O8-azL +.. section: Build + +Fix linking extension modules for cross builds. Patch by Xavier de Gaye. + +.. + +.. bpo: 26932 +.. date: 8590 +.. nonce: 5kzaG9 +.. section: Build + +Fixed support of RTLD_* constants defined as enum values, not via macros (in +particular on Android). Patch by Chi Hsuan Yen. + +.. + +.. bpo: 22359 +.. date: 8589 +.. nonce: HDjM4s +.. section: Build + +Disable the rules for running _freeze_importlib and pgen when cross- +compiling. The output of these programs is normally saved with the source +code anyway, and is still regenerated when doing a native build. Patch by +Xavier de Gaye. + +.. + +.. bpo: 21668 +.. date: 8588 +.. nonce: qWwBui +.. section: Build + +Link audioop, _datetime, _ctypes_test modules to libm, except on Mac OS X. +Patch written by Chi Hsuan Yen. + +.. + +.. bpo: 25702 +.. date: 8587 +.. nonce: ipxyJs +.. section: Build + +A --with-lto configure option has been added that will enable link time +optimizations at build time during a make profile-opt. Some compilers and +toolchains are known to not produce stable code when using LTO, be sure to +test things thoroughly before relying on it. It can provide a few % speed up +over profile-opt alone. + +.. + +.. bpo: 26624 +.. date: 8586 +.. nonce: 4fGrTl +.. section: Build + +Adds validation of ucrtbase[d].dll version with warning for old versions. + +.. + +.. bpo: 17603 +.. date: 8585 +.. nonce: 102DA- +.. section: Build + +Avoid error about nonexistant fileblocks.o file by using a lower-level check +for st_blocks in struct stat. + +.. + +.. bpo: 26079 +.. date: 8584 +.. nonce: mEzW0O +.. section: Build + +Fixing the build output folder for tix-8.4.3.6. Patch by Bjoern Thiel. + +.. + +.. bpo: 26465 +.. date: 8583 +.. nonce: _YR608 +.. section: Build + +Update Windows builds to use OpenSSL 1.0.2g. + +.. + +.. bpo: 25348 +.. date: 8582 +.. nonce: FLSPfp +.. section: Build + +Added ``--pgo`` and ``--pgo-job`` arguments to ``PCbuild\build.bat`` for +building with Profile-Guided Optimization. The old +``PCbuild\build_pgo.bat`` script is removed. + +.. + +.. bpo: 25827 +.. date: 8581 +.. nonce: yg3DMM +.. section: Build + +Add support for building with ICC to ``configure``, including a new +``--with-icc`` flag. + +.. + +.. bpo: 25696 +.. date: 8580 +.. nonce: 2R_wIv +.. section: Build + +Fix installation of Python on UNIX with make -j9. + +.. + +.. bpo: 24986 +.. date: 8579 +.. nonce: 1WyXeU +.. section: Build + +It is now possible to build Python on Windows without errors when external +libraries are not available. + +.. + +.. bpo: 24421 +.. date: 8578 +.. nonce: 2zY7vM +.. section: Build + +Compile Modules/_math.c once, before building extensions. Previously it +could fail to compile properly if the math and cmath builds were concurrent. + +.. + +.. bpo: 26465 +.. date: 8577 +.. nonce: PkIaV8 +.. section: Build + +Update OS X 10.5+ 32-bit-only installer to build and link with OpenSSL +1.0.2g. + +.. + +.. bpo: 26268 +.. date: 8576 +.. nonce: I3-YLh +.. section: Build + +Update Windows builds to use OpenSSL 1.0.2f. + +.. + +.. bpo: 25136 +.. date: 8575 +.. nonce: Vi-fmO +.. section: Build + +Support Apple Xcode 7's new textual SDK stub libraries. + +.. + +.. bpo: 24324 +.. date: 8574 +.. nonce: m6DZMx +.. section: Build + +Do not enable unreachable code warnings when using gcc as the option does +not work correctly in older versions of gcc and has been silently removed as +of gcc-4.5. + +.. + +.. bpo: 27053 +.. date: 8573 +.. nonce: 1IRbae +.. section: Windows + +Updates make_zip.py to correctly generate library ZIP file. + +.. + +.. bpo: 26268 +.. date: 8572 +.. nonce: Z-lJEh +.. section: Windows + +Update the prepare_ssl.py script to handle OpenSSL releases that don't +include the contents of the include directory (that is, 1.0.2e and later). + +.. + +.. bpo: 26071 +.. date: 8571 +.. nonce: wLxL2l +.. section: Windows + +bdist_wininst created binaries fail to start and find 32bit Python + +.. + +.. bpo: 26073 +.. date: 8570 +.. nonce: XwWgHp +.. section: Windows + +Update the list of magic numbers in launcher + +.. + +.. bpo: 26065 +.. date: 8569 +.. nonce: SkVLJp +.. section: Windows + +Excludes venv from library when generating embeddable distro. + +.. + +.. bpo: 25022 +.. date: 8568 +.. nonce: vAt_zr +.. section: Windows + +Removed very outdated PC/example_nt/ directory. + +.. + +.. bpo: 26799 +.. date: 8567 +.. nonce: gK2VXX +.. section: Tools/Demos + +Fix python-gdb.py: don't get C types once when the Python code is loaded, +but get C types on demand. The C types can change if python-gdb.py is loaded +before the Python executable. Patch written by Thomas Ilsche. + +.. + +.. bpo: 26271 +.. date: 8566 +.. nonce: wg-rzr +.. section: Tools/Demos + +Fix the Freeze tool to properly use flags passed through configure. Patch by +Daniel Shaulov. + +.. + +.. bpo: 26489 +.. date: 8565 +.. nonce: rJ_U5S +.. section: Tools/Demos + +Add dictionary unpacking support to Tools/parser/unparse.py. Patch by Guo Ci +Teo. + +.. + +.. bpo: 26316 +.. date: 8564 +.. nonce: QJvVOi +.. section: Tools/Demos + +Fix variable name typo in Argument Clinic. + +.. + +.. bpo: 25440 +.. date: 8563 +.. nonce: 5xhyGr +.. section: Tools/Demos + +Fix output of python-config --extension-suffix. + +.. + +.. bpo: 25154 +.. date: 8562 +.. nonce: yLO-r4 +.. section: Tools/Demos + +The pyvenv script has been deprecated in favour of `python3 -m venv`. + +.. + +.. bpo: 26312 +.. date: 8561 +.. nonce: h1T61B +.. section: C API + +SystemError is now raised in all programming bugs with using +PyArg_ParseTupleAndKeywords(). RuntimeError did raised before in some +programming bugs. + +.. + +.. bpo: 26198 +.. date: 8560 +.. nonce: lVn1HX +.. section: C API + +ValueError is now raised instead of TypeError on buffer overflow in parsing +"es#" and "et#" format units. SystemError is now raised instead of +TypeError on programmical error in parsing format string. diff --git a/Misc/NEWS.d/3.6.0a2.rst b/Misc/NEWS.d/3.6.0a2.rst new file mode 100644 index 0000000..7f3b0b8 --- /dev/null +++ b/Misc/NEWS.d/3.6.0a2.rst @@ -0,0 +1,799 @@ +.. bpo: 27095 +.. date: 9032 +.. nonce: 92UoyH +.. release date: 2016-06-13 +.. section: Core and Builtins + +Simplified MAKE_FUNCTION and removed MAKE_CLOSURE opcodes. Patch by Demur +Rumed. + +.. + +.. bpo: 27190 +.. date: 9031 +.. nonce: DHDFeD +.. section: Core and Builtins + +Raise NotSupportedError if sqlite3 is older than 3.3.1. Patch by Dave +Sawyer. + +.. + +.. bpo: 27286 +.. date: 9030 +.. nonce: U8q6B1 +.. section: Core and Builtins + +Fixed compiling BUILD_MAP_UNPACK_WITH_CALL opcode. Calling function with +generalized unpacking (PEP 448) and conflicting keyword names could cause +undefined behavior. + +.. + +.. bpo: 27140 +.. date: 9029 +.. nonce: uc39-1 +.. section: Core and Builtins + +Added BUILD_CONST_KEY_MAP opcode. + +.. + +.. bpo: 27186 +.. date: 9028 +.. nonce: EAnCS7 +.. section: Core and Builtins + +Add support for os.PathLike objects to open() (part of PEP 519). + +.. + +.. bpo: 27066 +.. date: 9027 +.. nonce: SNExZi +.. section: Core and Builtins + +Fixed SystemError if a custom opener (for open()) returns a negative number +without setting an exception. + +.. + +.. bpo: 26983 +.. date: 9026 +.. nonce: A0f3fK +.. section: Core and Builtins + +float() now always return an instance of exact float. The deprecation +warning is emitted if __float__ returns an instance of a strict subclass of +float. In a future versions of Python this can be an error. + +.. + +.. bpo: 27097 +.. date: 9025 +.. nonce: woRKey +.. section: Core and Builtins + +Python interpreter is now about 7% faster due to optimized instruction +decoding. Based on patch by Demur Rumed. + +.. + +.. bpo: 26647 +.. date: 9024 +.. nonce: DLSzRi +.. section: Core and Builtins + +Python interpreter now uses 16-bit wordcode instead of bytecode. Patch by +Demur Rumed. + +.. + +.. bpo: 23275 +.. date: 9023 +.. nonce: YGPb_y +.. section: Core and Builtins + +Allow assigning to an empty target list in round brackets: () = iterable. + +.. + +.. bpo: 27243 +.. date: 9022 +.. nonce: U36M4E +.. section: Core and Builtins + +Update the __aiter__ protocol: instead of returning an awaitable that +resolves to an asynchronous iterator, the asynchronous iterator should be +returned directly. Doing the former will trigger a +PendingDeprecationWarning. + +.. + +.. bpo: 0 +.. date: 9021 +.. nonce: nBpVM1 +.. section: Library + +Comment out socket (SO_REUSEPORT) and posix (O_SHLOCK, O_EXLOCK) constants +exposed on the API which are not implemented on GNU/Hurd. They would not +work at runtime anyway. + +.. + +.. bpo: 27025 +.. date: 9020 +.. nonce: ffzxpX +.. section: Library + +Generated names for Tkinter widgets are now more meanful and recognizirable. + +.. + +.. bpo: 25455 +.. date: 9019 +.. nonce: k10GoO +.. section: Library + +Fixed crashes in repr of recursive ElementTree.Element and functools.partial +objects. + +.. + +.. bpo: 27294 +.. date: 9018 +.. nonce: XPCURr +.. section: Library + +Improved repr for Tkinter event objects. + +.. + +.. bpo: 20508 +.. date: 9017 +.. nonce: 3NMbT2 +.. section: Library + +Improve exception message of IPv{4,6}Network.__getitem__. Patch by Gareth +Rees. + +.. + +.. bpo: 26556 +.. date: 9016 +.. nonce: v5j2uL +.. original section: Library +.. section: Security + +Update expat to 2.1.1, fixes CVE-2015-1283. + +.. + +.. bpo: 0 +.. date: 9015 +.. nonce: PHOAdg +.. original section: Library +.. section: Security + +Fix TLS stripping vulnerability in smtplib, CVE-2016-0772. Reported by Team +Oststrom. + +.. + +.. bpo: 21386 +.. date: 9014 +.. nonce: DjV72U +.. section: Library + +Implement missing IPv4Address.is_global property. It was documented since +07a5610bae9d. Initial patch by Roger Luethi. + +.. + +.. bpo: 27029 +.. date: 9013 +.. nonce: dmycvw +.. section: Library + +Removed deprecated support of universal newlines mode from ZipFile.open(). + +.. + +.. bpo: 27030 +.. date: 9012 +.. nonce: p29J7m +.. section: Library + +Unknown escapes consisting of ``'\'`` and an ASCII letter in regular +expressions now are errors. The re.LOCALE flag now can be used only with +bytes patterns. + +.. + +.. bpo: 27186 +.. date: 9011 +.. nonce: UYiwoh +.. section: Library + +Add os.PathLike support to DirEntry (part of PEP 519). Initial patch by +Jelle Zijlstra. + +.. + +.. bpo: 20900 +.. date: 9010 +.. nonce: H5YQPR +.. section: Library + +distutils register command now decodes HTTP responses correctly. Initial +patch by ingrid. + +.. + +.. bpo: 27186 +.. date: 9009 +.. nonce: Xo4c_F +.. section: Library + +Add os.PathLike support to pathlib, removing its provisional status (part of +PEP 519). Initial patch by Dusty Phillips. + +.. + +.. bpo: 27186 +.. date: 9008 +.. nonce: ZD1wpp +.. section: Library + +Add support for os.PathLike objects to os.fsencode() and os.fsdecode() (part +of PEP 519). + +.. + +.. bpo: 27186 +.. date: 9007 +.. nonce: y7YRfj +.. section: Library + +Introduce os.PathLike and os.fspath() (part of PEP 519). + +.. + +.. bpo: 0 +.. date: 9006 +.. nonce: iYIeng +.. section: Library + +A new version of typing.py provides several new classes and features: +@overload outside stubs, Reversible, DefaultDict, Text, ContextManager, +Type[], NewType(), TYPE_CHECKING, and numerous bug fixes (note that some of +the new features are not yet implemented in mypy or other static analyzers). +Also classes for PEP 492 (Awaitable, AsyncIterable, AsyncIterator) have been +added (in fact they made it into 3.5.1 but were never mentioned). + +.. + +.. bpo: 25738 +.. date: 9005 +.. nonce: mED9w4 +.. section: Library + +Stop http.server.BaseHTTPRequestHandler.send_error() from sending a message +body for 205 Reset Content. Also, don't send Content header fields in +responses that don't have a body. Patch by Susumu Koshiba. + +.. + +.. bpo: 21313 +.. date: 9004 +.. nonce: W30MBr +.. section: Library + +Fix the "platform" module to tolerate when sys.version contains truncated +build information. + +.. + +.. bpo: 26839 +.. date: 9003 +.. nonce: yVvy7R +.. original section: Library +.. section: Security + +On Linux, :func:`os.urandom` now calls ``getrandom()`` with +``GRND_NONBLOCK`` to fall back on reading ``/dev/urandom`` if the urandom +entropy pool is not initialized yet. Patch written by Colm Buckley. + +.. + +.. bpo: 23883 +.. date: 9002 +.. nonce: tsZUiM +.. section: Library + +Added missing APIs to __all__ to match the documented APIs for the following +modules: cgi, mailbox, mimetypes, plistlib and smtpd. Patches by Jacek +Kołodziej. + +.. + +.. bpo: 27164 +.. date: 9001 +.. nonce: 6wmjx2 +.. section: Library + +In the zlib module, allow decompressing raw Deflate streams with a +predefined zdict. Based on patch by Xiang Zhang. + +.. + +.. bpo: 24291 +.. date: 9000 +.. nonce: Ac6HvL +.. section: Library + +Fix wsgiref.simple_server.WSGIRequestHandler to completely write data to the +client. Previously it could do partial writes and truncate data. Also, +wsgiref.handler.ServerHandler can now handle stdout doing partial writes, +but this is deprecated. + +.. + +.. bpo: 21272 +.. date: 8999 +.. nonce: unScIG +.. section: Library + +Use _sysconfigdata.py to initialize distutils.sysconfig. + +.. + +.. bpo: 19611 +.. date: 8998 +.. nonce: MT-Qga +.. section: Library + +:mod:`inspect` now reports the implicit ``.0`` parameters generated by the +compiler for comprehension and generator expression scopes as if they were +positional-only parameters called ``implicit0``. Patch by Jelle Zijlstra. + +.. + +.. bpo: 26809 +.. date: 8997 +.. nonce: ya7JMb +.. section: Library + +Add ``__all__`` to :mod:`string`. Patch by Emanuel Barry. + +.. + +.. bpo: 26373 +.. date: 8996 +.. nonce: P6qz6o +.. section: Library + +subprocess.Popen.communicate now correctly ignores BrokenPipeError when the +child process dies before .communicate() is called in more/all +circumstances. + +.. + +.. bpo: 0 +.. date: 8995 +.. nonce: eKchPz +.. section: Library + +signal, socket, and ssl module IntEnum constant name lookups now return a +consistent name for values having multiple names. Ex: signal.Signals(6) now +refers to itself as signal.SIGALRM rather than flipping between that and +signal.SIGIOT based on the interpreter's hash randomization seed. + +.. + +.. bpo: 27167 +.. date: 8994 +.. nonce: orA_j0 +.. section: Library + +Clarify the subprocess.CalledProcessError error message text when the child +process died due to a signal. + +.. + +.. bpo: 25931 +.. date: 8993 +.. nonce: W7h6Am +.. section: Library + +Don't define socketserver.Forking* names on platforms such as Windows that +do not support os.fork(). + +.. + +.. bpo: 21776 +.. date: 8992 +.. nonce: 04eQfa +.. section: Library + +distutils.upload now correctly handles HTTPError. Initial patch by Claudiu +Popa. + +.. + +.. bpo: 26526 +.. date: 8991 +.. nonce: ScewjJ +.. section: Library + +Replace custom parse tree validation in the parser module with a simple DFA +validator. + +.. + +.. bpo: 27114 +.. date: 8990 +.. nonce: bGCuAM +.. section: Library + +Fix SSLContext._load_windows_store_certs fails with PermissionError + +.. + +.. bpo: 18383 +.. date: 8989 +.. nonce: jr-b0l +.. section: Library + +Avoid creating duplicate filters when using filterwarnings and simplefilter. +Based on patch by Alex Shkop. + +.. + +.. bpo: 23026 +.. date: 8988 +.. nonce: V2rgYX +.. section: Library + +winreg.QueryValueEx() now return an integer for REG_QWORD type. + +.. + +.. bpo: 26741 +.. date: 8987 +.. nonce: fsbb42 +.. section: Library + +subprocess.Popen destructor now emits a ResourceWarning warning if the child +process is still running. + +.. + +.. bpo: 27056 +.. date: 8986 +.. nonce: rk-BBL +.. section: Library + +Optimize pickle.load() and pickle.loads(), up to 10% faster to deserialize a +lot of small objects. + +.. + +.. bpo: 21271 +.. date: 8985 +.. nonce: bHIfFA +.. section: Library + +New keyword only parameters in reset_mock call. + +.. + +.. bpo: 5124 +.. date: 8984 +.. nonce: 4kwBvM +.. section: IDLE + +Paste with text selected now replaces the selection on X11. This matches how +paste works on Windows, Mac, most modern Linux apps, and ttk widgets. +Original patch by Serhiy Storchaka. + +.. + +.. bpo: 24750 +.. date: 8983 +.. nonce: wA-pc9 +.. section: IDLE + +Switch all scrollbars in IDLE to ttk versions. Where needed, minimal tests +are added to cover changes. + +.. + +.. bpo: 24759 +.. date: 8982 +.. nonce: 76HB4w +.. section: IDLE + +IDLE requires tk 8.5 and availability ttk widgets. Delete now unneeded tk +version tests and code for older versions. Add test for IDLE syntax +colorizoer. + +.. + +.. bpo: 27239 +.. date: 8981 +.. nonce: fToURh +.. section: IDLE + +idlelib.macosx.isXyzTk functions initialize as needed. + +.. + +.. bpo: 27262 +.. date: 8980 +.. nonce: t7ckly +.. section: IDLE + +move Aqua unbinding code, which enable context menus, to maxosx. + +.. + +.. bpo: 24759 +.. date: 8979 +.. nonce: ccmySu +.. section: IDLE + +Make clear in idlelib.idle_test.__init__ that the directory is a private +implementation of test.test_idle and tool for maintainers. + +.. + +.. bpo: 27196 +.. date: 8978 +.. nonce: 3yp8TF +.. section: IDLE + +Stop 'ThemeChanged' warnings when running IDLE tests. These persisted after +other warnings were suppressed in #20567. Apply Serhiy Storchaka's +update_idletasks solution to four test files. Record this additional advice +in idle_test/README.txt + +.. + +.. bpo: 20567 +.. date: 8977 +.. nonce: hhT32b +.. section: IDLE + +Revise idle_test/README.txt with advice about avoiding tk warning messages +from tests. Apply advice to several IDLE tests. + +.. + +.. bpo: 24225 +.. date: 8976 +.. nonce: NxQCka +.. section: IDLE + +Update idlelib/README.txt with new file names and event handlers. + +.. + +.. bpo: 27156 +.. date: 8975 +.. nonce: j1N9br +.. section: IDLE + +Remove obsolete code not used by IDLE. Replacements: 1. help.txt, replaced +by help.html, is out-of-date and should not be used. Its dedicated viewer +has be replaced by the html viewer in help.py. 2. ``import idlever; I = +idlever.IDLE_VERSION`` is the same as ``import sys; I = +version[:version.index(' ')]`` 3. After ``ob = +stackviewer.VariablesTreeItem(*args)``, ``ob.keys() == +list(ob.object.keys)``. 4. In macosc, runningAsOSXAPP == isAquaTk; +idCarbonAquaTk == isCarbonTk + +.. + +.. bpo: 27117 +.. date: 8974 +.. nonce: YrLPf4 +.. section: IDLE + +Make colorizer htest and turtledemo work with dark themes. Move code for +configuring text widget colors to a new function. + +.. + +.. bpo: 24225 +.. date: 8973 +.. nonce: RbyFuV +.. section: IDLE + +Rename many `idlelib/*.py` and `idle_test/test_*.py` files. Edit files to +replace old names with new names when the old name referred to the module +rather than the class it contained. See the issue and IDLE section in What's +New in 3.6 for more. + +.. + +.. bpo: 26673 +.. date: 8972 +.. nonce: dh0_Ij +.. section: IDLE + +When tk reports font size as 0, change to size 10. Such fonts on Linux +prevented the configuration dialog from opening. + +.. + +.. bpo: 21939 +.. date: 8971 +.. nonce: pWz-OK +.. section: IDLE + +Add test for IDLE's percolator. Original patch by Saimadhav Heblikar. + +.. + +.. bpo: 21676 +.. date: 8970 +.. nonce: hqy6Qh +.. section: IDLE + +Add test for IDLE's replace dialog. Original patch by Saimadhav Heblikar. + +.. + +.. bpo: 18410 +.. date: 8969 +.. nonce: DLSPZo +.. section: IDLE + +Add test for IDLE's search dialog. Original patch by Westley Martínez. + +.. + +.. bpo: 21703 +.. date: 8968 +.. nonce: bEU8sP +.. section: IDLE + +Add test for undo delegator. Patch mostly by Saimadhav Heblikar . + +.. + +.. bpo: 27044 +.. date: 8967 +.. nonce: 4y7tyM +.. section: IDLE + +Add ConfigDialog.remove_var_callbacks to stop memory leaks. + +.. + +.. bpo: 23977 +.. date: 8966 +.. nonce: miDjj8 +.. section: IDLE + +Add more asserts to test_delegator. + +.. + +.. bpo: 16484 +.. date: 8965 +.. nonce: ITzcGg +.. section: Documentation + +Change the default PYTHONDOCS URL to "https:", and fix the resulting links +to use lowercase. Patch by Sean Rodman, test by Kaushik Nadikuditi. + +.. + +.. bpo: 24136 +.. date: 8964 +.. nonce: MUK0zK +.. section: Documentation + +Document the new PEP 448 unpacking syntax of 3.5. + +.. + +.. bpo: 22558 +.. date: 8963 +.. nonce: Pk02YC +.. section: Documentation + +Add remaining doc links to source code for Python-coded modules. Patch by +Yoni Lavi. + +.. + +.. bpo: 25285 +.. date: 8962 +.. nonce: 6CxIBo +.. section: Tests + +regrtest now uses subprocesses when the -j1 command line option is used: +each test file runs in a fresh child process. Before, the -j1 option was +ignored. + +.. + +.. bpo: 25285 +.. date: 8961 +.. nonce: ENYqUQ +.. section: Tests + +Tools/buildbot/test.bat script now uses -j1 by default to run each test file +in fresh child process. + +.. + +.. bpo: 27064 +.. date: 8960 +.. nonce: xeY1WF +.. section: Windows + +The py.exe launcher now defaults to Python 3. The Windows launcher +``py.exe`` no longer prefers an installed Python 2 version over Python 3 by +default when used interactively. + +.. + +.. bpo: 27229 +.. date: 8959 +.. nonce: C2NDch +.. section: Build + +Fix the cross-compiling pgen rule for in-tree builds. Patch by Xavier de +Gaye. + +.. + +.. bpo: 26930 +.. date: 8958 +.. nonce: Sqz2O3 +.. section: Build + +Update OS X 10.5+ 32-bit-only installer to build and link with OpenSSL +1.0.2h. + +.. + +.. bpo: 17500 +.. date: 8957 +.. nonce: QTZbRV +.. section: Windows + +Remove unused and outdated icons. (See also: +https://github.com/python/pythondotorg/issues/945) + +.. + +.. bpo: 27186 +.. date: 8956 +.. nonce: Ll8R-t +.. section: C API + +Add the PyOS_FSPath() function (part of PEP 519). + +.. + +.. bpo: 26282 +.. date: 8955 +.. nonce: Rp-R6L +.. section: C API + +PyArg_ParseTupleAndKeywords() now supports positional-only parameters. + +.. + +.. bpo: 26282 +.. date: 8954 +.. nonce: DRRV-- +.. section: Tools/Demos + +Argument Clinic now supports positional-only and keyword parameters in the +same function. diff --git a/Misc/NEWS.d/3.6.0a3.rst b/Misc/NEWS.d/3.6.0a3.rst new file mode 100644 index 0000000..9bc9974 --- /dev/null +++ b/Misc/NEWS.d/3.6.0a3.rst @@ -0,0 +1,537 @@ +.. bpo: 27473 +.. date: 9085 +.. nonce: _nOtTA +.. release date: 2016-07-11 +.. section: Core and Builtins + +Fixed possible integer overflow in bytes and bytearray concatenations. +Patch by Xiang Zhang. + +.. + +.. bpo: 23034 +.. date: 9084 +.. nonce: GWaUqn +.. section: Core and Builtins + +The output of a special Python build with defined COUNT_ALLOCS, +SHOW_ALLOC_COUNT or SHOW_TRACK_COUNT macros is now off by default. It can +be re-enabled using the "-X showalloccount" option. It now outputs to +stderr instead of stdout. + +.. + +.. bpo: 27443 +.. date: 9083 +.. nonce: 87ZwZ1 +.. section: Core and Builtins + +__length_hint__() of bytearray iterators no longer return a negative integer +for a resized bytearray. + +.. + +.. bpo: 27007 +.. date: 9082 +.. nonce: Gg8Um4 +.. section: Core and Builtins + +The fromhex() class methods of bytes and bytearray subclasses now return an +instance of corresponding subclass. + +.. + +.. bpo: 26844 +.. date: 9081 +.. nonce: I0wdnY +.. section: Library + +Fix error message for imp.find_module() to refer to 'path' instead of +'name'. Patch by Lev Maximov. + +.. + +.. bpo: 23804 +.. date: 9080 +.. nonce: ipFvxc +.. section: Library + +Fix SSL zero-length recv() calls to not block and not raise an error about +unclean EOF. + +.. + +.. bpo: 27466 +.. date: 9079 +.. nonce: C_3a8E +.. section: Library + +Change time format returned by http.cookie.time2netscape, confirming the +netscape cookie format and making it consistent with documentation. + +.. + +.. bpo: 21708 +.. date: 9078 +.. nonce: RpPYiv +.. section: Library + +Deprecated dbm.dumb behavior that differs from common dbm behavior: creating +a database in 'r' and 'w' modes and modifying a database in 'r' mode. + +.. + +.. bpo: 26721 +.. date: 9077 +.. nonce: L37Y7r +.. section: Library + +Change the socketserver.StreamRequestHandler.wfile attribute to implement +BufferedIOBase. In particular, the write() method no longer does partial +writes. + +.. + +.. bpo: 22115 +.. date: 9076 +.. nonce: vG5UQW +.. section: Library + +Added methods trace_add, trace_remove and trace_info in the tkinter.Variable +class. They replace old methods trace_variable, trace, trace_vdelete and +trace_vinfo that use obsolete Tcl commands and might not work in future +versions of Tcl. Fixed old tracing methods: trace_vdelete() with wrong mode +no longer break tracing, trace_vinfo() now always returns a list of pairs of +strings, tracing in the "u" mode now works. + +.. + +.. bpo: 26243 +.. date: 9075 +.. nonce: dBtlhI +.. section: Library + +Only the level argument to zlib.compress() is keyword argument now. The +first argument is positional-only. + +.. + +.. bpo: 27038 +.. date: 9074 +.. nonce: yGMV4h +.. section: Library + +Expose the DirEntry type as os.DirEntry. Code patch by Jelle Zijlstra. + +.. + +.. bpo: 27186 +.. date: 9073 +.. nonce: OtorpF +.. section: Library + +Update os.fspath()/PyOS_FSPath() to check the return value of __fspath__() +to be either str or bytes. + +.. + +.. bpo: 18726 +.. date: 9072 +.. nonce: eIXHIl +.. section: Library + +All optional parameters of the dump(), dumps(), load() and loads() functions +and JSONEncoder and JSONDecoder class constructors in the json module are +now keyword-only. + +.. + +.. bpo: 27319 +.. date: 9071 +.. nonce: vDl2zm +.. section: Library + +Methods selection_set(), selection_add(), selection_remove() and +selection_toggle() of ttk.TreeView now allow passing multiple items as +multiple arguments instead of passing them as a tuple. Deprecated +undocumented ability of calling the selection() method with arguments. + +.. + +.. bpo: 27079 +.. date: 9070 +.. nonce: c7d0Ym +.. section: Library + +Fixed curses.ascii functions isblank(), iscntrl() and ispunct(). + +.. + +.. bpo: 27294 +.. date: 9069 +.. nonce: 0WSp9y +.. section: Library + +Numerical state in the repr for Tkinter event objects is now represented as +a combination of known flags. + +.. + +.. bpo: 27177 +.. date: 9068 +.. nonce: U6jRnd +.. section: Library + +Match objects in the re module now support index-like objects as group +indices. Based on patches by Jeroen Demeyer and Xiang Zhang. + +.. + +.. bpo: 26754 +.. date: 9067 +.. nonce: J3n0QW +.. section: Library + +Some functions (compile() etc) accepted a filename argument encoded as an +iterable of integers. Now only strings and byte-like objects are accepted. + +.. + +.. bpo: 26536 +.. date: 9066 +.. nonce: DgLWm- +.. section: Library + +socket.ioctl now supports SIO_LOOPBACK_FAST_PATH. Patch by Daniel Stokes. + +.. + +.. bpo: 27048 +.. date: 9065 +.. nonce: EVe-Bk +.. section: Library + +Prevents distutils failing on Windows when environment variables contain +non-ASCII characters + +.. + +.. bpo: 27330 +.. date: 9064 +.. nonce: GJaFCV +.. section: Library + +Fixed possible leaks in the ctypes module. + +.. + +.. bpo: 27238 +.. date: 9063 +.. nonce: Q6v6Qv +.. section: Library + +Got rid of bare excepts in the turtle module. Original patch by Jelle +Zijlstra. + +.. + +.. bpo: 27122 +.. date: 9062 +.. nonce: 06t7zN +.. section: Library + +When an exception is raised within the context being managed by a +contextlib.ExitStack() and one of the exit stack generators catches and +raises it in a chain, do not re-raise the original exception when exiting, +let the new chained one through. This avoids the PEP 479 bug described in +issue25782. + +.. + +.. bpo: 27278 +.. date: 9061 +.. nonce: y_HkGw +.. original section: Library +.. section: Security + +Fix os.urandom() implementation using getrandom() on Linux. Truncate size +to INT_MAX and loop until we collected enough random bytes, instead of +casting a directly Py_ssize_t to int. + +.. + +.. bpo: 16864 +.. date: 9060 +.. nonce: W7tJDa +.. section: Library + +sqlite3.Cursor.lastrowid now supports REPLACE statement. Initial patch by +Alex LordThorsen. + +.. + +.. bpo: 26386 +.. date: 9059 +.. nonce: 9L3Ut4 +.. section: Library + +Fixed ttk.TreeView selection operations with item id's containing spaces. + +.. + +.. bpo: 8637 +.. date: 9058 +.. nonce: lHiUSA +.. section: Library + +Honor a pager set by the env var MANPAGER (in preference to one set by the +env var PAGER). + +.. + +.. bpo: 22636 +.. date: 9057 +.. nonce: 3fQW_g +.. original section: Library +.. section: Security + +Avoid shell injection problems with ctypes.util.find_library(). + +.. + +.. bpo: 16182 +.. date: 9056 +.. nonce: RgFXyr +.. section: Library + +Fix various functions in the "readline" module to use the locale encoding, +and fix get_begidx() and get_endidx() to return code point indexes. + +.. + +.. bpo: 27392 +.. date: 9055 +.. nonce: obfni7 +.. section: Library + +Add loop.connect_accepted_socket(). Patch by Jim Fulton. + +.. + +.. bpo: 27477 +.. date: 9054 +.. nonce: iEuL-9 +.. section: IDLE + +IDLE search dialogs now use ttk widgets. + +.. + +.. bpo: 27173 +.. date: 9053 +.. nonce: M-fYaV +.. section: IDLE + +Add 'IDLE Modern Unix' to the built-in key sets. Make the default key set +depend on the platform. Add tests for the changes to the config module. + +.. + +.. bpo: 27452 +.. date: 9052 +.. nonce: dLxZ8W +.. section: IDLE + +make command line "idle-test> python test_help.py" work. __file__ is +relative when python is started in the file's directory. + +.. + +.. bpo: 27452 +.. date: 9051 +.. nonce: RtWnyR +.. section: IDLE + +add line counter and crc to IDLE configHandler test dump. + +.. + +.. bpo: 27380 +.. date: 9050 +.. nonce: Q39r9U +.. section: IDLE + +IDLE: add query.py with base Query dialog and ttk widgets. Module had +subclasses SectionName, ModuleName, and HelpSource, which are used to get +information from users by configdialog and file =>Load Module. Each subclass +has itw own validity checks. Using ModuleName allows users to edit bad +module names instead of starting over. Add tests and delete the two files +combined into the new one. + +.. + +.. bpo: 27372 +.. date: 9049 +.. nonce: k3Wj2V +.. section: IDLE + +Test_idle no longer changes the locale. + +.. + +.. bpo: 27365 +.. date: 9048 +.. nonce: y7ys_A +.. section: IDLE + +Allow non-ascii chars in IDLE NEWS.txt, for contributor names. + +.. + +.. bpo: 27245 +.. date: 9047 +.. nonce: u9aKO1 +.. section: IDLE + +IDLE: Cleanly delete custom themes and key bindings. Previously, when IDLE +was started from a console or by import, a cascade of warnings was emitted. +Patch by Serhiy Storchaka. + +.. + +.. bpo: 24137 +.. date: 9046 +.. nonce: v8o-IT +.. section: IDLE + +Run IDLE, test_idle, and htest with tkinter default root disabled. Fix code +and tests that fail with this restriction. Fix htests to not create a +second and redundant root and mainloop. + +.. + +.. bpo: 27310 +.. date: 9045 +.. nonce: KiURpC +.. section: IDLE + +Fix IDLE.app failure to launch on OS X due to vestigial import. + +.. + +.. bpo: 26754 +.. date: 9044 +.. nonce: Qm_N79 +.. section: C API + +PyUnicode_FSDecoder() accepted a filename argument encoded as an iterable of +integers. Now only strings and byte-like objects are accepted. + +.. + +.. bpo: 28066 +.. date: 9043 +.. nonce: _3xImV +.. section: Build + +Fix the logic that searches build directories for generated include files +when building outside the source tree. + +.. + +.. bpo: 27442 +.. date: 9042 +.. nonce: S2M0cz +.. section: Build + +Expose the Android API level that python was built against, in +sysconfig.get_config_vars() as 'ANDROID_API_LEVEL'. + +.. + +.. bpo: 27434 +.. date: 9041 +.. nonce: 4nRZmn +.. section: Build + +The interpreter that runs the cross-build, found in PATH, must now be of the +same feature version (e.g. 3.6) as the source being built. + +.. + +.. bpo: 26930 +.. date: 9040 +.. nonce: 9JUeSD +.. section: Build + +Update Windows builds to use OpenSSL 1.0.2h. + +.. + +.. bpo: 23968 +.. date: 9039 +.. nonce: 7AuSK9 +.. section: Build + +Rename the platform directory from plat-$(MACHDEP) to +plat-$(PLATFORM_TRIPLET). Rename the config directory (LIBPL) from +config-$(LDVERSION) to config-$(LDVERSION)-$(PLATFORM_TRIPLET). Install the +platform specifc _sysconfigdata module into the platform directory and +rename it to include the ABIFLAGS. + +.. + +.. bpo: 0 +.. date: 9038 +.. nonce: U46i2u +.. section: Build + +Don't use largefile support for GNU/Hurd. + +.. + +.. bpo: 27332 +.. date: 9037 +.. nonce: OuRZp9 +.. section: Tools/Demos + +Fixed the type of the first argument of module-level functions generated by +Argument Clinic. Patch by Petr Viktorin. + +.. + +.. bpo: 27418 +.. date: 9036 +.. nonce: W2m_8I +.. section: Tools/Demos + +Fixed Tools/importbench/importbench.py. + +.. + +.. bpo: 19489 +.. date: 9035 +.. nonce: jvzuO7 +.. section: Documentation + +Moved the search box from the sidebar to the header and footer of each page. +Patch by Ammar Askar. + +.. + +.. bpo: 27285 +.. date: 9034 +.. nonce: wZur0b +.. section: Documentation + +Update documentation to reflect the deprecation of ``pyvenv`` and normalize +on the term "virtual environment". Patch by Steve Piercy. + +.. + +.. bpo: 27027 +.. date: 9033 +.. nonce: 5oRSGL +.. section: Tests + +Added test.support.is_android that is True when this is an Android build. diff --git a/Misc/NEWS.d/3.6.0a4.rst b/Misc/NEWS.d/3.6.0a4.rst new file mode 100644 index 0000000..6c98c91 --- /dev/null +++ b/Misc/NEWS.d/3.6.0a4.rst @@ -0,0 +1,685 @@ +.. bpo: 27704 +.. date: 9155 +.. nonce: RUxzHf +.. release date: 2016-08-15 +.. section: Core and Builtins + +Optimized creating bytes and bytearray from byte-like objects and iterables. +Speed up to 3 times for short objects. Original patch by Naoki Inada. + +.. + +.. bpo: 26823 +.. date: 9154 +.. nonce: UWORiU +.. section: Core and Builtins + +Large sections of repeated lines in tracebacks are now abbreviated as +"[Previous line repeated {count} more times]" by the builtin traceback +rendering. Patch by Emanuel Barry. + +.. + +.. bpo: 27574 +.. date: 9153 +.. nonce: q73Tss +.. section: Core and Builtins + +Decreased an overhead of parsing keyword arguments in functions implemented +with using Argument Clinic. + +.. + +.. bpo: 22557 +.. date: 9152 +.. nonce: Hta2Rz +.. section: Core and Builtins + +Now importing already imported modules is up to 2.5 times faster. + +.. + +.. bpo: 17596 +.. date: 9151 +.. nonce: XgbA9V +.. section: Core and Builtins + +Include <wincrypt.h> to help with Min GW building. + +.. + +.. bpo: 17599 +.. date: 9150 +.. nonce: noy7o1 +.. section: Core and Builtins + +On Windows, rename the privately defined REPARSE_DATA_BUFFER structure to +avoid conflicting with the definition from Min GW. + +.. + +.. bpo: 27507 +.. date: 9149 +.. nonce: 3pX0Be +.. section: Core and Builtins + +Add integer overflow check in bytearray.extend(). Patch by Xiang Zhang. + +.. + +.. bpo: 27581 +.. date: 9148 +.. nonce: KezjNt +.. section: Core and Builtins + +Don't rely on wrapping for overflow check in PySequence_Tuple(). Patch by +Xiang Zhang. + +.. + +.. bpo: 1621 +.. date: 9147 +.. nonce: _FZWTr +.. section: Core and Builtins + +Avoid signed integer overflow in list and tuple operations. Patch by Xiang +Zhang. + +.. + +.. bpo: 27419 +.. date: 9146 +.. nonce: YaGodL +.. section: Core and Builtins + +Standard __import__() no longer look up "__import__" in globals or builtins +for importing submodules or "from import". Fixed a crash if raise a warning +about unabling to resolve package from __spec__ or __package__. + +.. + +.. bpo: 27083 +.. date: 9145 +.. nonce: F4ZT1C +.. section: Core and Builtins + +Respect the PYTHONCASEOK environment variable under Windows. + +.. + +.. bpo: 27514 +.. date: 9144 +.. nonce: NLbwPG +.. section: Core and Builtins + +Make having too many statically nested blocks a SyntaxError instead of +SystemError. + +.. + +.. bpo: 27366 +.. date: 9143 +.. nonce: VrInsj +.. section: Core and Builtins + +Implemented PEP 487 (Simpler customization of class creation). Upon +subclassing, the __init_subclass__ classmethod is called on the base class. +Descriptors are initialized with __set_name__ after class creation. + +.. + +.. bpo: 26027 +.. date: 9142 +.. nonce: nfVMKM +.. section: Library + +Add PEP 519/__fspath__() support to the os and os.path modules. Includes +code from Jelle Zijlstra. (See also: bpo-27524) + +.. + +.. bpo: 27598 +.. date: 9141 +.. nonce: y7PtEV +.. section: Library + +Add Collections to collections.abc. Patch by Ivan Levkivskyi, docs by Neil +Girdhar. + +.. + +.. bpo: 25958 +.. date: 9140 +.. nonce: X-V4U1 +.. section: Library + +Support "anti-registration" of special methods from various ABCs, like +__hash__, __iter__ or __len__. All these (and several more) can be set to +None in an implementation class and the behavior will be as if the method is +not defined at all. (Previously, this mechanism existed only for __hash__, +to make mutable classes unhashable.) Code contributed by Andrew Barnert and +Ivan Levkivskyi. + +.. + +.. bpo: 16764 +.. date: 9139 +.. nonce: cPbNjL +.. section: Library + +Support keyword arguments to zlib.decompress(). Patch by Xiang Zhang. + +.. + +.. bpo: 27736 +.. date: 9138 +.. nonce: 8kMhpQ +.. section: Library + +Prevent segfault after interpreter re-initialization due to ref count +problem introduced in code for Issue #27038 in 3.6.0a3. Patch by Xiang +Zhang. + +.. + +.. bpo: 25628 +.. date: 9137 +.. nonce: UcQnHF +.. section: Library + +The *verbose* and *rename* parameters for collections.namedtuple are now +keyword-only. + +.. + +.. bpo: 12345 +.. date: 9136 +.. nonce: nbAEM8 +.. section: Library + +Add mathematical constant tau to math and cmath. See also PEP 628. + +.. + +.. bpo: 26823 +.. date: 9135 +.. nonce: HcO8tR +.. section: Library + +traceback.StackSummary.format now abbreviates large sections of repeated +lines as "[Previous line repeated {count} more times]" (this change then +further affects other traceback display operations in the module). Patch by +Emanuel Barry. + +.. + +.. bpo: 27664 +.. date: 9134 +.. nonce: 6DJPxw +.. section: Library + +Add to concurrent.futures.thread.ThreadPoolExecutor() the ability to specify +a thread name prefix. + +.. + +.. bpo: 27181 +.. date: 9133 +.. nonce: 8aw9TZ +.. section: Library + +Add geometric_mean and harmonic_mean to statistics module. + +.. + +.. bpo: 27573 +.. date: 9132 +.. nonce: B7XhTs +.. section: Library + +code.interact now prints an message when exiting. + +.. + +.. bpo: 6422 +.. date: 9131 +.. nonce: iBSc45 +.. section: Library + +Add autorange method to timeit.Timer objects. + +.. + +.. bpo: 27773 +.. date: 9130 +.. nonce: hMSSeX +.. section: Library + +Correct some memory management errors server_hostname in _ssl.wrap_socket(). + +.. + +.. bpo: 26750 +.. date: 9129 +.. nonce: OQn3fr +.. section: Library + +unittest.mock.create_autospec() now works properly for subclasses of +property() and other data descriptors. Removes the never publicly used, +never documented unittest.mock.DescriptorTypes tuple. + +.. + +.. bpo: 26754 +.. date: 9128 +.. nonce: XZqomf +.. section: Library + +Undocumented support of general bytes-like objects as path in compile() and +similar functions is now deprecated. + +.. + +.. bpo: 26800 +.. date: 9127 +.. nonce: QDcK8u +.. section: Library + +Undocumented support of general bytes-like objects as paths in os functions +is now deprecated. + +.. + +.. bpo: 26981 +.. date: 9126 +.. nonce: yhNTCf +.. section: Library + +Add _order_ compatibility shim to enum.Enum for Python 2/3 code bases. + +.. + +.. bpo: 27661 +.. date: 9125 +.. nonce: 3JZckO +.. section: Library + +Added tzinfo keyword argument to datetime.combine. + +.. + +.. bpo: 0 +.. date: 9124 +.. nonce: Ny9oPv +.. section: Library + +In the curses module, raise an error if window.getstr() or window.instr() is +passed a negative value. + +.. + +.. bpo: 27783 +.. date: 9123 +.. nonce: cR1jXH +.. section: Library + +Fix possible usage of uninitialized memory in operator.methodcaller. + +.. + +.. bpo: 27774 +.. date: 9122 +.. nonce: FDcik1 +.. section: Library + +Fix possible Py_DECREF on unowned object in _sre. + +.. + +.. bpo: 27760 +.. date: 9121 +.. nonce: gxMjp4 +.. section: Library + +Fix possible integer overflow in binascii.b2a_qp. + +.. + +.. bpo: 27758 +.. date: 9120 +.. nonce: 0NRV03 +.. section: Library + +Fix possible integer overflow in the _csv module for large record lengths. + +.. + +.. bpo: 27568 +.. date: 9119 +.. nonce: OnuO9s +.. section: Library + +Prevent HTTPoxy attack (CVE-2016-1000110). Ignore the HTTP_PROXY variable +when REQUEST_METHOD environment is set, which indicates that the script is +in CGI mode. + +.. + +.. bpo: 7063 +.. date: 9118 +.. nonce: nXsVKB +.. section: Library + +Remove dead code from the "array" module's slice handling. Patch by Chuck. + +.. + +.. bpo: 27656 +.. date: 9117 +.. nonce: joTscM +.. section: Library + +Do not assume sched.h defines any SCHED_* constants. + +.. + +.. bpo: 27130 +.. date: 9116 +.. nonce: SUxwXZ +.. section: Library + +In the "zlib" module, fix handling of large buffers (typically 4 GiB) when +compressing and decompressing. Previously, inputs were limited to 4 GiB, +and compression and decompression operations did not properly handle results +of 4 GiB. + +.. + +.. bpo: 24773 +.. date: 9115 +.. nonce: IDW05R +.. section: Library + +Implemented PEP 495 (Local Time Disambiguation). + +.. + +.. bpo: 0 +.. date: 9114 +.. nonce: lOkwM8 +.. section: Library + +Expose the EPOLLEXCLUSIVE constant (when it is defined) in the select +module. + +.. + +.. bpo: 27567 +.. date: 9113 +.. nonce: bYOgyw +.. section: Library + +Expose the EPOLLRDHUP and POLLRDHUP constants in the select module. + +.. + +.. bpo: 1621 +.. date: 9112 +.. nonce: 0nclmI +.. section: Library + +Avoid signed int negation overflow in the "audioop" module. + +.. + +.. bpo: 27533 +.. date: 9111 +.. nonce: iDmKzV +.. section: Library + +Release GIL in nt._isdir + +.. + +.. bpo: 17711 +.. date: 9110 +.. nonce: 47AILJ +.. section: Library + +Fixed unpickling by the persistent ID with protocol 0. Original patch by +Alexandre Vassalotti. + +.. + +.. bpo: 27522 +.. date: 9109 +.. nonce: 8vVz_t +.. section: Library + +Avoid an unintentional reference cycle in email.feedparser. + +.. + +.. bpo: 27512 +.. date: 9108 +.. nonce: FaGwup +.. section: Library + +Fix a segfault when os.fspath() called an __fspath__() method that raised an +exception. Patch by Xiang Zhang. + +.. + +.. bpo: 27714 +.. date: 9107 +.. nonce: bUEDsI +.. section: IDLE + +text_textview and test_autocomplete now pass when re-run in the same +process. This occurs when test_idle fails when run with the -w option but +without -jn. Fix warning from test_config. + +.. + +.. bpo: 27621 +.. date: 9106 +.. nonce: BcpOPU +.. section: IDLE + +Put query response validation error messages in the query box itself instead +of in a separate massagebox. Redo tests to match. Add Mac OSX refinements. +Original patch by Mark Roseman. + +.. + +.. bpo: 27620 +.. date: 9105 +.. nonce: TXRR6x +.. section: IDLE + +Escape key now closes Query box as cancelled. + +.. + +.. bpo: 27609 +.. date: 9104 +.. nonce: MbTuKa +.. section: IDLE + +IDLE: tab after initial whitespace should tab, not autocomplete. This fixes +problem with writing docstrings at least twice indented. + +.. + +.. bpo: 27609 +.. date: 9103 +.. nonce: OBYgv_ +.. section: IDLE + +Explicitly return None when there are also non-None returns. In a few cases, +reverse a condition and eliminate a return. + +.. + +.. bpo: 25507 +.. date: 9102 +.. nonce: lxf68d +.. section: IDLE + +IDLE no longer runs buggy code because of its tkinter imports. Users must +include the same imports required to run directly in Python. + +.. + +.. bpo: 27173 +.. date: 9101 +.. nonce: M-fYaV +.. section: IDLE + +Add 'IDLE Modern Unix' to the built-in key sets. Make the default key set +depend on the platform. Add tests for the changes to the config module. + +.. + +.. bpo: 27452 +.. date: 9100 +.. nonce: RtWnyR +.. section: IDLE + +add line counter and crc to IDLE configHandler test dump. + +.. + +.. bpo: 25805 +.. date: 9099 +.. nonce: 9SVxXQ +.. section: Tests + +Skip a test in test_pkgutil as needed that doesn't work when ``__name__ == +__main__``. Patch by SilentGhost. + +.. + +.. bpo: 27472 +.. date: 9098 +.. nonce: NS3L93 +.. section: Tests + +Add test.support.unix_shell as the path to the default shell. + +.. + +.. bpo: 27369 +.. date: 9097 +.. nonce: LG7U2D +.. section: Tests + +In test_pyexpat, avoid testing an error message detail that changed in Expat +2.2.0. + +.. + +.. bpo: 27594 +.. date: 9096 +.. nonce: w3F57B +.. section: Tests + +Prevent assertion error when running test_ast with coverage enabled: ensure +code object has a valid first line number. Patch suggested by Ivan +Levkivskyi. + +.. + +.. bpo: 27647 +.. date: 9095 +.. nonce: -1HUR6 +.. section: Windows + +Update bundled Tcl/Tk to 8.6.6. + +.. + +.. bpo: 27610 +.. date: 9094 +.. nonce: O0o0mB +.. section: Windows + +Adds PEP 514 metadata to Windows installer + +.. + +.. bpo: 27469 +.. date: 9093 +.. nonce: 0GwDkX +.. section: Windows + +Adds a shell extension to the launcher so that drag and drop works +correctly. + +.. + +.. bpo: 27309 +.. date: 9092 +.. nonce: chiOo6 +.. section: Windows + +Enables proper Windows styles in python[w].exe manifest. + +.. + +.. bpo: 27713 +.. date: 9091 +.. nonce: _3DgXG +.. section: Build + +Suppress spurious build warnings when updating importlib's bootstrap files. +Patch by Xiang Zhang + +.. + +.. bpo: 25825 +.. date: 9090 +.. nonce: MLbdVU +.. section: Build + +Correct the references to Modules/python.exp, which is required on AIX. The +references were accidentally changed in 3.5.0a1. + +.. + +.. bpo: 27453 +.. date: 9089 +.. nonce: Pb5DBi +.. section: Build + +CPP invocation in configure must use CPPFLAGS. Patch by Chi Hsuan Yen. + +.. + +.. bpo: 27641 +.. date: 9088 +.. nonce: eGzgCk +.. section: Build + +The configure script now inserts comments into the makefile to prevent the +pgen and _freeze_importlib executables from being cross- compiled. + +.. + +.. bpo: 26662 +.. date: 9087 +.. nonce: XkwRxM +.. section: Build + +Set PYTHON_FOR_GEN in configure as the Python program to be used for file +generation during the build. + +.. + +.. bpo: 10910 +.. date: 9086 +.. nonce: ZdRayb +.. section: Build + +Avoid C++ compilation errors on FreeBSD and OS X. Also update FreedBSD +version checks for the original ctype UTF-8 workaround. diff --git a/Misc/NEWS.d/3.6.0b1.rst b/Misc/NEWS.d/3.6.0b1.rst new file mode 100644 index 0000000..8e0197f --- /dev/null +++ b/Misc/NEWS.d/3.6.0b1.rst @@ -0,0 +1,1608 @@ +.. bpo: 23722 +.. date: 9319 +.. nonce: C-8boi +.. release date: 2016-09-12 +.. section: Core and Builtins + +The __class__ cell used by zero-argument super() is now initialized from +type.__new__ rather than __build_class__, so class methods relying on that +will now work correctly when called from metaclass methods during class +creation. Patch by Martin Teichmann. + +.. + +.. bpo: 25221 +.. date: 9318 +.. nonce: 9YbOxB +.. section: Core and Builtins + +Fix corrupted result from PyLong_FromLong(0) when Python is compiled with +NSMALLPOSINTS = 0. + +.. + +.. bpo: 27080 +.. date: 9317 +.. nonce: Te4Tjb +.. section: Core and Builtins + +Implement formatting support for PEP 515. Initial patch by Chris Angelico. + +.. + +.. bpo: 27199 +.. date: 9316 +.. nonce: GheADD +.. section: Core and Builtins + +In tarfile, expose copyfileobj bufsize to improve throughput. Patch by Jason +Fried. + +.. + +.. bpo: 27948 +.. date: 9315 +.. nonce: Rpw5nq +.. section: Core and Builtins + +In f-strings, only allow backslashes inside the braces (where the +expressions are). This is a breaking change from the 3.6 alpha releases, +where backslashes are allowed anywhere in an f-string. Also, require that +expressions inside f-strings be enclosed within literal braces, and not +escapes like ``f'\x7b"hi"\x7d'``. + +.. + +.. bpo: 28046 +.. date: 9314 +.. nonce: liHxFW +.. section: Core and Builtins + +Remove platform-specific directories from sys.path. + +.. + +.. bpo: 28071 +.. date: 9313 +.. nonce: PffE44 +.. section: Core and Builtins + +Add early-out for differencing from an empty set. + +.. + +.. bpo: 25758 +.. date: 9312 +.. nonce: yR-YTD +.. section: Core and Builtins + +Prevents zipimport from unnecessarily encoding a filename (patch by Eryk +Sun) + +.. + +.. bpo: 25856 +.. date: 9311 +.. nonce: neCvXl +.. section: Core and Builtins + +The __module__ attribute of extension classes and functions now is interned. +This leads to more compact pickle data with protocol 4. + +.. + +.. bpo: 27213 +.. date: 9310 +.. nonce: VCfkkp +.. section: Core and Builtins + +Rework CALL_FUNCTION* opcodes to produce shorter and more efficient +bytecode. Patch by Demur Rumed, design by Serhiy Storchaka, reviewed by +Serhiy Storchaka and Victor Stinner. + +.. + +.. bpo: 26331 +.. date: 9309 +.. nonce: TdJp8_ +.. section: Core and Builtins + +Implement tokenizing support for PEP 515. Patch by Georg Brandl. + +.. + +.. bpo: 27999 +.. date: 9308 +.. nonce: 8aacQj +.. section: Core and Builtins + +Make "global after use" a SyntaxError, and ditto for nonlocal. Patch by Ivan +Levkivskyi. + +.. + +.. bpo: 28003 +.. date: 9307 +.. nonce: noeoav +.. section: Core and Builtins + +Implement PEP 525 -- Asynchronous Generators. + +.. + +.. bpo: 27985 +.. date: 9306 +.. nonce: 0ayJ5k +.. section: Core and Builtins + +Implement PEP 526 -- Syntax for Variable Annotations. Patch by Ivan +Levkivskyi. + +.. + +.. bpo: 26058 +.. date: 9305 +.. nonce: UR_ojv +.. section: Core and Builtins + +Add a new private version to the builtin dict type, incremented at each +dictionary creation and at each dictionary change. Implementation of the PEP +509. + +.. + +.. bpo: 27364 +.. date: 9304 +.. nonce: 8u_LoD +.. section: Core and Builtins + +A backslash-character pair that is not a valid escape sequence now generates +a DeprecationWarning. Patch by Emanuel Barry. + +.. + +.. bpo: 27350 +.. date: 9303 +.. nonce: aABzcL +.. section: Core and Builtins + +`dict` implementation is changed like PyPy. It is more compact and preserves +insertion order. (Concept developed by Raymond Hettinger and patch by Inada +Naoki.) + +.. + +.. bpo: 27911 +.. date: 9302 +.. nonce: 1eaHRd +.. section: Core and Builtins + +Remove unnecessary error checks in ``exec_builtin_or_dynamic()``. + +.. + +.. bpo: 27078 +.. date: 9301 +.. nonce: ZevPQR +.. section: Core and Builtins + +Added BUILD_STRING opcode. Optimized f-strings evaluation. + +.. + +.. bpo: 17884 +.. date: 9300 +.. nonce: wGy0dr +.. section: Core and Builtins + +Python now requires systems with inttypes.h and stdint.h + +.. + +.. bpo: 27961 +.. date: 9299 +.. nonce: EYS8oe +.. section: Core and Builtins + +Require platforms to support ``long long``. Python hasn't compiled without +``long long`` for years, so this is basically a formality. + +.. + +.. bpo: 27355 +.. date: 9298 +.. nonce: qdIpxm +.. section: Core and Builtins + +Removed support for Windows CE. It was never finished, and Windows CE is no +longer a relevant platform for Python. + +.. + +.. bpo: 0 +.. date: 9297 +.. nonce: rdhhVw +.. section: Core and Builtins + +Implement PEP 523. + +.. + +.. bpo: 27870 +.. date: 9296 +.. nonce: Y0u34u +.. section: Core and Builtins + +A left shift of zero by a large integer no longer attempts to allocate large +amounts of memory. + +.. + +.. bpo: 25402 +.. date: 9295 +.. nonce: naeRHq +.. section: Core and Builtins + +In int-to-decimal-string conversion, improve the estimate of the +intermediate memory required, and remove an unnecessarily strict overflow +check. Patch by Serhiy Storchaka. + +.. + +.. bpo: 27214 +.. date: 9294 +.. nonce: CDh8S4 +.. section: Core and Builtins + +In long_invert, be more careful about modifying object returned by long_add, +and remove an unnecessary check for small longs. Thanks Oren Milman for +analysis and patch. + +.. + +.. bpo: 27506 +.. date: 9293 +.. nonce: eK87PI +.. section: Core and Builtins + +Support passing the bytes/bytearray.translate() "delete" argument by +keyword. + +.. + +.. bpo: 27812 +.. date: 9292 +.. nonce: sidcs8 +.. section: Core and Builtins + +Properly clear out a generator's frame's backreference to the generator to +prevent crashes in frame.clear(). + +.. + +.. bpo: 27811 +.. date: 9291 +.. nonce: T4AuBo +.. section: Core and Builtins + +Fix a crash when a coroutine that has not been awaited is finalized with +warnings-as-errors enabled. + +.. + +.. bpo: 27587 +.. date: 9290 +.. nonce: mbavY2 +.. section: Core and Builtins + +Fix another issue found by PVS-Studio: Null pointer check after use of 'def' +in _PyState_AddModule(). Initial patch by Christian Heimes. + +.. + +.. bpo: 27792 +.. date: 9289 +.. nonce: Np6_Hl +.. section: Core and Builtins + +The modulo operation applied to ``bool`` and other ``int`` subclasses now +always returns an ``int``. Previously the return type depended on the input +values. Patch by Xiang Zhang. + +.. + +.. bpo: 26984 +.. date: 9288 +.. nonce: 7--80J +.. section: Core and Builtins + +int() now always returns an instance of exact int. + +.. + +.. bpo: 25604 +.. date: 9287 +.. nonce: UkeHGy +.. section: Core and Builtins + +Fix a minor bug in integer true division; this bug could potentially have +caused off-by-one-ulp results on platforms with unreliable ldexp +implementations. + +.. + +.. bpo: 24254 +.. date: 9286 +.. nonce: 368r1U +.. section: Core and Builtins + +Make class definition namespace ordered by default. + +.. + +.. bpo: 27662 +.. date: 9285 +.. nonce: a8cBpq +.. section: Core and Builtins + +Fix an overflow check in ``List_New``: the original code was checking +against ``Py_SIZE_MAX`` instead of the correct upper bound of +``Py_SSIZE_T_MAX``. Patch by Xiang Zhang. + +.. + +.. bpo: 27782 +.. date: 9284 +.. nonce: C8OBQD +.. section: Core and Builtins + +Multi-phase extension module import now correctly allows the ``m_methods`` +field to be used to add module level functions to instances of non-module +types returned from ``Py_create_mod``. Patch by Xiang Zhang. + +.. + +.. bpo: 27936 +.. date: 9283 +.. nonce: AdOann +.. section: Core and Builtins + +The round() function accepted a second None argument for some types but not +for others. Fixed the inconsistency by accepting None for all numeric +types. + +.. + +.. bpo: 27487 +.. date: 9282 +.. nonce: jeTQNr +.. section: Core and Builtins + +Warn if a submodule argument to "python -m" or runpy.run_module() is found +in sys.modules after parent packages are imported, but before the submodule +is executed. + +.. + +.. bpo: 27157 +.. date: 9281 +.. nonce: Wf_eFE +.. section: Core and Builtins + +Make only type() itself accept the one-argument form. Patch by Eryk Sun and +Emanuel Barry. + +.. + +.. bpo: 27558 +.. date: 9280 +.. nonce: VmltMh +.. section: Core and Builtins + +Fix a SystemError in the implementation of "raise" statement. In a brand new +thread, raise a RuntimeError since there is no active exception to reraise. +Patch written by Xiang Zhang. + +.. + +.. bpo: 28008 +.. date: 9279 +.. nonce: 0DdIrA +.. section: Core and Builtins + +Implement PEP 530 -- asynchronous comprehensions. + +.. + +.. bpo: 27942 +.. date: 9278 +.. nonce: wCAkW5 +.. section: Core and Builtins + +Fix memory leak in codeobject.c + +.. + +.. bpo: 28732 +.. date: 9277 +.. nonce: xkG8k7 +.. section: Library + +Fix crash in os.spawnv() with no elements in args + +.. + +.. bpo: 28485 +.. date: 9276 +.. nonce: WuKqKh +.. section: Library + +Always raise ValueError for negative compileall.compile_dir(workers=...) +parameter, even when multithreading is unavailable. + +.. + +.. bpo: 28037 +.. date: 9275 +.. nonce: -3u7zq +.. section: Library + +Use sqlite3_get_autocommit() instead of setting Connection->inTransaction +manually. + +.. + +.. bpo: 25283 +.. date: 9274 +.. nonce: qwQDX2 +.. section: Library + +Attributes tm_gmtoff and tm_zone are now available on all platforms in the +return values of time.localtime() and time.gmtime(). + +.. + +.. bpo: 24454 +.. date: 9273 +.. nonce: pUTKOA +.. section: Library + +Regular expression match object groups are now accessible using __getitem__. +"mo[x]" is equivalent to "mo.group(x)". + +.. + +.. bpo: 10740 +.. date: 9272 +.. nonce: 8iGFan +.. section: Library + +sqlite3 no longer implicitly commit an open transaction before DDL +statements. + +.. + +.. bpo: 17941 +.. date: 9271 +.. nonce: E9rm_o +.. section: Library + +Add a *module* parameter to collections.namedtuple(). + +.. + +.. bpo: 22493 +.. date: 9270 +.. nonce: yDfUrj +.. section: Library + +Inline flags now should be used only at the start of the regular expression. +Deprecation warning is emitted if uses them in the middle of the regular +expression. + +.. + +.. bpo: 26885 +.. date: 9269 +.. nonce: TJ779X +.. section: Library + +xmlrpc now supports unmarshalling additional data types used by Apache XML- +RPC implementation for numerics and None. + +.. + +.. bpo: 28070 +.. date: 9268 +.. nonce: Kot8Hu +.. section: Library + +Fixed parsing inline verbose flag in regular expressions. + +.. + +.. bpo: 19500 +.. date: 9267 +.. nonce: H7q5im +.. section: Library + +Add client-side SSL session resumption to the ssl module. + +.. + +.. bpo: 28022 +.. date: 9266 +.. nonce: 08kTMg +.. section: Library + +Deprecate ssl-related arguments in favor of SSLContext. The deprecation +include manual creation of SSLSocket and certfile/keyfile (or similar) in +ftplib, httplib, imaplib, smtplib, poplib and urllib. + +.. + +.. bpo: 28043 +.. date: 9265 +.. nonce: 588Oy3 +.. section: Library + +SSLContext has improved default settings: OP_NO_SSLv2, OP_NO_SSLv3, +OP_NO_COMPRESSION, OP_CIPHER_SERVER_PREFERENCE, OP_SINGLE_DH_USE, +OP_SINGLE_ECDH_USE and HIGH ciphers without MD5. + +.. + +.. bpo: 24693 +.. date: 9264 +.. nonce: a63Shp +.. section: Library + +Changed some RuntimeError's in the zipfile module to more appropriate types. +Improved some error messages and debugging output. + +.. + +.. bpo: 17909 +.. date: 9263 +.. nonce: SMNkt6 +.. section: Library + +``json.load`` and ``json.loads`` now support binary input encoded as UTF-8, +UTF-16 or UTF-32. Patch by Serhiy Storchaka. + +.. + +.. bpo: 27137 +.. date: 9262 +.. nonce: frjG8W +.. section: Library + +the pure Python fallback implementation of ``functools.partial`` now matches +the behaviour of its accelerated C counterpart for subclassing, pickling and +text representation purposes. Patch by Emanuel Barry and Serhiy Storchaka. + +.. + +.. bpo: 0 +.. date: 9261 +.. nonce: 81jNns +.. section: Library + +Fix possible integer overflows and crashes in the mmap module with unusual +usage patterns. + +.. + +.. bpo: 1703178 +.. date: 9260 +.. nonce: meb49K +.. section: Library + +Fix the ability to pass the --link-objects option to the distutils build_ext +command. + +.. + +.. bpo: 28019 +.. date: 9259 +.. nonce: KUhBaS +.. section: Library + +itertools.count() no longer rounds non-integer step in range between 1.0 and +2.0 to 1. + +.. + +.. bpo: 18401 +.. date: 9258 +.. nonce: _12WDV +.. section: Library + +Pdb now supports the 'readrc' keyword argument to control whether .pdbrc +files should be read. Patch by Martin Matusiak and Sam Kimbrel. + +.. + +.. bpo: 25969 +.. date: 9257 +.. nonce: qSPkl- +.. section: Library + +Update the lib2to3 grammar to handle the unpacking generalizations added in +3.5. + +.. + +.. bpo: 14977 +.. date: 9256 +.. nonce: 4MvALg +.. section: Library + +mailcap now respects the order of the lines in the mailcap files ("first +match"), as required by RFC 1542. Patch by Michael Lazar. + +.. + +.. bpo: 28082 +.. date: 9255 +.. nonce: EICw4d +.. section: Library + +Convert re flag constants to IntFlag. + +.. + +.. bpo: 28025 +.. date: 9254 +.. nonce: YxcZHY +.. section: Library + +Convert all ssl module constants to IntEnum and IntFlags. SSLContext +properties now return flags and enums. + +.. + +.. bpo: 23591 +.. date: 9253 +.. nonce: 7gSXAN +.. section: Library + +Add Flag, IntFlag, and auto() to enum module. + +.. + +.. bpo: 433028 +.. date: 9252 +.. nonce: yGjT0q +.. section: Library + +Added support of modifier spans in regular expressions. + +.. + +.. bpo: 24594 +.. date: 9251 +.. nonce: 9CnFVS +.. section: Library + +Validates persist parameter when opening MSI database + +.. + +.. bpo: 17582 +.. date: 9250 +.. nonce: MXEHxQ +.. section: Library + +xml.etree.ElementTree nows preserves whitespaces in attributes (Patch by +Duane Griffin. Reviewed and approved by Stefan Behnel.) + +.. + +.. bpo: 28047 +.. date: 9249 +.. nonce: pDu3Fm +.. section: Library + +Fixed calculation of line length used for the base64 CTE in the new email +policies. + +.. + +.. bpo: 27576 +.. date: 9248 +.. nonce: tqZxYv +.. section: Library + +Fix call order in OrderedDict.__init__(). + +.. + +.. bpo: 0 +.. date: 9247 +.. nonce: cxHuUo +.. section: Library + +email.generator.DecodedGenerator now supports the policy keyword. + +.. + +.. bpo: 28027 +.. date: 9246 +.. nonce: v39s1z +.. section: Library + +Remove undocumented modules from ``Lib/plat-*``: IN, CDROM, DLFCN, TYPES, +CDIO, and STROPTS. + +.. + +.. bpo: 27445 +.. date: 9245 +.. nonce: wOG0C0 +.. section: Library + +Don't pass str(_charset) to MIMEText.set_payload(). Patch by Claude Paroz. + +.. + +.. bpo: 24277 +.. date: 9244 +.. nonce: OgDA28 +.. section: Library + +The new email API is no longer provisional, and the docs have been +reorganized and rewritten to emphasize the new API. + +.. + +.. bpo: 22450 +.. date: 9243 +.. nonce: T3Sn_J +.. section: Library + +urllib now includes an ``Accept: */*`` header among the default headers. +This makes the results of REST API requests more consistent and predictable +especially when proxy servers are involved. + +.. + +.. bpo: 0 +.. date: 9242 +.. nonce: PVZStR +.. section: Library + +lib2to3.pgen3.driver.load_grammar() now creates a stable cache file between +runs given the same Grammar.txt input regardless of the hash randomization +setting. + +.. + +.. bpo: 28005 +.. date: 9241 +.. nonce: oJLK1w +.. section: Library + +Allow ImportErrors in encoding implementation to propagate. + +.. + +.. bpo: 26667 +.. date: 9240 +.. nonce: hWs9wA +.. section: Library + +Support path-like objects in importlib.util. + +.. + +.. bpo: 27570 +.. date: 9239 +.. nonce: pU0Zie +.. section: Library + +Avoid zero-length memcpy() etc calls with null source pointers in the +"ctypes" and "array" modules. + +.. + +.. bpo: 22233 +.. date: 9238 +.. nonce: uXSN0R +.. section: Library + +Break email header lines *only* on the RFC specified CR and LF characters, +not on arbitrary unicode line breaks. This also fixes a bug in HTTP header +parsing. + +.. + +.. bpo: 27331 +.. date: 9237 +.. nonce: akOxfh +.. section: Library + +The email.mime classes now all accept an optional policy keyword. + +.. + +.. bpo: 27988 +.. date: 9236 +.. nonce: VfMzZH +.. section: Library + +Fix email iter_attachments incorrect mutation of payload list. + +.. + +.. bpo: 16113 +.. date: 9235 +.. nonce: jyKRxs +.. section: Library + +Add SHA-3 and SHAKE support to hashlib module. + +.. + +.. bpo: 0 +.. date: 9234 +.. nonce: j7npJi +.. section: Library + +Eliminate a tautological-pointer-compare warning in _scproxy.c. + +.. + +.. bpo: 27776 +.. date: 9233 +.. nonce: dOJcUU +.. section: Library + +The :func:`os.urandom` function does now block on Linux 3.17 and newer until +the system urandom entropy pool is initialized to increase the security. +This change is part of the :pep:`524`. + +.. + +.. bpo: 27778 +.. date: 9232 +.. nonce: gvbf3F +.. section: Library + +Expose the Linux ``getrandom()`` syscall as a new :func:`os.getrandom` +function. This change is part of the :pep:`524`. + +.. + +.. bpo: 27691 +.. date: 9231 +.. nonce: TMYF5_ +.. section: Library + +Fix ssl module's parsing of GEN_RID subject alternative name fields in X.509 +certs. + +.. + +.. bpo: 18844 +.. date: 9230 +.. nonce: OZnLOi +.. section: Library + +Add random.choices(). + +.. + +.. bpo: 25761 +.. date: 9229 +.. nonce: qd--Ta +.. section: Library + +Improved error reporting about truncated pickle data in C implementation of +unpickler. UnpicklingError is now raised instead of AttributeError and +ValueError in some cases. + +.. + +.. bpo: 26798 +.. date: 9228 +.. nonce: he58yl +.. section: Library + +Add BLAKE2 (blake2b and blake2s) to hashlib. + +.. + +.. bpo: 26032 +.. date: 9227 +.. nonce: v5ByZW +.. section: Library + +Optimized globbing in pathlib by using os.scandir(); it is now about 1.5--4 +times faster. + +.. + +.. bpo: 25596 +.. date: 9226 +.. nonce: TFtyjC +.. section: Library + +Optimized glob() and iglob() functions in the glob module; they are now +about 3--6 times faster. + +.. + +.. bpo: 27928 +.. date: 9225 +.. nonce: vG2f6q +.. section: Library + +Add scrypt (password-based key derivation function) to hashlib module +(requires OpenSSL 1.1.0). + +.. + +.. bpo: 27850 +.. date: 9224 +.. nonce: kIVQ0m +.. section: Library + +Remove 3DES from ssl module's default cipher list to counter measure sweet32 +attack (CVE-2016-2183). + +.. + +.. bpo: 27766 +.. date: 9223 +.. nonce: WI70Tc +.. section: Library + +Add ChaCha20 Poly1305 to ssl module's default ciper list. (Required OpenSSL +1.1.0 or LibreSSL). + +.. + +.. bpo: 25387 +.. date: 9222 +.. nonce: -wsV59 +.. section: Library + +Check return value of winsound.MessageBeep. + +.. + +.. bpo: 27866 +.. date: 9221 +.. nonce: FM3-BZ +.. section: Library + +Add SSLContext.get_ciphers() method to get a list of all enabled ciphers. + +.. + +.. bpo: 27744 +.. date: 9220 +.. nonce: 2cVMpG +.. section: Library + +Add AF_ALG (Linux Kernel crypto) to socket module. + +.. + +.. bpo: 26470 +.. date: 9219 +.. nonce: QGu_wo +.. section: Library + +Port ssl and hashlib module to OpenSSL 1.1.0. + +.. + +.. bpo: 11620 +.. date: 9218 +.. nonce: JyL-Po +.. section: Library + +Fix support for SND_MEMORY in winsound.PlaySound. Based on a patch by Tim +Lesher. + +.. + +.. bpo: 11734 +.. date: 9217 +.. nonce: AQoy-q +.. section: Library + +Add support for IEEE 754 half-precision floats to the struct module. Based +on a patch by Eli Stevens. + +.. + +.. bpo: 27919 +.. date: 9216 +.. nonce: NRqNEW +.. section: Library + +Deprecated ``extra_path`` distribution option in distutils packaging. + +.. + +.. bpo: 23229 +.. date: 9215 +.. nonce: gXhSFh +.. section: Library + +Add new ``cmath`` constants: ``cmath.inf`` and ``cmath.nan`` to match +``math.inf`` and ``math.nan``, and also ``cmath.infj`` and ``cmath.nanj`` to +match the format used by complex repr. + +.. + +.. bpo: 27842 +.. date: 9214 +.. nonce: qlhp0- +.. section: Library + +The csv.DictReader now returns rows of type OrderedDict. (Contributed by +Steve Holden.) + +.. + +.. bpo: 0 +.. date: 9213 +.. nonce: 6TjEgz +.. section: Library + +Remove support for passing a file descriptor to os.access. It never worked +but previously didn't raise. + +.. + +.. bpo: 12885 +.. date: 9212 +.. nonce: r-IV1g +.. section: Library + +Fix error when distutils encounters symlink. + +.. + +.. bpo: 27881 +.. date: 9211 +.. nonce: fkETd9 +.. section: Library + +Fixed possible bugs when setting sqlite3.Connection.isolation_level. Based +on patch by Xiang Zhang. + +.. + +.. bpo: 27861 +.. date: 9210 +.. nonce: DBYuo9 +.. section: Library + +Fixed a crash in sqlite3.Connection.cursor() when a factory creates not a +cursor. Patch by Xiang Zhang. + +.. + +.. bpo: 19884 +.. date: 9209 +.. nonce: MO8AWH +.. section: Library + +Avoid spurious output on OS X with Gnu Readline. + +.. + +.. bpo: 27706 +.. date: 9208 +.. nonce: ZY67yu +.. section: Library + +Restore deterministic behavior of random.Random().seed() for string seeds +using seeding version 1. Allows sequences of calls to random() to exactly +match those obtained in Python 2. Patch by Nofar Schnider. + +.. + +.. bpo: 10513 +.. date: 9207 +.. nonce: tQIQD_ +.. section: Library + +Fix a regression in Connection.commit(). Statements should not be reset +after a commit. + +.. + +.. bpo: 12319 +.. date: 9206 +.. nonce: Wc4oUu +.. section: Library + +Chunked transfer encoding support added to http.client.HTTPConnection +requests. The urllib.request.AbstractHTTPHandler class does not enforce a +Content-Length header any more. If a HTTP request has a file or iterable +body, but no Content-Length header, the library now falls back to use +chunked transfer- encoding. + +.. + +.. bpo: 0 +.. date: 9205 +.. nonce: cYraeH +.. section: Library + +A new version of typing.py from https://github.com/python/typing: - +Collection (only for 3.6) (Issue #27598) - Add FrozenSet to __all__ +(upstream #261) - fix crash in _get_type_vars() (upstream #259) - Remove the +dict constraint in ForwardRef._eval_type (upstream #252) + +.. + +.. bpo: 27832 +.. date: 9204 +.. nonce: hxh6_h +.. section: Library + +Make ``_normalize`` parameter to ``Fraction`` constuctor keyword-only, so +that ``Fraction(2, 3, 4)`` now raises ``TypeError``. + +.. + +.. bpo: 27539 +.. date: 9203 +.. nonce: S4L1cq +.. section: Library + +Fix unnormalised ``Fraction.__pow__`` result in the case of negative +exponent and negative base. + +.. + +.. bpo: 21718 +.. date: 9202 +.. nonce: FUJd-7 +.. section: Library + +cursor.description is now available for queries using CTEs. + +.. + +.. bpo: 27819 +.. date: 9201 +.. nonce: -A_u1x +.. section: Library + +In distutils sdists, simply produce the "gztar" (gzipped tar format) +distributions on all platforms unless "formats" is supplied. + +.. + +.. bpo: 2466 +.. date: 9200 +.. nonce: VRNlkg +.. section: Library + +posixpath.ismount now correctly recognizes mount points which the user does +not have permission to access. + +.. + +.. bpo: 9998 +.. date: 9199 +.. nonce: SNIoPr +.. section: Library + +On Linux, ctypes.util.find_library now looks in LD_LIBRARY_PATH for shared +libraries. + +.. + +.. bpo: 27573 +.. date: 9198 +.. nonce: yuXLnW +.. section: Library + +exit message for code.interact is now configurable. + +.. + +.. bpo: 27930 +.. date: 9197 +.. nonce: BkOfSi +.. section: Library + +Improved behaviour of logging.handlers.QueueListener. Thanks to Paulo +Andrade and Petr Viktorin for the analysis and patch. + +.. + +.. bpo: 6766 +.. date: 9196 +.. nonce: _zO4cV +.. section: Library + +Distributed reference counting added to multiprocessing to support nesting +of shared values / proxy objects. + +.. + +.. bpo: 21201 +.. date: 9195 +.. nonce: wLCKiA +.. section: Library + +Improves readability of multiprocessing error message. Thanks to Wojciech +Walczak for patch. + +.. + +.. bpo: 0 +.. date: 9194 +.. nonce: hgCs-W +.. section: Library + +asyncio: Add set_protocol / get_protocol to Transports. + +.. + +.. bpo: 27456 +.. date: 9193 +.. nonce: lI_IE7 +.. section: Library + +asyncio: Set TCP_NODELAY by default. + +.. + +.. bpo: 15308 +.. date: 9192 +.. nonce: zZxn8m +.. section: IDLE + +Add 'interrupt execution' (^C) to Shell menu. Patch by Roger Serwy, updated +by Bayard Randel. + +.. + +.. bpo: 27922 +.. date: 9191 +.. nonce: UEtEv9 +.. section: IDLE + +Stop IDLE tests from 'flashing' gui widgets on the screen. + +.. + +.. bpo: 27891 +.. date: 9190 +.. nonce: 7W5cAj +.. section: IDLE + +Consistently group and sort imports within idlelib modules. + +.. + +.. bpo: 17642 +.. date: 9189 +.. nonce: B0BNOB +.. section: IDLE + +add larger font sizes for classroom projection. + +.. + +.. bpo: 0 +.. date: 9188 +.. nonce: zWZs6o +.. section: IDLE + +Add version to title of IDLE help window. + +.. + +.. bpo: 25564 +.. date: 9187 +.. nonce: GN0p14 +.. section: IDLE + +In section on IDLE -- console differences, mention that using exec means +that __builtins__ is defined for each statement. + +.. + +.. bpo: 27821 +.. date: 9186 +.. nonce: Vzr42u +.. section: IDLE + +Fix 3.6.0a3 regression that prevented custom key sets from being selected +when no custom theme was defined. + +.. + +.. bpo: 26900 +.. date: 9185 +.. nonce: 0erSIc +.. section: C API + +Excluded underscored names and other private API from limited API. + +.. + +.. bpo: 26027 +.. date: 9184 +.. nonce: 5uVb7n +.. section: C API + +Add support for path-like objects in PyUnicode_FSConverter() & +PyUnicode_FSDecoder(). + +.. + +.. bpo: 27427 +.. date: 9183 +.. nonce: OGhkYQ +.. section: Tests + +Additional tests for the math module. Patch by Francisco Couzo. + +.. + +.. bpo: 27953 +.. date: 9182 +.. nonce: oP3nuf +.. section: Tests + +Skip math and cmath tests that fail on OS X 10.4 due to a poor libm +implementation of tan. + +.. + +.. bpo: 26040 +.. date: 9181 +.. nonce: RvSU5I +.. section: Tests + +Improve test_math and test_cmath coverage and rigour. Patch by Jeff Allen. + +.. + +.. bpo: 27787 +.. date: 9180 +.. nonce: kf0YAt +.. section: Tests + +Call gc.collect() before checking each test for "dangling threads", since +the dangling threads are weak references. + +.. + +.. bpo: 27566 +.. date: 9179 +.. nonce: xDWjEb +.. section: Build + +Fix clean target in freeze makefile (patch by Lisa Roach) + +.. + +.. bpo: 27705 +.. date: 9178 +.. nonce: 8C2Ms3 +.. section: Build + +Update message in validate_ucrtbase.py + +.. + +.. bpo: 27976 +.. date: 9177 +.. nonce: z0CT-3 +.. section: Build + +Deprecate building _ctypes with the bundled copy of libffi on non-OSX UNIX +platforms. + +.. + +.. bpo: 27983 +.. date: 9176 +.. nonce: jL_1n8 +.. section: Build + +Cause lack of llvm-profdata tool when using clang as required for PGO +linking to be a configure time error rather than make time when --with- +optimizations is enabled. Also improve our ability to find the llvm- +profdata tool on MacOS and some Linuxes. + +.. + +.. bpo: 21590 +.. date: 9175 +.. nonce: haPolL +.. section: Build + +Support for DTrace and SystemTap probes. + +.. + +.. bpo: 26307 +.. date: 9174 +.. nonce: Puk2rd +.. section: Build + +The profile-opt build now applies PGO to the built-in modules. + +.. + +.. bpo: 26359 +.. date: 9173 +.. nonce: uxKCqR +.. section: Build + +Add the --with-optimizations flag to turn on LTO and PGO build support when +available. + +.. + +.. bpo: 27917 +.. date: 9172 +.. nonce: 8V2esX +.. section: Build + +Set platform triplets for Android builds. + +.. + +.. bpo: 25825 +.. date: 9171 +.. nonce: PwGiUI +.. section: Build + +Update references to the $(LIBPL) installation path on AIX. This path was +changed in 3.2a4. + +.. + +.. bpo: 0 +.. date: 9170 +.. nonce: G27B6T +.. section: Build + +Update OS X installer to use SQLite 3.14.1 and XZ 5.2.2. + +.. + +.. bpo: 21122 +.. date: 9169 +.. nonce: 98ovv8 +.. section: Build + +Fix LTO builds on OS X. + +.. + +.. bpo: 17128 +.. date: 9168 +.. nonce: jd3Cll +.. section: Build + +Build OS X installer with a private copy of OpenSSL. Also provide a sample +Install Certificates command script to install a set of root certificates +from the third-party certifi module. + +.. + +.. bpo: 27952 +.. date: 9167 +.. nonce: WX9Ufc +.. section: Tools/Demos + +Get Tools/scripts/fixcid.py working with Python 3 and the current "re" +module, avoid invalid Python backslash escapes, and fix a bug parsing +escaped C quote signs. + +.. + +.. bpo: 28065 +.. date: 9166 +.. nonce: TUW63o +.. section: Windows + +Update xz dependency to 5.2.2 and build it from source. + +.. + +.. bpo: 25144 +.. date: 9165 +.. nonce: iUha52 +.. section: Windows + +Ensures TargetDir is set before continuing with custom install. + +.. + +.. bpo: 1602 +.. date: 9164 +.. nonce: 5Kowx0 +.. section: Windows + +Windows console doesn't input or print Unicode (PEP 528) + +.. + +.. bpo: 27781 +.. date: 9163 +.. nonce: 21eQH2 +.. section: Windows + +Change file system encoding on Windows to UTF-8 (PEP 529) + +.. + +.. bpo: 27731 +.. date: 9162 +.. nonce: U2HSrC +.. section: Windows + +Opt-out of MAX_PATH on Windows 10 + +.. + +.. bpo: 6135 +.. date: 9161 +.. nonce: pACuPJ +.. section: Windows + +Adds encoding and errors parameters to subprocess. + +.. + +.. bpo: 27959 +.. date: 9160 +.. nonce: JamSoC +.. section: Windows + +Adds oem encoding, alias ansi to mbcs, move aliasmbcs to codec lookup. + +.. + +.. bpo: 27982 +.. date: 9159 +.. nonce: xrUa9R +.. section: Windows + +The functions of the winsound module now accept keyword arguments. + +.. + +.. bpo: 20366 +.. date: 9158 +.. nonce: s6b-ut +.. section: Windows + +Build full text search support into SQLite on Windows. + +.. + +.. bpo: 27756 +.. date: 9157 +.. nonce: PDAoGy +.. section: Windows + +Adds new icons for Python files and processes on Windows. Designs by Cherry +Wang. + +.. + +.. bpo: 27883 +.. date: 9156 +.. nonce: vyOnxj +.. section: Windows + +Update sqlite to 3.14.1.0 on Windows. diff --git a/Misc/NEWS.d/3.6.0b2.rst b/Misc/NEWS.d/3.6.0b2.rst new file mode 100644 index 0000000..c485750 --- /dev/null +++ b/Misc/NEWS.d/3.6.0b2.rst @@ -0,0 +1,840 @@ +.. bpo: 28183 +.. date: 9407 +.. nonce: MJZeNd +.. release date: 2016-10-10 +.. section: Core and Builtins + +Optimize and cleanup dict iteration. + +.. + +.. bpo: 26081 +.. date: 9406 +.. nonce: _x5vjl +.. section: Core and Builtins + +Added C implementation of asyncio.Future. Original patch by Yury Selivanov. + +.. + +.. bpo: 28379 +.. date: 9405 +.. nonce: DuXlco +.. section: Core and Builtins + +Added sanity checks and tests for PyUnicode_CopyCharacters(). Patch by Xiang +Zhang. + +.. + +.. bpo: 28376 +.. date: 9404 +.. nonce: oPD-5D +.. section: Core and Builtins + +The type of long range iterator is now registered as Iterator. Patch by Oren +Milman. + +.. + +.. bpo: 28376 +.. date: 9403 +.. nonce: YEy-uG +.. section: Core and Builtins + +Creating instances of range_iterator by calling range_iterator type now is +deprecated. Patch by Oren Milman. + +.. + +.. bpo: 28376 +.. date: 9402 +.. nonce: fLeHM2 +.. section: Core and Builtins + +The constructor of range_iterator now checks that step is not 0. Patch by +Oren Milman. + +.. + +.. bpo: 26906 +.. date: 9401 +.. nonce: YBjcwI +.. section: Core and Builtins + +Resolving special methods of uninitialized type now causes implicit +initialization of the type instead of a fail. + +.. + +.. bpo: 18287 +.. date: 9400 +.. nonce: k6jffS +.. section: Core and Builtins + +PyType_Ready() now checks that tp_name is not NULL. Original patch by Niklas +Koep. + +.. + +.. bpo: 24098 +.. date: 9399 +.. nonce: XqlP_1 +.. section: Core and Builtins + +Fixed possible crash when AST is changed in process of compiling it. + +.. + +.. bpo: 28201 +.. date: 9398 +.. nonce: GWUxAy +.. section: Core and Builtins + +Dict reduces possibility of 2nd conflict in hash table when hashes have same +lower bits. + +.. + +.. bpo: 28350 +.. date: 9397 +.. nonce: 8M5Eg9 +.. section: Core and Builtins + +String constants with null character no longer interned. + +.. + +.. bpo: 26617 +.. date: 9396 +.. nonce: Gh5LvN +.. section: Core and Builtins + +Fix crash when GC runs during weakref callbacks. + +.. + +.. bpo: 27942 +.. date: 9395 +.. nonce: ZGuhns +.. section: Core and Builtins + +String constants now interned recursively in tuples and frozensets. + +.. + +.. bpo: 21578 +.. date: 9394 +.. nonce: GI1bhj +.. section: Core and Builtins + +Fixed misleading error message when ImportError called with invalid keyword +args. + +.. + +.. bpo: 28203 +.. date: 9393 +.. nonce: LRn5vp +.. section: Core and Builtins + +Fix incorrect type in complex(1.0, {2:3}) error message. Patch by Soumya +Sharma. + +.. + +.. bpo: 28086 +.. date: 9392 +.. nonce: JsQPMQ +.. section: Core and Builtins + +Single var-positional argument of tuple subtype was passed unscathed to the +C-defined function. Now it is converted to exact tuple. + +.. + +.. bpo: 28214 +.. date: 9391 +.. nonce: zQF8Em +.. section: Core and Builtins + +Now __set_name__ is looked up on the class instead of the instance. + +.. + +.. bpo: 27955 +.. date: 9390 +.. nonce: HC4pZ4 +.. section: Core and Builtins + +Fallback on reading /dev/urandom device when the getrandom() syscall fails +with EPERM, for example when blocked by SECCOMP. + +.. + +.. bpo: 28192 +.. date: 9389 +.. nonce: eR6stU +.. section: Core and Builtins + +Don't import readline in isolated mode. + +.. + +.. bpo: 0 +.. date: 9388 +.. nonce: 9EbOiD +.. section: Core and Builtins + +Upgrade internal unicode databases to Unicode version 9.0.0. + +.. + +.. bpo: 28131 +.. date: 9387 +.. nonce: owq0wW +.. section: Core and Builtins + +Fix a regression in zipimport's compile_source(). zipimport should use the +same optimization level as the interpreter. + +.. + +.. bpo: 28126 +.. date: 9386 +.. nonce: Qf6-uQ +.. section: Core and Builtins + +Replace Py_MEMCPY with memcpy(). Visual Studio can properly optimize +memcpy(). + +.. + +.. bpo: 28120 +.. date: 9385 +.. nonce: e5xc1i +.. section: Core and Builtins + +Fix dict.pop() for splitted dictionary when trying to remove a "pending key" +(Not yet inserted in split-table). Patch by Xiang Zhang. + +.. + +.. bpo: 26182 +.. date: 9384 +.. nonce: jYlqTO +.. section: Core and Builtins + +Raise DeprecationWarning when async and await keywords are used as +variable/attribute/class/function name. + +.. + +.. bpo: 27998 +.. date: 9383 +.. nonce: CPhy4H +.. section: Library + +Fixed bytes path support in os.scandir() on Windows. Patch by Eryk Sun. + +.. + +.. bpo: 28317 +.. date: 9382 +.. nonce: LgHleA +.. section: Library + +The disassembler now decodes FORMAT_VALUE argument. + +.. + +.. bpo: 26293 +.. date: 9381 +.. nonce: 2mjvwX +.. section: Library + +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. + +.. + +.. bpo: 28380 +.. date: 9380 +.. nonce: jKPMzH +.. section: Library + +unittest.mock Mock autospec functions now properly support assert_called, +assert_not_called, and assert_called_once. + +.. + +.. bpo: 27181 +.. date: 9379 +.. nonce: SQyDpC +.. section: Library + +remove statistics.geometric_mean and defer until 3.7. + +.. + +.. bpo: 28229 +.. date: 9378 +.. nonce: BKAxcS +.. section: Library + +lzma module now supports pathlib. + +.. + +.. bpo: 28321 +.. date: 9377 +.. nonce: bQ-IIX +.. section: Library + +Fixed writing non-BMP characters with binary format in plistlib. + +.. + +.. bpo: 28225 +.. date: 9376 +.. nonce: 6N28nu +.. section: Library + +bz2 module now supports pathlib. Initial patch by Ethan Furman. + +.. + +.. bpo: 28227 +.. date: 9375 +.. nonce: 7lUz8i +.. section: Library + +gzip now supports pathlib. Patch by Ethan Furman. + +.. + +.. bpo: 27358 +.. date: 9374 +.. nonce: t288Iv +.. section: Library + +Optimized merging var-keyword arguments and improved error message when +passing a non-mapping as a var-keyword argument. + +.. + +.. bpo: 28257 +.. date: 9373 +.. nonce: SVD_IH +.. section: Library + +Improved error message when passing a non-iterable as a var-positional +argument. Added opcode BUILD_TUPLE_UNPACK_WITH_CALL. + +.. + +.. bpo: 28322 +.. date: 9372 +.. nonce: l9hzap +.. section: Library + +Fixed possible crashes when unpickle itertools objects from incorrect pickle +data. Based on patch by John Leitch. + +.. + +.. bpo: 28228 +.. date: 9371 +.. nonce: 1qBwdM +.. section: Library + +imghdr now supports pathlib. + +.. + +.. bpo: 28226 +.. date: 9370 +.. nonce: nMXiwU +.. section: Library + +compileall now supports pathlib. + +.. + +.. bpo: 28314 +.. date: 9369 +.. nonce: N7YrkN +.. section: Library + +Fix function declaration (C flags) for the getiterator() method of +xml.etree.ElementTree.Element. + +.. + +.. bpo: 28148 +.. date: 9368 +.. nonce: Flzndx +.. section: Library + +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. + +.. + +.. bpo: 28253 +.. date: 9367 +.. nonce: aLfmhe +.. section: Library + +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. + +.. + +.. bpo: 28275 +.. date: 9366 +.. nonce: EhWIsz +.. section: Library + +Fixed possible use after free in the decompress() methods of the +LZMADecompressor and BZ2Decompressor classes. Original patch by John Leitch. + +.. + +.. bpo: 27897 +.. date: 9365 +.. nonce: I0Ppmx +.. section: Library + +Fixed possible crash in sqlite3.Connection.create_collation() if pass +invalid string-like object as a name. Patch by Xiang Zhang. + +.. + +.. bpo: 18844 +.. date: 9364 +.. nonce: fQsEdn +.. section: Library + +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. + +.. + +.. bpo: 18893 +.. date: 9363 +.. nonce: osiX5c +.. section: Library + +Fix invalid exception handling in Lib/ctypes/macholib/dyld.py. Patch by +Madison May. + +.. + +.. bpo: 27611 +.. date: 9362 +.. nonce: A_ArH_ +.. section: Library + +Fixed support of default root window in the tkinter.tix module. Added the +master parameter in the DisplayStyle constructor. + +.. + +.. bpo: 27348 +.. date: 9361 +.. nonce: tDx7Vw +.. section: Library + +In the traceback module, restore the formatting of exception messages like +"Exception: None". This fixes a regression introduced in 3.5a2. + +.. + +.. bpo: 25651 +.. date: 9360 +.. nonce: 3UhyPo +.. section: Library + +Allow falsy values to be used for msg parameter of subTest(). + +.. + +.. bpo: 27778 +.. date: 9359 +.. nonce: Yyo1aP +.. section: Library + +Fix a memory leak in os.getrandom() when the getrandom() is interrupted by a +signal and a signal handler raises a Python exception. + +.. + +.. bpo: 28200 +.. date: 9358 +.. nonce: 4IEbr7 +.. section: Library + +Fix memory leak on Windows in the os module (fix path_converter() function). + +.. + +.. bpo: 25400 +.. date: 9357 +.. nonce: d9Qn0E +.. section: Library + +RobotFileParser now correctly returns default values for crawl_delay and +request_rate. Initial patch by Peter Wirtz. + +.. + +.. bpo: 27932 +.. date: 9356 +.. nonce: mtgl-6 +.. section: Library + +Prevent memory leak in win32_ver(). + +.. + +.. bpo: 0 +.. date: 9355 +.. nonce: iPpjqX +.. section: Library + +Fix UnboundLocalError in socket._sendfile_use_sendfile. + +.. + +.. bpo: 28075 +.. date: 9354 +.. nonce: aLiUs9 +.. section: Library + +Check for ERROR_ACCESS_DENIED in Windows implementation of os.stat(). Patch +by Eryk Sun. + +.. + +.. bpo: 22493 +.. date: 9353 +.. nonce: Mv_hZf +.. section: Library + +Warning message emitted by using inline flags in the middle of regular +expression now contains a (truncated) regex pattern. Patch by Tim Graham. + +.. + +.. bpo: 25270 +.. date: 9352 +.. nonce: jrZruM +.. section: Library + +Prevent codecs.escape_encode() from raising SystemError when an empty +bytestring is passed. + +.. + +.. bpo: 28181 +.. date: 9351 +.. nonce: NGc4Yv +.. section: Library + +Get antigravity over HTTPS. Patch by Kaartic Sivaraam. + +.. + +.. bpo: 25895 +.. date: 9350 +.. nonce: j92qoQ +.. section: Library + +Enable WebSocket URL schemes in urllib.parse.urljoin. Patch by Gergely Imreh +and Markus Holtermann. + +.. + +.. bpo: 28114 +.. date: 9349 +.. nonce: gmFXsA +.. section: Library + +Fix a crash in parse_envlist() when env contains byte strings. Patch by Eryk +Sun. + +.. + +.. bpo: 27599 +.. date: 9348 +.. nonce: itvm8T +.. section: Library + +Fixed buffer overrun in binascii.b2a_qp() and binascii.a2b_qp(). + +.. + +.. bpo: 27906 +.. date: 9347 +.. nonce: TBBXrv +.. section: Library + +Fix socket accept exhaustion during high TCP traffic. Patch by Kevin Conway. + +.. + +.. bpo: 28174 +.. date: 9346 +.. nonce: CV1UdI +.. section: Library + +Handle when SO_REUSEPORT isn't properly supported. Patch by Seth Michael +Larson. + +.. + +.. bpo: 26654 +.. date: 9345 +.. nonce: XtzTE9 +.. section: Library + +Inspect functools.partial in asyncio.Handle.__repr__. Patch by iceboy. + +.. + +.. bpo: 26909 +.. date: 9344 +.. nonce: ASiakT +.. section: Library + +Fix slow pipes IO in asyncio. Patch by INADA Naoki. + +.. + +.. bpo: 28176 +.. date: 9343 +.. nonce: sU8R6L +.. section: Library + +Fix callbacks race in asyncio.SelectorLoop.sock_connect. + +.. + +.. bpo: 27759 +.. date: 9342 +.. nonce: qpMDGq +.. section: Library + +Fix selectors incorrectly retain invalid file descriptors. Patch by Mark +Williams. + +.. + +.. bpo: 28368 +.. date: 9341 +.. nonce: fGl9y4 +.. section: Library + +Refuse monitoring processes if the child watcher has no loop attached. Patch +by Vincent Michel. + +.. + +.. bpo: 28369 +.. date: 9340 +.. nonce: 8DTANe +.. section: Library + +Raise RuntimeError when transport's FD is used with add_reader, add_writer, +etc. + +.. + +.. bpo: 28370 +.. date: 9339 +.. nonce: 18jBuZ +.. section: Library + +Speedup asyncio.StreamReader.readexactly. Patch by Коренберг Марк. + +.. + +.. bpo: 28371 +.. date: 9338 +.. nonce: U9Zqdk +.. section: Library + +Deprecate passing asyncio.Handles to run_in_executor. + +.. + +.. bpo: 28372 +.. date: 9337 +.. nonce: njcIPk +.. section: Library + +Fix asyncio to support formatting of non-python coroutines. + +.. + +.. bpo: 28399 +.. date: 9336 +.. nonce: QKIqRX +.. section: Library + +Remove UNIX socket from FS before binding. Patch by Коренберг Марк. + +.. + +.. bpo: 27972 +.. date: 9335 +.. nonce: ZK-GFm +.. section: Library + +Prohibit Tasks to await on themselves. + +.. + +.. bpo: 28402 +.. date: 9334 +.. nonce: v9zETJ +.. section: Windows + +Adds signed catalog files for stdlib on Windows. + +.. + +.. bpo: 28333 +.. date: 9333 +.. nonce: KnpeO4 +.. section: Windows + +Enables Unicode for ps1/ps2 and input() prompts. (Patch by Eryk Sun) + +.. + +.. bpo: 28251 +.. date: 9332 +.. nonce: tR_AFs +.. section: Windows + +Improvements to help manuals on Windows. + +.. + +.. bpo: 28110 +.. date: 9331 +.. nonce: cnkP5F +.. section: Windows + +launcher.msi has different product codes between 32-bit and 64-bit + +.. + +.. bpo: 28161 +.. date: 9330 +.. nonce: hF91LI +.. section: Windows + +Opening CON for write access fails + +.. + +.. bpo: 28162 +.. date: 9329 +.. nonce: 3FHPVD +.. section: Windows + +WindowsConsoleIO readall() fails if first line starts with Ctrl+Z + +.. + +.. bpo: 28163 +.. date: 9328 +.. nonce: -DUgJw +.. section: Windows + +WindowsConsoleIO fileno() passes wrong flags to _open_osfhandle + +.. + +.. bpo: 28164 +.. date: 9327 +.. nonce: 5MfN0J +.. section: Windows + +_PyIO_get_console_type fails for various paths + +.. + +.. bpo: 28137 +.. date: 9326 +.. nonce: C1uvzY +.. section: Windows + +Renames Windows path file to ._pth + +.. + +.. bpo: 28138 +.. date: 9325 +.. nonce: pNdv64 +.. section: Windows + +Windows ._pth file should allow import site + +.. + +.. bpo: 28426 +.. date: 9324 +.. nonce: zPwvbI +.. section: C API + +Deprecated undocumented functions PyUnicode_AsEncodedObject(), +PyUnicode_AsDecodedObject(), PyUnicode_AsDecodedUnicode() and +PyUnicode_AsEncodedUnicode(). + +.. + +.. bpo: 28258 +.. date: 9323 +.. nonce: iKtAHd +.. section: Build + +Fixed build with Estonian locale (python-config and distclean targets in +Makefile). Patch by Arfrever Frehtes Taifersar Arahesis. + +.. + +.. bpo: 26661 +.. date: 9322 +.. nonce: Z_HNbs +.. section: Build + +setup.py now detects system libffi with multiarch wrapper. + +.. + +.. bpo: 15819 +.. date: 9321 +.. nonce: QVDr3E +.. section: Build + +Remove redundant include search directory option for building outside the +source tree. + +.. + +.. bpo: 28217 +.. date: 9320 +.. nonce: Y37OKV +.. section: Tests + +Adds _testconsole module to test console input. diff --git a/Misc/NEWS.d/3.6.0b3.rst b/Misc/NEWS.d/3.6.0b3.rst new file mode 100644 index 0000000..c974229 --- /dev/null +++ b/Misc/NEWS.d/3.6.0b3.rst @@ -0,0 +1,364 @@ +.. bpo: 28128 +.. date: 9445 +.. nonce: Lc2sFu +.. release date: 2016-10-31 +.. section: Core and Builtins + +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. + +.. + +.. bpo: 28509 +.. date: 9444 +.. nonce: _Fa4Uq +.. section: Core and Builtins + +dict.update() no longer allocate unnecessary large memory. + +.. + +.. bpo: 28426 +.. date: 9443 +.. nonce: E_quyK +.. section: Core and Builtins + +Fixed potential crash in PyUnicode_AsDecodedObject() in debug build. + +.. + +.. bpo: 28517 +.. date: 9442 +.. nonce: ExPkm9 +.. section: Core and Builtins + +Fixed of-by-one error in the peephole optimizer that caused keeping +unreachable code. + +.. + +.. bpo: 28214 +.. date: 9441 +.. nonce: 6ECJox +.. section: Core and Builtins + +Improved exception reporting for problematic __set_name__ attributes. + +.. + +.. bpo: 23782 +.. date: 9440 +.. nonce: lonDzj +.. section: Core and Builtins + +Fixed possible memory leak in _PyTraceback_Add() and exception loss in +PyTraceBack_Here(). + +.. + +.. bpo: 28471 +.. date: 9439 +.. nonce: Vd5pv7 +.. section: Core and Builtins + +Fix "Python memory allocator called without holding the GIL" crash in +socket.setblocking. + +.. + +.. bpo: 26128 +.. date: 9438 +.. nonce: IEF1cf +.. section: Library + +Added keyword-only arguments support for subprocess.STARTUPINFO + +.. + +.. bpo: 27517 +.. date: 9437 +.. nonce: 1CYM8A +.. section: Library + +LZMA compressor and decompressor no longer raise exceptions if given empty +data twice. Patch by Benjamin Fogle. + +.. + +.. bpo: 28549 +.. date: 9436 +.. nonce: ShnM2y +.. section: Library + +Fixed segfault in curses's addch() with ncurses6. + +.. + +.. bpo: 28449 +.. date: 9435 +.. nonce: 5JK6ES +.. section: Library + +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. + +.. + +.. bpo: 23262 +.. date: 9434 +.. nonce: 6EVB7N +.. section: Library + +The webbrowser module now supports Firefox 36+ and derived browsers. Based +on patch by Oleg Broytman. + +.. + +.. bpo: 27939 +.. date: 9433 +.. nonce: mTfADV +.. section: Library + +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. + +.. + +.. bpo: 18844 +.. date: 9432 +.. nonce: oif1-H +.. section: Library + +The various ways of specifying weights for random.choices() now produce the +same result sequences. + +.. + +.. bpo: 28255 +.. date: 9431 +.. nonce: _ZH4wm +.. section: Library + +calendar.TextCalendar().prmonth() no longer prints a space at the start of +new line after printing a month's calendar. Patch by Xiang Zhang. + +.. + +.. bpo: 20491 +.. date: 9430 +.. nonce: ObgnQ2 +.. section: Library + +The textwrap.TextWrapper class now honors non-breaking spaces. Based on +patch by Kaarle Ritvanen. + +.. + +.. bpo: 28353 +.. date: 9429 +.. nonce: sKGbLL +.. section: Library + +os.fwalk() no longer fails on broken links. + +.. + +.. bpo: 28430 +.. date: 9428 +.. nonce: 4MiEYT +.. section: Library + +Fix iterator of C implemented asyncio.Future doesn't accept non-None value +is passed to it.send(val). + +.. + +.. bpo: 27025 +.. date: 9427 +.. nonce: foAViS +.. section: Library + +Generated names for Tkinter widgets now start by the "!" prefix for +readability. + +.. + +.. bpo: 25464 +.. date: 9426 +.. nonce: HDUTCu +.. section: Library + +Fixed HList.header_exists() in tkinter.tix module by addin a workaround to +Tix library bug. + +.. + +.. bpo: 28488 +.. date: 9425 +.. nonce: TgO112 +.. section: Library + +shutil.make_archive() no longer adds entry "./" to ZIP archive. + +.. + +.. bpo: 25953 +.. date: 9424 +.. nonce: EKKJAQ +.. section: Library + +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. + +.. + +.. bpo: 18219 +.. date: 9423 +.. nonce: 1ANQN1 +.. section: Library + +Optimize csv.DictWriter for large number of columns. Patch by Mariatta +Wijaya. + +.. + +.. bpo: 28448 +.. date: 9422 +.. nonce: 5bduWe +.. section: Library + +Fix C implemented asyncio.Future didn't work on Windows. + +.. + +.. bpo: 28480 +.. date: 9421 +.. nonce: 9lHw6m +.. section: Library + +Fix error building socket module when multithreading is disabled. + +.. + +.. bpo: 24452 +.. date: 9420 +.. nonce: m9Kyg3 +.. section: Library + +Make webbrowser support Chrome on Mac OS X. + +.. + +.. bpo: 20766 +.. date: 9419 +.. nonce: 4kvCzx +.. section: Library + +Fix references leaked by pdb in the handling of SIGINT handlers. + +.. + +.. bpo: 28492 +.. date: 9418 +.. nonce: pFRLQE +.. section: Library + +Fix how StopIteration exception is raised in _asyncio.Future. + +.. + +.. bpo: 28500 +.. date: 9417 +.. nonce: NINKzZ +.. section: Library + +Fix asyncio to handle async gens GC from another thread. + +.. + +.. bpo: 26923 +.. date: 9416 +.. nonce: 8dh3AV +.. section: Library + +Fix asyncio.Gather to refuse being cancelled once all children are done. +Patch by Johannes Ebke. + +.. + +.. bpo: 26796 +.. date: 9415 +.. nonce: TZyAfJ +.. section: Library + +Don't configure the number of workers for default threadpool executor. +Initial patch by Hans Lawrenz. + +.. + +.. bpo: 28544 +.. date: 9414 +.. nonce: KD1oFP +.. section: Library + +Implement asyncio.Task in C. + +.. + +.. bpo: 28522 +.. date: 9413 +.. nonce: XHMQa7 +.. section: Windows + +Fixes mishandled buffer reallocation in getpathp.c + +.. + +.. bpo: 28444 +.. date: 9412 +.. nonce: zkc9nT +.. section: Build + +Fix missing extensions modules when cross compiling. + +.. + +.. bpo: 28208 +.. date: 9411 +.. nonce: DtoP1i +.. section: Build + +Update Windows build and OS X installers to use SQLite 3.14.2. + +.. + +.. bpo: 28248 +.. date: 9410 +.. nonce: KY_-en +.. section: Build + +Update Windows build and OS X installers to use OpenSSL 1.0.2j. + +.. + +.. bpo: 26944 +.. date: 9409 +.. nonce: ChZ_BO +.. section: Tests + +Fix test_posix for Android where 'id -G' is entirely wrong or missing the +effective gid. + +.. + +.. bpo: 28409 +.. date: 9408 +.. nonce: Q2IlxJ +.. section: Tests + +regrtest: fix the parser of command line arguments. diff --git a/Misc/NEWS.d/3.6.0b4.rst b/Misc/NEWS.d/3.6.0b4.rst new file mode 100644 index 0000000..326da19 --- /dev/null +++ b/Misc/NEWS.d/3.6.0b4.rst @@ -0,0 +1,327 @@ +.. bpo: 28532 +.. date: 9479 +.. nonce: KEYJny +.. release date: 2016-11-21 +.. section: Core and Builtins + +Show sys.version when -V option is supplied twice. + +.. + +.. bpo: 27100 +.. date: 9478 +.. nonce: poVjXq +.. section: Core and Builtins + +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. + +.. + +.. bpo: 28746 +.. date: 9477 +.. nonce: r5MXdB +.. section: Core and Builtins + +Fix the set_inheritable() file descriptor method on platforms that do not +have the ioctl FIOCLEX and FIONCLEX commands. + +.. + +.. bpo: 26920 +.. date: 9476 +.. nonce: 1URwGb +.. section: Core and Builtins + +Fix not getting the locale's charset upon initializing the interpreter, on +platforms that do not have langinfo. + +.. + +.. bpo: 28648 +.. date: 9475 +.. nonce: z7B52W +.. section: Core and Builtins + +Fixed crash in Py_DecodeLocale() in debug build on Mac OS X when decode +astral characters. Patch by Xiang Zhang. + +.. + +.. bpo: 19398 +.. date: 9474 +.. nonce: RYbEGH +.. section: Core and Builtins + +Extra slash no longer added to sys.path components in case of empty compile- +time PYTHONPATH components. + +.. + +.. bpo: 28665 +.. date: 9473 +.. nonce: v4nx86 +.. section: Core and Builtins + +Improve speed of the STORE_DEREF opcode by 40%. + +.. + +.. bpo: 28583 +.. date: 9472 +.. nonce: F-QAx1 +.. section: Core and Builtins + +PyDict_SetDefault didn't combine split table when needed. Patch by Xiang +Zhang. + +.. + +.. bpo: 27243 +.. date: 9471 +.. nonce: 61E6K5 +.. section: Core and Builtins + +Change PendingDeprecationWarning -> DeprecationWarning. As it was agreed in +the issue, __aiter__ returning an awaitable should result in +PendingDeprecationWarning in 3.5 and in DeprecationWarning in 3.6. + +.. + +.. bpo: 26182 +.. date: 9470 +.. nonce: a8JXK2 +.. section: Core and Builtins + +Fix a refleak in code that raises DeprecationWarning. + +.. + +.. bpo: 28721 +.. date: 9469 +.. nonce: BO9BUF +.. section: Core and Builtins + +Fix asynchronous generators aclose() and athrow() to handle +StopAsyncIteration propagation properly. + +.. + +.. bpo: 28752 +.. date: 9468 +.. nonce: Q-4oRE +.. section: Library + +Restored the __reduce__() methods of datetime objects. + +.. + +.. bpo: 28727 +.. date: 9467 +.. nonce: ubZP_b +.. section: Library + +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). + +.. + +.. bpo: 20572 +.. date: 9466 +.. nonce: lGXaH9 +.. section: Library + +The subprocess.Popen.wait method's undocumented endtime parameter now raises +a DeprecationWarning. + +.. + +.. bpo: 25659 +.. date: 9465 +.. nonce: lE2IlT +.. section: Library + +In ctypes, prevent a crash calling the from_buffer() and from_buffer_copy() +methods on abstract classes like Array. + +.. + +.. bpo: 19717 +.. date: 9464 +.. nonce: HXCAIz +.. section: Library + +Makes Path.resolve() succeed on paths that do not exist. Patch by Vajrasky +Kok + +.. + +.. bpo: 28563 +.. date: 9463 +.. nonce: iweEiw +.. section: Library + +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. + +.. + +.. bpo: 28387 +.. date: 9462 +.. nonce: 1clJu7 +.. section: Library + +Fixed possible crash in _io.TextIOWrapper deallocator when the garbage +collector is invoked in other thread. Based on patch by Sebastian Cufre. + +.. + +.. bpo: 28600 +.. date: 9461 +.. nonce: wMVrjN +.. section: Library + +Optimize loop.call_soon. + +.. + +.. bpo: 28613 +.. date: 9460 +.. nonce: sqUPrv +.. section: Library + +Fix get_event_loop() return the current loop if called from +coroutines/callbacks. + +.. + +.. bpo: 28634 +.. date: 9459 +.. nonce: YlRydz +.. section: Library + +Fix asyncio.isfuture() to support unittest.Mock. + +.. + +.. bpo: 26081 +.. date: 9458 +.. nonce: 2Y8-a9 +.. section: Library + +Fix refleak in _asyncio.Future.__iter__().throw. + +.. + +.. bpo: 28639 +.. date: 9457 +.. nonce: WUPo1o +.. section: Library + +Fix inspect.isawaitable to always return bool Patch by Justin Mayfield. + +.. + +.. bpo: 28652 +.. date: 9456 +.. nonce: f5M8FG +.. section: Library + +Make loop methods reject socket kinds they do not support. + +.. + +.. bpo: 28653 +.. date: 9455 +.. nonce: S5bA9i +.. section: Library + +Fix a refleak in functools.lru_cache. + +.. + +.. bpo: 28703 +.. date: 9454 +.. nonce: CRLTJc +.. section: Library + +Fix asyncio.iscoroutinefunction to handle Mock objects. + +.. + +.. bpo: 28704 +.. date: 9453 +.. nonce: EFWBII +.. section: Library + +Fix create_unix_server to support Path-like objects (PEP 519). + +.. + +.. bpo: 28720 +.. date: 9452 +.. nonce: Fsz-Lf +.. section: Library + +Add collections.abc.AsyncGenerator. + +.. + +.. bpo: 28513 +.. date: 9451 +.. nonce: L3joAz +.. section: Documentation + +Documented command-line interface of zipfile. + +.. + +.. bpo: 28666 +.. date: 9450 +.. nonce: RtTk-4 +.. section: Tests + +Now test.support.rmtree is able to remove unwritable or unreadable +directories. + +.. + +.. bpo: 23839 +.. date: 9449 +.. nonce: zsT_L9 +.. section: Tests + +Various caches now are cleared before running every test file. + +.. + +.. bpo: 10656 +.. date: 9448 +.. nonce: pR8FFU +.. section: Build + +Fix out-of-tree building on AIX. Patch by Tristan Carel and Michael +Haubenwallner. + +.. + +.. bpo: 26359 +.. date: 9447 +.. nonce: CLz6qy +.. section: Build + +Rename --with-optimiations to --enable-optimizations. + +.. + +.. bpo: 28676 +.. date: 9446 +.. nonce: Wxf6Ds +.. section: Build + +Prevent missing 'getentropy' declaration warning on macOS. Patch by Gareth +Rees. diff --git a/Misc/NEWS.d/3.6.0rc1.rst b/Misc/NEWS.d/3.6.0rc1.rst new file mode 100644 index 0000000..5e7e2b0 --- /dev/null +++ b/Misc/NEWS.d/3.6.0rc1.rst @@ -0,0 +1,122 @@ +.. bpo: 23722 +.. date: 9491 +.. nonce: e8BH5h +.. release date: 2016-12-06 +.. section: Core and Builtins + +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()``. + +.. + +.. bpo: 28797 +.. date: 9490 +.. nonce: _A0_Z5 +.. section: Core and Builtins + +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. + +.. + +.. bpo: 28782 +.. date: 9489 +.. nonce: foJV_E +.. section: Core and Builtins + +Fix a bug in the implementation ``yield from`` when checking if the next +instruction is YIELD_FROM. Regression introduced by WORDCODE (issue #26647). + +.. + +.. bpo: 27030 +.. date: 9488 +.. nonce: 88FOrz +.. section: Library + +Unknown escapes in re.sub() replacement template are allowed again. But +they still are deprecated and will be disabled in 3.7. + +.. + +.. bpo: 28835 +.. date: 9487 +.. nonce: iWBYH7 +.. section: Library + +Fix a regression introduced in warnings.catch_warnings(): call +warnings.showwarning() if it was overridden inside the context manager. + +.. + +.. bpo: 27172 +.. date: 9486 +.. nonce: mVKfLT +.. section: Library + +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. + +.. + +.. bpo: 26273 +.. date: 9485 +.. nonce: ilNIWN +.. section: Library + +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. + +.. + +.. bpo: 24142 +.. date: 9484 +.. nonce: IrZnFs +.. section: Library + +Reading a corrupt config file left configparser in an invalid state. +Original patch by Florian Höch. + +.. + +.. bpo: 28843 +.. date: 9483 +.. nonce: O7M0LE +.. section: Library + +Fix asyncio C Task to handle exceptions __traceback__. + +.. + +.. bpo: 28808 +.. date: 9482 +.. nonce: A03X6r +.. section: C API + +PyUnicode_CompareWithASCIIString() now never raises exceptions. + +.. + +.. bpo: 23722 +.. date: 9481 +.. nonce: 6HX6fk +.. section: Documentation + +The data model reference and the porting section in the What's New guide now +cover the additional ``__classcell__`` handling needed for custom +metaclasses to fully support PEP 487 and zero-argument ``super()``. + +.. + +.. bpo: 28023 +.. date: 9480 +.. nonce: 4gzSGp +.. section: Tools/Demos + +Fix python-gdb.py didn't support new dict implementation. diff --git a/Misc/NEWS.d/3.6.0rc2.rst b/Misc/NEWS.d/3.6.0rc2.rst new file mode 100644 index 0000000..1a2c646 --- /dev/null +++ b/Misc/NEWS.d/3.6.0rc2.rst @@ -0,0 +1,45 @@ +.. bpo: 28147 +.. date: 9496 +.. nonce: CnK_xf +.. release date: 2016-12-16 +.. section: Core and Builtins + +Fix a memory leak in split-table dictionaries: setattr() must not convert +combined table into split table. Patch written by INADA Naoki. + +.. + +.. bpo: 28990 +.. date: 9495 +.. nonce: m8xRMJ +.. section: Core and Builtins + +Fix asyncio SSL hanging if connection is closed before handshake is +completed. (Patch by HoHo-Ho) + +.. + +.. bpo: 28770 +.. date: 9494 +.. nonce: N9GQsz +.. section: Tools/Demos + +Fix python-gdb.py for fastcalls. + +.. + +.. bpo: 28896 +.. date: 9493 +.. nonce: ymAbmH +.. section: Windows + +Deprecate WindowsRegistryFinder. + +.. + +.. bpo: 28898 +.. date: 9492 +.. nonce: YGUd_i +.. section: Build + +Prevent gdb build errors due to HAVE_LONG_LONG redefinition. diff --git a/Misc/NEWS.d/3.6.1rc1.rst b/Misc/NEWS.d/3.6.1rc1.rst new file mode 100644 index 0000000..244bbbb --- /dev/null +++ b/Misc/NEWS.d/3.6.1rc1.rst @@ -0,0 +1,308 @@ +.. bpo: 28932 +.. date: 9529 +.. nonce: QnLx8A +.. release date: XXXX-XX-XX +.. section: Core and Builtins + +Do not include <sys/random.h> if it does not exist. + +.. + +.. bpo: 25677 +.. date: 9528 +.. nonce: RWhZrb +.. section: Core and Builtins + +Correct the positioning of the syntax error caret for indented blocks. +Based on patch by Michael Layzell. + +.. + +.. bpo: 29000 +.. date: 9527 +.. nonce: K6wQ-3 +.. section: Core and Builtins + +Fixed bytes formatting of octals with zero padding in alternate form. + +.. + +.. bpo: 26919 +.. date: 9526 +.. nonce: Cm7MSa +.. section: Core and Builtins + +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. + +.. + +.. bpo: 28991 +.. date: 9525 +.. nonce: lGA0FK +.. section: Core and Builtins + +functools.lru_cache() was susceptible to an obscure reentrancy bug +triggerable by a monkey-patched len() function. + +.. + +.. bpo: 28739 +.. date: 9524 +.. nonce: w1fvhk +.. section: Core and Builtins + +f-string expressions are no longer accepted as docstrings and by +ast.literal_eval() even if they do not include expressions. + +.. + +.. bpo: 28512 +.. date: 9523 +.. nonce: i-pv6d +.. section: Core and Builtins + +Fixed setting the offset attribute of SyntaxError by +PyErr_SyntaxLocationEx() and PyErr_SyntaxLocationObject(). + +.. + +.. bpo: 28918 +.. date: 9522 +.. nonce: SFVuPz +.. section: Core and Builtins + +Fix the cross compilation of xxlimited when Python has been built with +Py_DEBUG defined. + +.. + +.. bpo: 28731 +.. date: 9521 +.. nonce: oNF59u +.. section: Core and Builtins + +Optimize _PyDict_NewPresized() to create correct size dict. Improve speed of +dict literal with constant keys up to 30%. + +.. + +.. bpo: 29085 +.. date: 9520 +.. nonce: bm3gkx +.. section: Library + +Allow random.Random.seed() to use high quality OS randomness rather than the +pid and time. + +.. + +.. bpo: 28923 +.. date: 9519 +.. nonce: naVULD +.. section: Library + +Remove editor artifacts from Tix.py. + +.. + +.. bpo: 29055 +.. date: 9518 +.. nonce: -r_9jc +.. section: Library + +Neaten-up empty population error on random.choice() by suppressing the +upstream exception. + +.. + +.. bpo: 28871 +.. date: 9517 +.. nonce: cPMXCJ +.. section: Library + +Fixed a crash when deallocate deep ElementTree. + +.. + +.. bpo: 19542 +.. date: 9516 +.. nonce: 5tCkaK +.. section: Library + +Fix bugs in WeakValueDictionary.setdefault() and WeakValueDictionary.pop() +when a GC collection happens in another thread. + +.. + +.. bpo: 20191 +.. date: 9515 +.. nonce: Q7uZCS +.. section: Library + +Fixed a crash in resource.prlimit() when passing a sequence that doesn't own +its elements as limits. + +.. + +.. bpo: 28779 +.. date: 9514 +.. nonce: t-mjED +.. section: Library + +multiprocessing.set_forkserver_preload() would crash the forkserver process +if a preloaded module instantiated some multiprocessing objects such as +locks. + +.. + +.. bpo: 28847 +.. date: 9513 +.. nonce: J7d3nG +.. section: Library + +dbm.dumb now supports reading read-only files and no longer writes the index +file when it is not changed. + +.. + +.. bpo: 26937 +.. date: 9512 +.. nonce: c9kgiA +.. section: Library + +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. + +.. + +.. bpo: 29326 +.. date: 9511 +.. nonce: 4qDQzs +.. section: Windows + +Ignores blank lines in ._pth files (Patch by Alexey Izbyshev) + +.. + +.. bpo: 28164 +.. date: 9510 +.. nonce: h4CFX8 +.. section: Windows + +Correctly handle special console filenames (patch by Eryk Sun) + +.. + +.. bpo: 29409 +.. date: 9509 +.. nonce: bhvrJ2 +.. section: Windows + +Implement PEP 529 for io.FileIO (Patch by Eryk Sun) + +.. + +.. bpo: 29392 +.. date: 9508 +.. nonce: OtqS5t +.. section: Windows + +Prevent crash when passing invalid arguments into msvcrt module. + +.. + +.. bpo: 25778 +.. date: 9507 +.. nonce: 8uKJ82 +.. section: Windows + +winreg does not truncate string correctly (Patch by Eryk Sun) + +.. + +.. bpo: 28896 +.. date: 9506 +.. nonce: VMi9w0 +.. section: Windows + +Deprecate WindowsRegistryFinder and disable it by default. + +.. + +.. bpo: 29349 +.. date: 9505 +.. nonce: PjSo-t +.. section: Documentation + +Fix Python 2 syntax in code for building the documentation. + +.. + +.. bpo: 28950 +.. date: 9504 +.. nonce: 1W8Glo +.. section: Tests + +Disallow -j0 to be combined with -T/-l in regrtest command line arguments. + +.. + +.. bpo: 28683 +.. date: 9503 +.. nonce: Fp-Hdq +.. section: Tests + +Fix the tests that bind() a unix socket and raise PermissionError on Android +for a non-root user. + +.. + +.. bpo: 26939 +.. date: 9502 +.. nonce: 7j_W5R +.. section: Tests + +Add the support.setswitchinterval() function to fix test_functools hanging +on the Android armv7 qemu emulator. + +.. + +.. bpo: 28762 +.. date: 9501 +.. nonce: Ru0YN_ +.. section: Build + +lockf() is available on Android API level 24, but the F_LOCK macro is not +defined in android-ndk-r13. + +.. + +.. bpo: 28538 +.. date: 9500 +.. nonce: FqtN7v +.. section: Build + +Fix the compilation error that occurs because if_nameindex() is available on +Android API level 24, but the if_nameindex structure is not defined. + +.. + +.. bpo: 20211 +.. date: 9499 +.. nonce: gpNptI +.. section: Build + +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. + +.. + +.. bpo: 28849 +.. date: 9498 +.. nonce: AzRRF5 +.. section: Build + +Do not define sys.implementation._multiarch on Android. diff --git a/Misc/NEWS.d/next/Build/0019.bpo-28676.Wxf6Ds.rst b/Misc/NEWS.d/next/Build/0019.bpo-28676.Wxf6Ds.rst new file mode 100644 index 0000000..89dcfc7 --- /dev/null +++ b/Misc/NEWS.d/next/Build/0019.bpo-28676.Wxf6Ds.rst @@ -0,0 +1,2 @@ +Prevent missing 'getentropy' declaration warning on macOS. Patch by Gareth +Rees. diff --git a/Misc/NEWS.d/next/Build/0020.bpo-15819.QVDr3E.rst b/Misc/NEWS.d/next/Build/0020.bpo-15819.QVDr3E.rst new file mode 100644 index 0000000..b5fdd6c --- /dev/null +++ b/Misc/NEWS.d/next/Build/0020.bpo-15819.QVDr3E.rst @@ -0,0 +1,2 @@ +Remove redundant include search directory option for building outside the +source tree. diff --git a/Misc/NEWS.d/next/Build/0021.bpo-27979.fR0KgM.rst b/Misc/NEWS.d/next/Build/0021.bpo-27979.fR0KgM.rst new file mode 100644 index 0000000..305fea8 --- /dev/null +++ b/Misc/NEWS.d/next/Build/0021.bpo-27979.fR0KgM.rst @@ -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.d/next/Build/0022.bpo-26661.Z_HNbs.rst b/Misc/NEWS.d/next/Build/0022.bpo-26661.Z_HNbs.rst new file mode 100644 index 0000000..af6057a --- /dev/null +++ b/Misc/NEWS.d/next/Build/0022.bpo-26661.Z_HNbs.rst @@ -0,0 +1 @@ +setup.py now detects system libffi with multiarch wrapper. diff --git a/Misc/NEWS.d/next/Build/0023.bpo-28258.iKtAHd.rst b/Misc/NEWS.d/next/Build/0023.bpo-28258.iKtAHd.rst new file mode 100644 index 0000000..b53e947 --- /dev/null +++ b/Misc/NEWS.d/next/Build/0023.bpo-28258.iKtAHd.rst @@ -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.d/next/Build/0024.bpo-21085.2VvyUF.rst b/Misc/NEWS.d/next/Build/0024.bpo-21085.2VvyUF.rst new file mode 100644 index 0000000..f470ccd --- /dev/null +++ b/Misc/NEWS.d/next/Build/0024.bpo-21085.2VvyUF.rst @@ -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.d/next/Build/0025.bpo-13756.sslhpC.rst b/Misc/NEWS.d/next/Build/0025.bpo-13756.sslhpC.rst new file mode 100644 index 0000000..b898c92 --- /dev/null +++ b/Misc/NEWS.d/next/Build/0025.bpo-13756.sslhpC.rst @@ -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.d/next/Build/0026.bpo-21124.1bbArU.rst b/Misc/NEWS.d/next/Build/0026.bpo-21124.1bbArU.rst new file mode 100644 index 0000000..8574312 --- /dev/null +++ b/Misc/NEWS.d/next/Build/0026.bpo-21124.1bbArU.rst @@ -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.d/next/Build/0027.bpo-28248.KY_-en.rst b/Misc/NEWS.d/next/Build/0027.bpo-28248.KY_-en.rst new file mode 100644 index 0000000..18d3693 --- /dev/null +++ b/Misc/NEWS.d/next/Build/0027.bpo-28248.KY_-en.rst @@ -0,0 +1 @@ +Update Windows build and OS X installers to use OpenSSL 1.0.2j. diff --git a/Misc/NEWS.d/next/Build/0028.bpo-28208.DtoP1i.rst b/Misc/NEWS.d/next/Build/0028.bpo-28208.DtoP1i.rst new file mode 100644 index 0000000..2deaf02 --- /dev/null +++ b/Misc/NEWS.d/next/Build/0028.bpo-28208.DtoP1i.rst @@ -0,0 +1 @@ +Update Windows build and OS X installers to use SQLite 3.14.2. diff --git a/Misc/NEWS.d/next/Build/0029.bpo-28444.zkc9nT.rst b/Misc/NEWS.d/next/Build/0029.bpo-28444.zkc9nT.rst new file mode 100644 index 0000000..1df6824 --- /dev/null +++ b/Misc/NEWS.d/next/Build/0029.bpo-28444.zkc9nT.rst @@ -0,0 +1 @@ +Fix missing extensions modules when cross compiling. diff --git a/Misc/NEWS.d/next/Build/0030.bpo-26359.CLz6qy.rst b/Misc/NEWS.d/next/Build/0030.bpo-26359.CLz6qy.rst new file mode 100644 index 0000000..581ddaf --- /dev/null +++ b/Misc/NEWS.d/next/Build/0030.bpo-26359.CLz6qy.rst @@ -0,0 +1 @@ +Rename --with-optimiations to --enable-optimizations. diff --git a/Misc/NEWS.d/next/Build/0031.bpo-10656.pR8FFU.rst b/Misc/NEWS.d/next/Build/0031.bpo-10656.pR8FFU.rst new file mode 100644 index 0000000..62cc546 --- /dev/null +++ b/Misc/NEWS.d/next/Build/0031.bpo-10656.pR8FFU.rst @@ -0,0 +1,2 @@ +Fix out-of-tree building on AIX. Patch by Tristan Carel and Michael +Haubenwallner. diff --git a/Misc/NEWS.d/next/Build/0032.bpo-28849.AzRRF5.rst b/Misc/NEWS.d/next/Build/0032.bpo-28849.AzRRF5.rst new file mode 100644 index 0000000..9aac021 --- /dev/null +++ b/Misc/NEWS.d/next/Build/0032.bpo-28849.AzRRF5.rst @@ -0,0 +1 @@ +Do not define sys.implementation._multiarch on Android. diff --git a/Misc/NEWS.d/next/Build/0033.bpo-20211.gpNptI.rst b/Misc/NEWS.d/next/Build/0033.bpo-20211.gpNptI.rst new file mode 100644 index 0000000..8bbea8d --- /dev/null +++ b/Misc/NEWS.d/next/Build/0033.bpo-20211.gpNptI.rst @@ -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.d/next/Build/0034.bpo-28538.FqtN7v.rst b/Misc/NEWS.d/next/Build/0034.bpo-28538.FqtN7v.rst new file mode 100644 index 0000000..ddaf34a --- /dev/null +++ b/Misc/NEWS.d/next/Build/0034.bpo-28538.FqtN7v.rst @@ -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.d/next/Build/0035.bpo-28762.Ru0YN_.rst b/Misc/NEWS.d/next/Build/0035.bpo-28762.Ru0YN_.rst new file mode 100644 index 0000000..0bfb77e --- /dev/null +++ b/Misc/NEWS.d/next/Build/0035.bpo-28762.Ru0YN_.rst @@ -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.d/next/Build/0036.bpo-23903.JXJ889.rst b/Misc/NEWS.d/next/Build/0036.bpo-23903.JXJ889.rst new file mode 100644 index 0000000..39ff222 --- /dev/null +++ b/Misc/NEWS.d/next/Build/0036.bpo-23903.JXJ889.rst @@ -0,0 +1 @@ +Added missed names to PC/python3.def. diff --git a/Misc/NEWS.d/next/Build/0037.bpo-29080.b3qLQT.rst b/Misc/NEWS.d/next/Build/0037.bpo-29080.b3qLQT.rst new file mode 100644 index 0000000..3a4b7bf --- /dev/null +++ b/Misc/NEWS.d/next/Build/0037.bpo-29080.b3qLQT.rst @@ -0,0 +1 @@ +Removes hard dependency on hg.exe from PCBuild/build.bat diff --git a/Misc/NEWS.d/next/Build/0038.bpo-28768.b9_a6E.rst b/Misc/NEWS.d/next/Build/0038.bpo-28768.b9_a6E.rst new file mode 100644 index 0000000..702e14e --- /dev/null +++ b/Misc/NEWS.d/next/Build/0038.bpo-28768.b9_a6E.rst @@ -0,0 +1 @@ +Fix implicit declaration of function _setmode. Patch by Masayuki Yamamoto diff --git a/Misc/NEWS.d/next/Build/0039.bpo-26851.R5243g.rst b/Misc/NEWS.d/next/Build/0039.bpo-26851.R5243g.rst new file mode 100644 index 0000000..1b34a70 --- /dev/null +++ b/Misc/NEWS.d/next/Build/0039.bpo-26851.R5243g.rst @@ -0,0 +1 @@ +Set Android compilation and link flags. diff --git a/Misc/NEWS.d/next/Build/0040.bpo-29384.v3IqBE.rst b/Misc/NEWS.d/next/Build/0040.bpo-29384.v3IqBE.rst new file mode 100644 index 0000000..ccd2808 --- /dev/null +++ b/Misc/NEWS.d/next/Build/0040.bpo-29384.v3IqBE.rst @@ -0,0 +1 @@ +Remove old Be OS helper scripts. diff --git a/Misc/NEWS.d/next/Build/0041.bpo-27659.i8UzRC.rst b/Misc/NEWS.d/next/Build/0041.bpo-27659.i8UzRC.rst new file mode 100644 index 0000000..d720659 --- /dev/null +++ b/Misc/NEWS.d/next/Build/0041.bpo-27659.i8UzRC.rst @@ -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.d/next/Build/0042.bpo-29572.iZ1XKK.rst b/Misc/NEWS.d/next/Build/0042.bpo-29572.iZ1XKK.rst new file mode 100644 index 0000000..9bf71f9 --- /dev/null +++ b/Misc/NEWS.d/next/Build/0042.bpo-29572.iZ1XKK.rst @@ -0,0 +1 @@ +Update Windows build and OS X installers to use OpenSSL 1.0.2k. diff --git a/Misc/NEWS.d/next/Build/0043.bpo-27593.v87xEr.rst b/Misc/NEWS.d/next/Build/0043.bpo-27593.v87xEr.rst new file mode 100644 index 0000000..5b345e6 --- /dev/null +++ b/Misc/NEWS.d/next/Build/0043.bpo-27593.v87xEr.rst @@ -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.d/next/Build/0044.bpo-29643.4WLIJQ.rst b/Misc/NEWS.d/next/Build/0044.bpo-29643.4WLIJQ.rst new file mode 100644 index 0000000..65b958f --- /dev/null +++ b/Misc/NEWS.d/next/Build/0044.bpo-29643.4WLIJQ.rst @@ -0,0 +1 @@ +Fix ``--enable-optimization`` didn't work. diff --git a/Misc/NEWS.d/next/Build/0045.bpo-23404.PdYVWg.rst b/Misc/NEWS.d/next/Build/0045.bpo-23404.PdYVWg.rst new file mode 100644 index 0000000..0addfd0 --- /dev/null +++ b/Misc/NEWS.d/next/Build/0045.bpo-23404.PdYVWg.rst @@ -0,0 +1,2 @@ +Don't regenerate generated files based on file modification time anymore: +the action is now explicit. Replace ``make touch`` with ``make regen-all``. diff --git a/Misc/NEWS.d/next/Build/0046.bpo-29243.WDK4hT.rst b/Misc/NEWS.d/next/Build/0046.bpo-29243.WDK4hT.rst new file mode 100644 index 0000000..378e49f --- /dev/null +++ b/Misc/NEWS.d/next/Build/0046.bpo-29243.WDK4hT.rst @@ -0,0 +1,3 @@ +Prevent unnecessary rebuilding of Python during ``make test``, ``make +install`` and some other make targets when configured with ``--enable- +optimizations``. diff --git a/Misc/NEWS.d/next/Build/0047.bpo-28787.vhH_6a.rst b/Misc/NEWS.d/next/Build/0047.bpo-28787.vhH_6a.rst new file mode 100644 index 0000000..13ff837 --- /dev/null +++ b/Misc/NEWS.d/next/Build/0047.bpo-28787.vhH_6a.rst @@ -0,0 +1 @@ +Fix out-of-tree builds of Python when configured with ``--with--dtrace``. diff --git a/Misc/NEWS.d/next/Build/0048.bpo-29941.ylh45A.rst b/Misc/NEWS.d/next/Build/0048.bpo-29941.ylh45A.rst new file mode 100644 index 0000000..d36c9c0 --- /dev/null +++ b/Misc/NEWS.d/next/Build/0048.bpo-29941.ylh45A.rst @@ -0,0 +1,2 @@ +Add ``--with-assertions`` configure flag to explicitly enable C ``assert()`` +checks. Defaults to off. ``--with-pydebug`` implies ``--with-assertions``. diff --git a/Misc/NEWS.d/next/Build/0049.bpo-20210.MN_n-r.rst b/Misc/NEWS.d/next/Build/0049.bpo-20210.MN_n-r.rst new file mode 100644 index 0000000..3eb76d7 --- /dev/null +++ b/Misc/NEWS.d/next/Build/0049.bpo-20210.MN_n-r.rst @@ -0,0 +1,2 @@ +Support the *disabled* marker in Setup files. Extension modules listed after +this marker are not built at all, neither by the Makefile nor by setup.py. diff --git a/Misc/NEWS.d/next/Build/0050.bpo-30687.8mqHnu.rst b/Misc/NEWS.d/next/Build/0050.bpo-30687.8mqHnu.rst new file mode 100644 index 0000000..9f37c07 --- /dev/null +++ b/Misc/NEWS.d/next/Build/0050.bpo-30687.8mqHnu.rst @@ -0,0 +1 @@ +Locate msbuild.exe on Windows when building rather than vcvarsall.bat diff --git a/Misc/NEWS.d/next/C API/0061.bpo-28426.zPwvbI.rst b/Misc/NEWS.d/next/C API/0061.bpo-28426.zPwvbI.rst new file mode 100644 index 0000000..9f18b72 --- /dev/null +++ b/Misc/NEWS.d/next/C API/0061.bpo-28426.zPwvbI.rst @@ -0,0 +1,3 @@ +Deprecated undocumented functions PyUnicode_AsEncodedObject(), +PyUnicode_AsDecodedObject(), PyUnicode_AsDecodedUnicode() and +PyUnicode_AsEncodedUnicode(). diff --git a/Misc/NEWS.d/next/C API/0062.bpo-19569.IPke0J.rst b/Misc/NEWS.d/next/C API/0062.bpo-19569.IPke0J.rst new file mode 100644 index 0000000..703569a --- /dev/null +++ b/Misc/NEWS.d/next/C API/0062.bpo-19569.IPke0J.rst @@ -0,0 +1 @@ +Compiler warnings are now emitted if use most of deprecated functions. diff --git a/Misc/NEWS.d/next/C API/0063.bpo-28748.AMgb_G.rst b/Misc/NEWS.d/next/C API/0063.bpo-28748.AMgb_G.rst new file mode 100644 index 0000000..c0de814 --- /dev/null +++ b/Misc/NEWS.d/next/C API/0063.bpo-28748.AMgb_G.rst @@ -0,0 +1,2 @@ +Private variable _Py_PackageContext is now of type ``const char *`` rather +of ``char *``. diff --git a/Misc/NEWS.d/next/C API/0064.bpo-28761.iOgCoX.rst b/Misc/NEWS.d/next/C API/0064.bpo-28761.iOgCoX.rst new file mode 100644 index 0000000..659edc1 --- /dev/null +++ b/Misc/NEWS.d/next/C API/0064.bpo-28761.iOgCoX.rst @@ -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.d/next/C API/0065.bpo-28808.A03X6r.rst b/Misc/NEWS.d/next/C API/0065.bpo-28808.A03X6r.rst new file mode 100644 index 0000000..61276cd --- /dev/null +++ b/Misc/NEWS.d/next/C API/0065.bpo-28808.A03X6r.rst @@ -0,0 +1 @@ +PyUnicode_CompareWithASCIIString() now never raises exceptions. diff --git a/Misc/NEWS.d/next/C API/0066.bpo-28822.gMqwvb.rst b/Misc/NEWS.d/next/C API/0066.bpo-28822.gMqwvb.rst new file mode 100644 index 0000000..63a13c8 --- /dev/null +++ b/Misc/NEWS.d/next/C API/0066.bpo-28822.gMqwvb.rst @@ -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.d/next/C API/0067.bpo-29058.0wNVP8.rst b/Misc/NEWS.d/next/C API/0067.bpo-29058.0wNVP8.rst new file mode 100644 index 0000000..6f2fd6d --- /dev/null +++ b/Misc/NEWS.d/next/C API/0067.bpo-29058.0wNVP8.rst @@ -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.d/next/C API/0068.bpo-28769.Ecmtn8.rst b/Misc/NEWS.d/next/C API/0068.bpo-28769.Ecmtn8.rst new file mode 100644 index 0000000..e2e7570 --- /dev/null +++ b/Misc/NEWS.d/next/C API/0068.bpo-28769.Ecmtn8.rst @@ -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.d/next/C API/0069.bpo-29083.tGTjr_.rst b/Misc/NEWS.d/next/C API/0069.bpo-29083.tGTjr_.rst new file mode 100644 index 0000000..639fc25 --- /dev/null +++ b/Misc/NEWS.d/next/C API/0069.bpo-29083.tGTjr_.rst @@ -0,0 +1,5 @@ +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.d/next/C API/0070.bpo-27867.J-8CGo.rst b/Misc/NEWS.d/next/C API/0070.bpo-27867.J-8CGo.rst new file mode 100644 index 0000000..dbfeede --- /dev/null +++ b/Misc/NEWS.d/next/C API/0070.bpo-27867.J-8CGo.rst @@ -0,0 +1,4 @@ +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(). diff --git a/Misc/NEWS.d/next/C API/0071.bpo-6532.qcH6k1.rst b/Misc/NEWS.d/next/C API/0071.bpo-6532.qcH6k1.rst new file mode 100644 index 0000000..82b8e6b --- /dev/null +++ b/Misc/NEWS.d/next/C API/0071.bpo-6532.qcH6k1.rst @@ -0,0 +1,3 @@ +The type of results of PyThread_start_new_thread() and +PyThread_get_thread_ident(), and the id parameter of +PyThreadState_SetAsyncExc() changed from "long" to "unsigned long". diff --git a/Misc/NEWS.d/next/C API/0072.bpo-16500.lRpooa.rst b/Misc/NEWS.d/next/C API/0072.bpo-16500.lRpooa.rst new file mode 100644 index 0000000..521aea8 --- /dev/null +++ b/Misc/NEWS.d/next/C API/0072.bpo-16500.lRpooa.rst @@ -0,0 +1,2 @@ +Deprecate PyOS_AfterFork() and add PyOS_BeforeFork(), +PyOS_AfterFork_Parent() and PyOS_AfterFork_Child(). diff --git a/Misc/NEWS.d/next/C API/0073.bpo-30708.np-l1j.rst b/Misc/NEWS.d/next/C API/0073.bpo-30708.np-l1j.rst new file mode 100644 index 0000000..f74ca22 --- /dev/null +++ b/Misc/NEWS.d/next/C API/0073.bpo-30708.np-l1j.rst @@ -0,0 +1,2 @@ +PyUnicode_AsWideCharString() now raises a ValueError if the second argument +is NULL and the wchar_t\* string contains null characters. diff --git a/Misc/NEWS.d/next/Core and Builtins/0353.bpo-26110.KRaID6.rst b/Misc/NEWS.d/next/Core and Builtins/0353.bpo-26110.KRaID6.rst new file mode 100644 index 0000000..b0f63ad --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0353.bpo-26110.KRaID6.rst @@ -0,0 +1 @@ +Speed-up method calls: add LOAD_METHOD and CALL_METHOD opcodes. diff --git a/Misc/NEWS.d/next/Core and Builtins/0354.bpo-28721.BO9BUF.rst b/Misc/NEWS.d/next/Core and Builtins/0354.bpo-28721.BO9BUF.rst new file mode 100644 index 0000000..3dbd1a3 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0354.bpo-28721.BO9BUF.rst @@ -0,0 +1,2 @@ +Fix asynchronous generators aclose() and athrow() to handle +StopAsyncIteration propagation properly. diff --git a/Misc/NEWS.d/next/Core and Builtins/0355.bpo-26182.a8JXK2.rst b/Misc/NEWS.d/next/Core and Builtins/0355.bpo-26182.a8JXK2.rst new file mode 100644 index 0000000..e856dd2 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0355.bpo-26182.a8JXK2.rst @@ -0,0 +1 @@ +Fix a refleak in code that raises DeprecationWarning. diff --git a/Misc/NEWS.d/next/Core and Builtins/0356.bpo-26182.jYlqTO.rst b/Misc/NEWS.d/next/Core and Builtins/0356.bpo-26182.jYlqTO.rst new file mode 100644 index 0000000..a028185 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0356.bpo-26182.jYlqTO.rst @@ -0,0 +1,2 @@ +Raise DeprecationWarning when async and await keywords are used as +variable/attribute/class/function name. diff --git a/Misc/NEWS.d/next/Core and Builtins/0357.bpo-28120.e5xc1i.rst b/Misc/NEWS.d/next/Core and Builtins/0357.bpo-28120.e5xc1i.rst new file mode 100644 index 0000000..55775eb --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0357.bpo-28120.e5xc1i.rst @@ -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.d/next/Core and Builtins/0358.bpo-28126.Qf6-uQ.rst b/Misc/NEWS.d/next/Core and Builtins/0358.bpo-28126.Qf6-uQ.rst new file mode 100644 index 0000000..162ee38 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0358.bpo-28126.Qf6-uQ.rst @@ -0,0 +1,2 @@ +Replace Py_MEMCPY with memcpy(). Visual Studio can properly optimize +memcpy(). diff --git a/Misc/NEWS.d/next/Core and Builtins/0359.bpo-28131.owq0wW.rst b/Misc/NEWS.d/next/Core and Builtins/0359.bpo-28131.owq0wW.rst new file mode 100644 index 0000000..f532fa1 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0359.bpo-28131.owq0wW.rst @@ -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.d/next/Core and Builtins/0360.bpo-0.9EbOiD.rst b/Misc/NEWS.d/next/Core and Builtins/0360.bpo-0.9EbOiD.rst new file mode 100644 index 0000000..b72692d --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0360.bpo-0.9EbOiD.rst @@ -0,0 +1 @@ +Upgrade internal unicode databases to Unicode version 9.0.0. diff --git a/Misc/NEWS.d/next/Core and Builtins/0361.bpo-27222.74PvFk.rst b/Misc/NEWS.d/next/Core and Builtins/0361.bpo-27222.74PvFk.rst new file mode 100644 index 0000000..93410fa --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0361.bpo-27222.74PvFk.rst @@ -0,0 +1 @@ +Clean up redundant code in long_rshift function. Thanks Oren Milman. diff --git a/Misc/NEWS.d/next/Core and Builtins/0362.bpo-27441.scPKax.rst b/Misc/NEWS.d/next/Core and Builtins/0362.bpo-27441.scPKax.rst new file mode 100644 index 0000000..2dd799d --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0362.bpo-27441.scPKax.rst @@ -0,0 +1,2 @@ +Remove some redundant assignments to ob_size in longobject.c. Thanks Oren +Milman. diff --git a/Misc/NEWS.d/next/Core and Builtins/0363.bpo-28192.eR6stU.rst b/Misc/NEWS.d/next/Core and Builtins/0363.bpo-28192.eR6stU.rst new file mode 100644 index 0000000..cc6e57c --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0363.bpo-28192.eR6stU.rst @@ -0,0 +1 @@ +Don't import readline in isolated mode. diff --git a/Misc/NEWS.d/next/Core and Builtins/0364.bpo-27955.HC4pZ4.rst b/Misc/NEWS.d/next/Core and Builtins/0364.bpo-27955.HC4pZ4.rst new file mode 100644 index 0000000..d977df7 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0364.bpo-27955.HC4pZ4.rst @@ -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.d/next/Core and Builtins/0365.bpo-28214.zQF8Em.rst b/Misc/NEWS.d/next/Core and Builtins/0365.bpo-28214.zQF8Em.rst new file mode 100644 index 0000000..29afe9c --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0365.bpo-28214.zQF8Em.rst @@ -0,0 +1 @@ +Now __set_name__ is looked up on the class instead of the instance. diff --git a/Misc/NEWS.d/next/Core and Builtins/0366.bpo-28086.JsQPMQ.rst b/Misc/NEWS.d/next/Core and Builtins/0366.bpo-28086.JsQPMQ.rst new file mode 100644 index 0000000..faa9e3c --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0366.bpo-28086.JsQPMQ.rst @@ -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.d/next/Core and Builtins/0367.bpo-28203.LRn5vp.rst b/Misc/NEWS.d/next/Core and Builtins/0367.bpo-28203.LRn5vp.rst new file mode 100644 index 0000000..687a7e9 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0367.bpo-28203.LRn5vp.rst @@ -0,0 +1,2 @@ +Fix incorrect type in complex(1.0, {2:3}) error message. Patch by Soumya +Sharma. diff --git a/Misc/NEWS.d/next/Core and Builtins/0368.bpo-21578.GI1bhj.rst b/Misc/NEWS.d/next/Core and Builtins/0368.bpo-21578.GI1bhj.rst new file mode 100644 index 0000000..15c4de3 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0368.bpo-21578.GI1bhj.rst @@ -0,0 +1,2 @@ +Fixed misleading error message when ImportError called with invalid keyword +args. diff --git a/Misc/NEWS.d/next/Core and Builtins/0369.bpo-28289.l1kHlV.rst b/Misc/NEWS.d/next/Core and Builtins/0369.bpo-28289.l1kHlV.rst new file mode 100644 index 0000000..577e3f0 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0369.bpo-28289.l1kHlV.rst @@ -0,0 +1 @@ +ImportError.__init__ now resets not specified attributes. diff --git a/Misc/NEWS.d/next/Core and Builtins/0370.bpo-27942.ZGuhns.rst b/Misc/NEWS.d/next/Core and Builtins/0370.bpo-27942.ZGuhns.rst new file mode 100644 index 0000000..ca8dfef --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0370.bpo-27942.ZGuhns.rst @@ -0,0 +1 @@ +String constants now interned recursively in tuples and frozensets. diff --git a/Misc/NEWS.d/next/Core and Builtins/0371.bpo-26617.Gh5LvN.rst b/Misc/NEWS.d/next/Core and Builtins/0371.bpo-26617.Gh5LvN.rst new file mode 100644 index 0000000..c3a4139 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0371.bpo-26617.Gh5LvN.rst @@ -0,0 +1 @@ +Fix crash when GC runs during weakref callbacks. diff --git a/Misc/NEWS.d/next/Core and Builtins/0372.bpo-28350.8M5Eg9.rst b/Misc/NEWS.d/next/Core and Builtins/0372.bpo-28350.8M5Eg9.rst new file mode 100644 index 0000000..013b3e1 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0372.bpo-28350.8M5Eg9.rst @@ -0,0 +1 @@ +String constants with null character no longer interned. diff --git a/Misc/NEWS.d/next/Core and Builtins/0373.bpo-28201.GWUxAy.rst b/Misc/NEWS.d/next/Core and Builtins/0373.bpo-28201.GWUxAy.rst new file mode 100644 index 0000000..d1b56f5 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0373.bpo-28201.GWUxAy.rst @@ -0,0 +1,2 @@ +Dict reduces possibility of 2nd conflict in hash table when hashes have same +lower bits. diff --git a/Misc/NEWS.d/next/Core and Builtins/0374.bpo-24098.XqlP_1.rst b/Misc/NEWS.d/next/Core and Builtins/0374.bpo-24098.XqlP_1.rst new file mode 100644 index 0000000..82897ed --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0374.bpo-24098.XqlP_1.rst @@ -0,0 +1 @@ +Fixed possible crash when AST is changed in process of compiling it. diff --git a/Misc/NEWS.d/next/Core and Builtins/0375.bpo-18287.k6jffS.rst b/Misc/NEWS.d/next/Core and Builtins/0375.bpo-18287.k6jffS.rst new file mode 100644 index 0000000..5ed0382 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0375.bpo-18287.k6jffS.rst @@ -0,0 +1,2 @@ +PyType_Ready() now checks that tp_name is not NULL. Original patch by Niklas +Koep. diff --git a/Misc/NEWS.d/next/Core and Builtins/0376.bpo-26906.YBjcwI.rst b/Misc/NEWS.d/next/Core and Builtins/0376.bpo-26906.YBjcwI.rst new file mode 100644 index 0000000..9927fc9 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0376.bpo-26906.YBjcwI.rst @@ -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.d/next/Core and Builtins/0377.bpo-28376.yTEhEo.rst b/Misc/NEWS.d/next/Core and Builtins/0377.bpo-28376.yTEhEo.rst new file mode 100644 index 0000000..48cd8ca --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0377.bpo-28376.yTEhEo.rst @@ -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.d/next/Core and Builtins/0378.bpo-28376.oPD-5D.rst b/Misc/NEWS.d/next/Core and Builtins/0378.bpo-28376.oPD-5D.rst new file mode 100644 index 0000000..0beccca --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0378.bpo-28376.oPD-5D.rst @@ -0,0 +1,2 @@ +The type of long range iterator is now registered as Iterator. Patch by Oren +Milman. diff --git a/Misc/NEWS.d/next/Core and Builtins/0379.bpo-28379.DuXlco.rst b/Misc/NEWS.d/next/Core and Builtins/0379.bpo-28379.DuXlco.rst new file mode 100644 index 0000000..023812b --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0379.bpo-28379.DuXlco.rst @@ -0,0 +1,2 @@ +Added sanity checks and tests for PyUnicode_CopyCharacters(). Patch by Xiang +Zhang. diff --git a/Misc/NEWS.d/next/Core and Builtins/0380.bpo-26081._x5vjl.rst b/Misc/NEWS.d/next/Core and Builtins/0380.bpo-26081._x5vjl.rst new file mode 100644 index 0000000..ada5516 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0380.bpo-26081._x5vjl.rst @@ -0,0 +1 @@ +Added C implementation of asyncio.Future. Original patch by Yury Selivanov. diff --git a/Misc/NEWS.d/next/Core and Builtins/0381.bpo-28183.MJZeNd.rst b/Misc/NEWS.d/next/Core and Builtins/0381.bpo-28183.MJZeNd.rst new file mode 100644 index 0000000..2453de1 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0381.bpo-28183.MJZeNd.rst @@ -0,0 +1 @@ +Optimize and cleanup dict iteration. diff --git a/Misc/NEWS.d/next/Core and Builtins/0382.bpo-23782.lonDzj.rst b/Misc/NEWS.d/next/Core and Builtins/0382.bpo-23782.lonDzj.rst new file mode 100644 index 0000000..36e85d8 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0382.bpo-23782.lonDzj.rst @@ -0,0 +1,2 @@ +Fixed possible memory leak in _PyTraceback_Add() and exception loss in +PyTraceBack_Here(). diff --git a/Misc/NEWS.d/next/Core and Builtins/0383.bpo-28214.6ECJox.rst b/Misc/NEWS.d/next/Core and Builtins/0383.bpo-28214.6ECJox.rst new file mode 100644 index 0000000..b73c752 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0383.bpo-28214.6ECJox.rst @@ -0,0 +1 @@ +Improved exception reporting for problematic __set_name__ attributes. diff --git a/Misc/NEWS.d/next/Core and Builtins/0384.bpo-28517.ExPkm9.rst b/Misc/NEWS.d/next/Core and Builtins/0384.bpo-28517.ExPkm9.rst new file mode 100644 index 0000000..96ef7e0 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0384.bpo-28517.ExPkm9.rst @@ -0,0 +1,2 @@ +Fixed of-by-one error in the peephole optimizer that caused keeping +unreachable code. diff --git a/Misc/NEWS.d/next/Core and Builtins/0385.bpo-28426.E_quyK.rst b/Misc/NEWS.d/next/Core and Builtins/0385.bpo-28426.E_quyK.rst new file mode 100644 index 0000000..f21b3db --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0385.bpo-28426.E_quyK.rst @@ -0,0 +1 @@ +Fixed potential crash in PyUnicode_AsDecodedObject() in debug build. diff --git a/Misc/NEWS.d/next/Core and Builtins/0386.bpo-28509._Fa4Uq.rst b/Misc/NEWS.d/next/Core and Builtins/0386.bpo-28509._Fa4Uq.rst new file mode 100644 index 0000000..040b7e7 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0386.bpo-28509._Fa4Uq.rst @@ -0,0 +1 @@ +dict.update() no longer allocate unnecessary large memory. diff --git a/Misc/NEWS.d/next/Core and Builtins/0387.bpo-28128.Lc2sFu.rst b/Misc/NEWS.d/next/Core and Builtins/0387.bpo-28128.Lc2sFu.rst new file mode 100644 index 0000000..aac57af --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0387.bpo-28128.Lc2sFu.rst @@ -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.d/next/Core and Builtins/0388.bpo-28583.F-QAx1.rst b/Misc/NEWS.d/next/Core and Builtins/0388.bpo-28583.F-QAx1.rst new file mode 100644 index 0000000..9ead27d --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0388.bpo-28583.F-QAx1.rst @@ -0,0 +1,2 @@ +PyDict_SetDefault didn't combine split table when needed. Patch by Xiang +Zhang. diff --git a/Misc/NEWS.d/next/Core and Builtins/0389.bpo-28580.8bqBmG.rst b/Misc/NEWS.d/next/Core and Builtins/0389.bpo-28580.8bqBmG.rst new file mode 100644 index 0000000..cfc9737 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0389.bpo-28580.8bqBmG.rst @@ -0,0 +1 @@ +Optimize iterating split table values. Patch by Xiang Zhang. diff --git a/Misc/NEWS.d/next/Core and Builtins/0390.bpo-28621.eCD7n-.rst b/Misc/NEWS.d/next/Core and Builtins/0390.bpo-28621.eCD7n-.rst new file mode 100644 index 0000000..41d9b72 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0390.bpo-28621.eCD7n-.rst @@ -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.d/next/Core and Builtins/0391.bpo-19398.RYbEGH.rst b/Misc/NEWS.d/next/Core and Builtins/0391.bpo-19398.RYbEGH.rst new file mode 100644 index 0000000..ba89b2a --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0391.bpo-19398.RYbEGH.rst @@ -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.d/next/Core and Builtins/0392.bpo-28665.v4nx86.rst b/Misc/NEWS.d/next/Core and Builtins/0392.bpo-28665.v4nx86.rst new file mode 100644 index 0000000..b9e965d --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0392.bpo-28665.v4nx86.rst @@ -0,0 +1 @@ +Improve speed of the STORE_DEREF opcode by 40%. diff --git a/Misc/NEWS.d/next/Core and Builtins/0393.bpo-28648.z7B52W.rst b/Misc/NEWS.d/next/Core and Builtins/0393.bpo-28648.z7B52W.rst new file mode 100644 index 0000000..48b17ff --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0393.bpo-28648.z7B52W.rst @@ -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.d/next/Core and Builtins/0394.bpo-26920.1URwGb.rst b/Misc/NEWS.d/next/Core and Builtins/0394.bpo-26920.1URwGb.rst new file mode 100644 index 0000000..7d003d0 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0394.bpo-26920.1URwGb.rst @@ -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.d/next/Core and Builtins/0395.bpo-28746.r5MXdB.rst b/Misc/NEWS.d/next/Core and Builtins/0395.bpo-28746.r5MXdB.rst new file mode 100644 index 0000000..28a6112 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0395.bpo-28746.r5MXdB.rst @@ -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.d/next/Core and Builtins/0396.bpo-27100.poVjXq.rst b/Misc/NEWS.d/next/Core and Builtins/0396.bpo-27100.poVjXq.rst new file mode 100644 index 0000000..a5c27b6 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0396.bpo-27100.poVjXq.rst @@ -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.d/next/Core and Builtins/0397.bpo-28532.KEYJny.rst b/Misc/NEWS.d/next/Core and Builtins/0397.bpo-28532.KEYJny.rst new file mode 100644 index 0000000..3a058ac --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0397.bpo-28532.KEYJny.rst @@ -0,0 +1 @@ +Show sys.version when -V option is supplied twice. diff --git a/Misc/NEWS.d/next/Core and Builtins/0398.bpo-28731.oNF59u.rst b/Misc/NEWS.d/next/Core and Builtins/0398.bpo-28731.oNF59u.rst new file mode 100644 index 0000000..a2fa1d5 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0398.bpo-28731.oNF59u.rst @@ -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.d/next/Core and Builtins/0399.bpo-28774.cEehAr.rst b/Misc/NEWS.d/next/Core and Builtins/0399.bpo-28774.cEehAr.rst new file mode 100644 index 0000000..1f67061 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0399.bpo-28774.cEehAr.rst @@ -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.d/next/Core and Builtins/0400.bpo-28782.foJV_E.rst b/Misc/NEWS.d/next/Core and Builtins/0400.bpo-28782.foJV_E.rst new file mode 100644 index 0000000..7a1ab49 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0400.bpo-28782.foJV_E.rst @@ -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 (issue #26647). diff --git a/Misc/NEWS.d/next/Core and Builtins/0401.bpo-12844.pdr3gY.rst b/Misc/NEWS.d/next/Core and Builtins/0401.bpo-12844.pdr3gY.rst new file mode 100644 index 0000000..3704fba --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0401.bpo-12844.pdr3gY.rst @@ -0,0 +1 @@ +More than 255 arguments can now be passed to a function. diff --git a/Misc/NEWS.d/next/Core and Builtins/0402.bpo-28799.cP6V1N.rst b/Misc/NEWS.d/next/Core and Builtins/0402.bpo-28799.cP6V1N.rst new file mode 100644 index 0000000..95fe72c --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0402.bpo-28799.cP6V1N.rst @@ -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.d/next/Core and Builtins/0403.bpo-28797._A0_Z5.rst b/Misc/NEWS.d/next/Core and Builtins/0403.bpo-28797._A0_Z5.rst new file mode 100644 index 0000000..8735cad --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0403.bpo-28797._A0_Z5.rst @@ -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.d/next/Core and Builtins/0404.bpo-23722.e8BH5h.rst b/Misc/NEWS.d/next/Core and Builtins/0404.bpo-23722.e8BH5h.rst new file mode 100644 index 0000000..b387559 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0404.bpo-23722.e8BH5h.rst @@ -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.d/next/Core and Builtins/0405.bpo-28918.SFVuPz.rst b/Misc/NEWS.d/next/Core and Builtins/0405.bpo-28918.SFVuPz.rst new file mode 100644 index 0000000..a3b9247 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0405.bpo-28918.SFVuPz.rst @@ -0,0 +1,2 @@ +Fix the cross compilation of xxlimited when Python has been built with +Py_DEBUG defined. diff --git a/Misc/NEWS.d/next/Core and Builtins/0406.bpo-28512.i-pv6d.rst b/Misc/NEWS.d/next/Core and Builtins/0406.bpo-28512.i-pv6d.rst new file mode 100644 index 0000000..058da76 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0406.bpo-28512.i-pv6d.rst @@ -0,0 +1,2 @@ +Fixed setting the offset attribute of SyntaxError by +PyErr_SyntaxLocationEx() and PyErr_SyntaxLocationObject(). diff --git a/Misc/NEWS.d/next/Core and Builtins/0407.bpo-28739.w1fvhk.rst b/Misc/NEWS.d/next/Core and Builtins/0407.bpo-28739.w1fvhk.rst new file mode 100644 index 0000000..10be6c3 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0407.bpo-28739.w1fvhk.rst @@ -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.d/next/Core and Builtins/0408.bpo-28147.CnK_xf.rst b/Misc/NEWS.d/next/Core and Builtins/0408.bpo-28147.CnK_xf.rst new file mode 100644 index 0000000..6188211 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0408.bpo-28147.CnK_xf.rst @@ -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.d/next/Core and Builtins/0409.bpo-28991.lGA0FK.rst b/Misc/NEWS.d/next/Core and Builtins/0409.bpo-28991.lGA0FK.rst new file mode 100644 index 0000000..f999973 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0409.bpo-28991.lGA0FK.rst @@ -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.d/next/Core and Builtins/0410.bpo-26919.Cm7MSa.rst b/Misc/NEWS.d/next/Core and Builtins/0410.bpo-26919.Cm7MSa.rst new file mode 100644 index 0000000..7be0640 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0410.bpo-26919.Cm7MSa.rst @@ -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.d/next/Core and Builtins/0411.bpo-22257.2a8zxB.rst b/Misc/NEWS.d/next/Core and Builtins/0411.bpo-22257.2a8zxB.rst new file mode 100644 index 0000000..a5a89e1 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0411.bpo-22257.2a8zxB.rst @@ -0,0 +1 @@ +Clean up interpreter startup (see PEP 432). diff --git a/Misc/NEWS.d/next/Core and Builtins/0412.bpo-28596.snIJRd.rst b/Misc/NEWS.d/next/Core and Builtins/0412.bpo-28596.snIJRd.rst new file mode 100644 index 0000000..9f63ef9 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0412.bpo-28596.snIJRd.rst @@ -0,0 +1 @@ +The preferred encoding is UTF-8 on Android. Patch written by Chi Hsuan Yen. diff --git a/Misc/NEWS.d/next/Core and Builtins/0413.bpo-18896.Pqe0bg.rst b/Misc/NEWS.d/next/Core and Builtins/0413.bpo-18896.Pqe0bg.rst new file mode 100644 index 0000000..a67dc93 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0413.bpo-18896.Pqe0bg.rst @@ -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.d/next/Core and Builtins/0414.bpo-29000.K6wQ-3.rst b/Misc/NEWS.d/next/Core and Builtins/0414.bpo-29000.K6wQ-3.rst new file mode 100644 index 0000000..94c8b05 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0414.bpo-29000.K6wQ-3.rst @@ -0,0 +1 @@ +Fixed bytes formatting of octals with zero padding in alternate form. diff --git a/Misc/NEWS.d/next/Core and Builtins/0415.bpo-25677.RWhZrb.rst b/Misc/NEWS.d/next/Core and Builtins/0415.bpo-25677.RWhZrb.rst new file mode 100644 index 0000000..f665835 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0415.bpo-25677.RWhZrb.rst @@ -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.d/next/Core and Builtins/0416.bpo-28932.QnLx8A.rst b/Misc/NEWS.d/next/Core and Builtins/0416.bpo-28932.QnLx8A.rst new file mode 100644 index 0000000..e209011 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0416.bpo-28932.QnLx8A.rst @@ -0,0 +1 @@ +Do not include <sys/random.h> if it does not exist. diff --git a/Misc/NEWS.d/next/Core and Builtins/0417.bpo-28927.9fxf6y.rst b/Misc/NEWS.d/next/Core and Builtins/0417.bpo-28927.9fxf6y.rst new file mode 100644 index 0000000..39358cd --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0417.bpo-28927.9fxf6y.rst @@ -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.d/next/Core and Builtins/0418.bpo-29049.KpVXBw.rst b/Misc/NEWS.d/next/Core and Builtins/0418.bpo-29049.KpVXBw.rst new file mode 100644 index 0000000..ff50abd --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0418.bpo-29049.KpVXBw.rst @@ -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.d/next/Core and Builtins/0419.bpo-29159.gEn_kP.rst b/Misc/NEWS.d/next/Core and Builtins/0419.bpo-29159.gEn_kP.rst new file mode 100644 index 0000000..e67ea28 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0419.bpo-29159.gEn_kP.rst @@ -0,0 +1 @@ +Fix regression in bytes(x) when x.__index__() raises Exception. diff --git a/Misc/NEWS.d/next/Core and Builtins/0420.bpo-29034.7-uEDT.rst b/Misc/NEWS.d/next/Core and Builtins/0420.bpo-29034.7-uEDT.rst new file mode 100644 index 0000000..a356cd7 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0420.bpo-29034.7-uEDT.rst @@ -0,0 +1 @@ +Fix memory leak and use-after-free in os module (path_converter). diff --git a/Misc/NEWS.d/next/Core and Builtins/0421.bpo-29327.XXQarW.rst b/Misc/NEWS.d/next/Core and Builtins/0421.bpo-29327.XXQarW.rst new file mode 100644 index 0000000..f23bad0 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0421.bpo-29327.XXQarW.rst @@ -0,0 +1 @@ +Fixed a crash when pass the iterable keyword argument to sorted(). diff --git a/Misc/NEWS.d/next/Core and Builtins/0422.bpo-29337.bjX8AE.rst b/Misc/NEWS.d/next/Core and Builtins/0422.bpo-29337.bjX8AE.rst new file mode 100644 index 0000000..201325c --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0422.bpo-29337.bjX8AE.rst @@ -0,0 +1,2 @@ +Fixed possible BytesWarning when compare the code objects. Warnings could be +emitted at compile time. diff --git a/Misc/NEWS.d/next/Core and Builtins/0423.bpo-29319.KLDUZf.rst b/Misc/NEWS.d/next/Core and Builtins/0423.bpo-29319.KLDUZf.rst new file mode 100644 index 0000000..254d873 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0423.bpo-29319.KLDUZf.rst @@ -0,0 +1 @@ +Prevent RunMainFromImporter overwriting sys.path[0]. diff --git a/Misc/NEWS.d/next/Core and Builtins/0424.bpo-29478.rTQ-qy.rst b/Misc/NEWS.d/next/Core and Builtins/0424.bpo-29478.rTQ-qy.rst new file mode 100644 index 0000000..a9d4bdb --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0424.bpo-29478.rTQ-qy.rst @@ -0,0 +1,2 @@ +If max_line_length=None is specified while using the Compat32 policy, it is +no longer ignored. Patch by Mircea Cosbuc. diff --git a/Misc/NEWS.d/next/Core and Builtins/0425.bpo-29546.O1rmG_.rst b/Misc/NEWS.d/next/Core and Builtins/0425.bpo-29546.O1rmG_.rst new file mode 100644 index 0000000..cb60a48 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0425.bpo-29546.O1rmG_.rst @@ -0,0 +1 @@ +Improve from-import error message with location diff --git a/Misc/NEWS.d/next/Core and Builtins/0426.bpo-29546.PS1I1T.rst b/Misc/NEWS.d/next/Core and Builtins/0426.bpo-29546.PS1I1T.rst new file mode 100644 index 0000000..0868cd1 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0426.bpo-29546.PS1I1T.rst @@ -0,0 +1,2 @@ +Set the 'path' and 'name' attribute on ImportError for ``from ... import +...``. diff --git a/Misc/NEWS.d/next/Core and Builtins/0427.bpo-29438.IKxD6I.rst b/Misc/NEWS.d/next/Core and Builtins/0427.bpo-29438.IKxD6I.rst new file mode 100644 index 0000000..e3eecb6 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0427.bpo-29438.IKxD6I.rst @@ -0,0 +1 @@ +Fixed use-after-free problem in key sharing dict. diff --git a/Misc/NEWS.d/next/Core and Builtins/0428.bpo-29463.h2bg8A.rst b/Misc/NEWS.d/next/Core and Builtins/0428.bpo-29463.h2bg8A.rst new file mode 100644 index 0000000..298d05f --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0428.bpo-29463.h2bg8A.rst @@ -0,0 +1,4 @@ +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.d/next/Core and Builtins/0429.bpo-29347.1RPPGN.rst b/Misc/NEWS.d/next/Core and Builtins/0429.bpo-29347.1RPPGN.rst new file mode 100644 index 0000000..35fa106 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0429.bpo-29347.1RPPGN.rst @@ -0,0 +1,2 @@ +Fixed possibly dereferencing undefined pointers when creating weakref +objects. diff --git a/Misc/NEWS.d/next/Core and Builtins/0430.bpo-29602.qyyskC.rst b/Misc/NEWS.d/next/Core and Builtins/0430.bpo-29602.qyyskC.rst new file mode 100644 index 0000000..cc1366c --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0430.bpo-29602.qyyskC.rst @@ -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.d/next/Core and Builtins/0431.bpo-29607.7NvBA1.rst b/Misc/NEWS.d/next/Core and Builtins/0431.bpo-29607.7NvBA1.rst new file mode 100644 index 0000000..9185bda --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0431.bpo-29607.7NvBA1.rst @@ -0,0 +1,2 @@ +Fix stack_effect computation for CALL_FUNCTION_EX. Patch by Matthieu +Dartiailh. diff --git a/Misc/NEWS.d/next/Core and Builtins/0432.bpo-28598.QxbzQn.rst b/Misc/NEWS.d/next/Core and Builtins/0432.bpo-28598.QxbzQn.rst new file mode 100644 index 0000000..4757347 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0432.bpo-28598.QxbzQn.rst @@ -0,0 +1,2 @@ +Support __rmod__ for subclasses of str being called before str.__mod__. +Patch by Martijn Pieters. diff --git a/Misc/NEWS.d/next/Core and Builtins/0433.bpo-29684.wTgEoh.rst b/Misc/NEWS.d/next/Core and Builtins/0433.bpo-29684.wTgEoh.rst new file mode 100644 index 0000000..738e3fc --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0433.bpo-29684.wTgEoh.rst @@ -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.d/next/Core and Builtins/0434.bpo-29683.G5iS-P.rst b/Misc/NEWS.d/next/Core and Builtins/0434.bpo-29683.G5iS-P.rst new file mode 100644 index 0000000..00abe05 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0434.bpo-29683.G5iS-P.rst @@ -0,0 +1 @@ +Fixes to memory allocation in _PyCode_SetExtra. Patch by Brian Coleman. diff --git a/Misc/NEWS.d/next/Core and Builtins/0435.bpo-28876.cU-sGT.rst b/Misc/NEWS.d/next/Core and Builtins/0435.bpo-28876.cU-sGT.rst new file mode 100644 index 0000000..76c09e3 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0435.bpo-28876.cU-sGT.rst @@ -0,0 +1 @@ +``bool(range)`` works even if ``len(range)`` raises :exc:`OverflowError`. diff --git a/Misc/NEWS.d/next/Core and Builtins/0436.bpo-28893.WTKnpj.rst b/Misc/NEWS.d/next/Core and Builtins/0436.bpo-28893.WTKnpj.rst new file mode 100644 index 0000000..15b74e7 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0436.bpo-28893.WTKnpj.rst @@ -0,0 +1,2 @@ +Set correct __cause__ for errors about invalid awaitables returned from +__aiter__ and __anext__. diff --git a/Misc/NEWS.d/next/Core and Builtins/0437.bpo-29695.z75xXa.rst b/Misc/NEWS.d/next/Core and Builtins/0437.bpo-29695.z75xXa.rst new file mode 100644 index 0000000..66dde19 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0437.bpo-29695.z75xXa.rst @@ -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.d/next/Core and Builtins/0438.bpo-29714.z-BhVd.rst b/Misc/NEWS.d/next/Core and Builtins/0438.bpo-29714.z-BhVd.rst new file mode 100644 index 0000000..26e5208 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0438.bpo-29714.z-BhVd.rst @@ -0,0 +1,2 @@ +Fix a regression that bytes format may fail when containing zero bytes +inside. diff --git a/Misc/NEWS.d/next/Core and Builtins/0439.bpo-29568.3EtOC-.rst b/Misc/NEWS.d/next/Core and Builtins/0439.bpo-29568.3EtOC-.rst new file mode 100644 index 0000000..d2d1fd5 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0439.bpo-29568.3EtOC-.rst @@ -0,0 +1,2 @@ +Escaped percent "%%" in the format string for classic string formatting no +longer allows any characters between two percents. diff --git a/Misc/NEWS.d/next/Core and Builtins/0440.bpo-29723.M5omgP.rst b/Misc/NEWS.d/next/Core and Builtins/0440.bpo-29723.M5omgP.rst new file mode 100644 index 0000000..c8e9298 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0440.bpo-29723.M5omgP.rst @@ -0,0 +1,7 @@ +The ``sys.path[0]`` initialization change for bpo-29139 caused a regression +by revealing an inconsistency in how sys.path is initialized when executing +``__main__`` from a zipfile, directory, or other import location. The +interpreter now consistently avoids ever adding the import location's parent +directory to ``sys.path``, and ensures no other ``sys.path`` entries are +inadvertently modified when inserting the import location named on the +command line. diff --git a/Misc/NEWS.d/next/Core and Builtins/0441.bpo-28856.AFRmo4.rst b/Misc/NEWS.d/next/Core and Builtins/0441.bpo-28856.AFRmo4.rst new file mode 100644 index 0000000..753f0a4 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0441.bpo-28856.AFRmo4.rst @@ -0,0 +1,2 @@ +Fix an oversight that %b format for bytes should support objects follow the +buffer protocol. diff --git a/Misc/NEWS.d/next/Core and Builtins/0442.bpo-29849.hafvBD.rst b/Misc/NEWS.d/next/Core and Builtins/0442.bpo-29849.hafvBD.rst new file mode 100644 index 0000000..0d7901e --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0442.bpo-29849.hafvBD.rst @@ -0,0 +1 @@ +Fix a memory leak when an ImportError is raised during from import. diff --git a/Misc/NEWS.d/next/Core and Builtins/0443.bpo-29859.Z1MLcA.rst b/Misc/NEWS.d/next/Core and Builtins/0443.bpo-29859.Z1MLcA.rst new file mode 100644 index 0000000..e40d8ca --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0443.bpo-29859.Z1MLcA.rst @@ -0,0 +1,2 @@ +Show correct error messages when any of the pthread_* calls in +thread_pthread.h fails. diff --git a/Misc/NEWS.d/next/Core and Builtins/0444.bpo-29894.Vev6t-.rst b/Misc/NEWS.d/next/Core and Builtins/0444.bpo-29894.Vev6t-.rst new file mode 100644 index 0000000..850d91c --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0444.bpo-29894.Vev6t-.rst @@ -0,0 +1,3 @@ +The deprecation warning is emitted if __complex__ returns an instance of a +strict subclass of complex. In a future versions of Python this can be an +error. diff --git a/Misc/NEWS.d/next/Core and Builtins/0445.bpo-29102.AW4YPj.rst b/Misc/NEWS.d/next/Core and Builtins/0445.bpo-29102.AW4YPj.rst new file mode 100644 index 0000000..8576892 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0445.bpo-29102.AW4YPj.rst @@ -0,0 +1,2 @@ +Add a unique ID to PyInterpreterState. This makes it easier to identify +each subinterpreter. diff --git a/Misc/NEWS.d/next/Core and Builtins/0446.bpo-24821.4DINGV.rst b/Misc/NEWS.d/next/Core and Builtins/0446.bpo-24821.4DINGV.rst new file mode 100644 index 0000000..70a683b --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0446.bpo-24821.4DINGV.rst @@ -0,0 +1,2 @@ +Fixed the slowing down to 25 times in the searching of some unlucky Unicode +characters. diff --git a/Misc/NEWS.d/next/Core and Builtins/0447.bpo-29816.0H75Nl.rst b/Misc/NEWS.d/next/Core and Builtins/0447.bpo-29816.0H75Nl.rst new file mode 100644 index 0000000..fc1044e --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0447.bpo-29816.0H75Nl.rst @@ -0,0 +1,3 @@ +Shift operation now has less opportunity to raise OverflowError. ValueError +always is raised rather than OverflowError for negative counts. Shifting +zero with non-negative count always returns zero. diff --git a/Misc/NEWS.d/next/Core and Builtins/0448.bpo-29935.vgjdJo.rst b/Misc/NEWS.d/next/Core and Builtins/0448.bpo-29935.vgjdJo.rst new file mode 100644 index 0000000..6f96cde --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0448.bpo-29935.vgjdJo.rst @@ -0,0 +1,2 @@ +Fixed error messages in the index() method of tuple, list and deque when +pass indices of wrong type. diff --git a/Misc/NEWS.d/next/Core and Builtins/0449.bpo-29949.DevGPS.rst b/Misc/NEWS.d/next/Core and Builtins/0449.bpo-29949.DevGPS.rst new file mode 100644 index 0000000..92f50cc --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0449.bpo-29949.DevGPS.rst @@ -0,0 +1 @@ +Fix memory usage regression of set and frozenset object. diff --git a/Misc/NEWS.d/next/Core and Builtins/0450.bpo-29914.nqFSRR.rst b/Misc/NEWS.d/next/Core and Builtins/0450.bpo-29914.nqFSRR.rst new file mode 100644 index 0000000..4351b4a --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0450.bpo-29914.nqFSRR.rst @@ -0,0 +1,3 @@ +Fixed default implementations of __reduce__ and __reduce_ex__(). +object.__reduce__() no longer takes arguments, object.__reduce_ex__() now +requires one argument. diff --git a/Misc/NEWS.d/next/Core and Builtins/0451.bpo-11913.5uiMX9.rst b/Misc/NEWS.d/next/Core and Builtins/0451.bpo-11913.5uiMX9.rst new file mode 100644 index 0000000..cf3975a --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0451.bpo-11913.5uiMX9.rst @@ -0,0 +1,2 @@ +README.rst is now included in the list of distutils standard READMEs and +therefore included in source distributions. diff --git a/Misc/NEWS.d/next/Core and Builtins/0452.bpo-29839.rUmfay.rst b/Misc/NEWS.d/next/Core and Builtins/0452.bpo-29839.rUmfay.rst new file mode 100644 index 0000000..f047dd1 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0452.bpo-29839.rUmfay.rst @@ -0,0 +1,2 @@ +len() now raises ValueError rather than OverflowError if __len__() returned +a large negative integer. diff --git a/Misc/NEWS.d/next/Core and Builtins/0453.bpo-12414.T9ix8O.rst b/Misc/NEWS.d/next/Core and Builtins/0453.bpo-12414.T9ix8O.rst new file mode 100644 index 0000000..e57890d --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0453.bpo-12414.T9ix8O.rst @@ -0,0 +1,2 @@ +sys.getsizeof() on a code object now returns the sizes which includes the +code struct and sizes of objects which it references. Patch by Dong-hee Na. diff --git a/Misc/NEWS.d/next/Core and Builtins/0454.bpo-30024.kSOlED.rst b/Misc/NEWS.d/next/Core and Builtins/0454.bpo-30024.kSOlED.rst new file mode 100644 index 0000000..ffaeee9 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0454.bpo-30024.kSOlED.rst @@ -0,0 +1,2 @@ +Circular imports involving absolute imports with binding a submodule to a +name are now supported. diff --git a/Misc/NEWS.d/next/Core and Builtins/0455.bpo-28974.jVewS0.rst b/Misc/NEWS.d/next/Core and Builtins/0455.bpo-28974.jVewS0.rst new file mode 100644 index 0000000..9611dbb --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0455.bpo-28974.jVewS0.rst @@ -0,0 +1,2 @@ +``object.__format__(x, '')`` is now equivalent to ``str(x)`` rather than +``format(str(self), '')``. diff --git a/Misc/NEWS.d/next/Core and Builtins/0456.bpo-30039.e0u4DG.rst b/Misc/NEWS.d/next/Core and Builtins/0456.bpo-30039.e0u4DG.rst new file mode 100644 index 0000000..8884a9a --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0456.bpo-30039.e0u4DG.rst @@ -0,0 +1,3 @@ +If a KeyboardInterrupt happens when the interpreter is in the middle of +resuming a chain of nested 'yield from' or 'await' calls, it's now correctly +delivered to the innermost frame. diff --git a/Misc/NEWS.d/next/Core and Builtins/0457.bpo-25794.xfPwqm.rst b/Misc/NEWS.d/next/Core and Builtins/0457.bpo-25794.xfPwqm.rst new file mode 100644 index 0000000..de46584 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0457.bpo-25794.xfPwqm.rst @@ -0,0 +1,2 @@ +Fixed type.__setattr__() and type.__delattr__() for non-interned attribute +names. Based on patch by Eryk Sun. diff --git a/Misc/NEWS.d/next/Core and Builtins/0458.bpo-27945.p29r3O.rst b/Misc/NEWS.d/next/Core and Builtins/0458.bpo-27945.p29r3O.rst new file mode 100644 index 0000000..da5b8d1 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0458.bpo-27945.p29r3O.rst @@ -0,0 +1,3 @@ +Fixed various segfaults with dict when input collections are mutated during +searching, inserting or comparing. Based on patches by Duane Griffin and +Tim Mitchell. diff --git a/Misc/NEWS.d/next/Core and Builtins/0459.bpo-29104.u26yCx.rst b/Misc/NEWS.d/next/Core and Builtins/0459.bpo-29104.u26yCx.rst new file mode 100644 index 0000000..45e0fa1 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0459.bpo-29104.u26yCx.rst @@ -0,0 +1 @@ +Fixed parsing backslashes in f-strings. diff --git a/Misc/NEWS.d/next/Core and Builtins/0460.bpo-25324.l12VjO.rst b/Misc/NEWS.d/next/Core and Builtins/0460.bpo-25324.l12VjO.rst new file mode 100644 index 0000000..1502523 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0460.bpo-25324.l12VjO.rst @@ -0,0 +1,3 @@ +Tokens needed for parsing in Python moved to C. ``COMMENT``, ``NL`` and +``ENCODING``. This way the tokens and tok_names in the token module don't +get changed when you import the tokenize module. diff --git a/Misc/NEWS.d/next/Core and Builtins/0461.bpo-30537.sGC27r.rst b/Misc/NEWS.d/next/Core and Builtins/0461.bpo-30537.sGC27r.rst new file mode 100644 index 0000000..2f042ab --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0461.bpo-30537.sGC27r.rst @@ -0,0 +1,2 @@ +itertools.islice now accepts integer-like objects (having an __index__ +method) as start, stop, and slice arguments diff --git a/Misc/NEWS.d/next/Core and Builtins/0462.bpo-30486.KZi3nB.rst b/Misc/NEWS.d/next/Core and Builtins/0462.bpo-30486.KZi3nB.rst new file mode 100644 index 0000000..f081dfd --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0462.bpo-30486.KZi3nB.rst @@ -0,0 +1 @@ +Allows setting cell values for __closure__. Patch by Lisa Roach. diff --git a/Misc/NEWS.d/next/Core and Builtins/0463.bpo-28180.f_IHor.rst b/Misc/NEWS.d/next/Core and Builtins/0463.bpo-28180.f_IHor.rst new file mode 100644 index 0000000..00341e0 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0463.bpo-28180.f_IHor.rst @@ -0,0 +1,4 @@ +Implement PEP 538 (legacy C locale coercion). This means that when a +suitable coercion target locale is available, both the core interpreter and +locale-aware C extensions will assume the use of UTF-8 as the default text +encoding, rather than ASCII. diff --git a/Misc/NEWS.d/next/Core and Builtins/0464.bpo-30501.BWJByG.rst b/Misc/NEWS.d/next/Core and Builtins/0464.bpo-30501.BWJByG.rst new file mode 100644 index 0000000..2e8c39d --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0464.bpo-30501.BWJByG.rst @@ -0,0 +1,3 @@ +The compiler now produces more optimal code for complex condition +expressions in the "if", "while" and "assert" statement, the "if" +expression, and generator expressions and comprehensions. diff --git a/Misc/NEWS.d/next/Core and Builtins/0465.bpo-30682.zZm88E.rst b/Misc/NEWS.d/next/Core and Builtins/0465.bpo-30682.zZm88E.rst new file mode 100644 index 0000000..ad0bde2 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0465.bpo-30682.zZm88E.rst @@ -0,0 +1,2 @@ +Removed a too-strict assertion that failed for certain f-strings, such as +eval("f'\\\n'") and eval("f'\\\r'"). diff --git a/Misc/NEWS.d/next/Core and Builtins/0466.bpo-30597.7erHiP.rst b/Misc/NEWS.d/next/Core and Builtins/0466.bpo-30597.7erHiP.rst new file mode 100644 index 0000000..0114fee --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0466.bpo-30597.7erHiP.rst @@ -0,0 +1,2 @@ +``print`` now shows expected input in custom error message when used as a +Python 2 statement. Patch by Sanyam Khurana. diff --git a/Misc/NEWS.d/next/Core and Builtins/0467.bpo-30604.zGPGoX.rst b/Misc/NEWS.d/next/Core and Builtins/0467.bpo-30604.zGPGoX.rst new file mode 100644 index 0000000..3ec21b4 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0467.bpo-30604.zGPGoX.rst @@ -0,0 +1 @@ +Move co_extra_freefuncs from per-thread to per-interpreter to avoid crashes. diff --git a/Misc/NEWS.d/next/Core and Builtins/0468.bpo-30736.kA4J9v.rst b/Misc/NEWS.d/next/Core and Builtins/0468.bpo-30736.kA4J9v.rst new file mode 100644 index 0000000..07d6ceb --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0468.bpo-30736.kA4J9v.rst @@ -0,0 +1 @@ +The internal unicodedata database has been upgraded to Unicode 10.0. diff --git a/Misc/NEWS.d/next/Core and Builtins/0469.bpo-30814.HcYsfM.rst b/Misc/NEWS.d/next/Core and Builtins/0469.bpo-30814.HcYsfM.rst new file mode 100644 index 0000000..8d63a46 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0469.bpo-30814.HcYsfM.rst @@ -0,0 +1 @@ +Fixed a race condition when import a submodule from a package. diff --git a/Misc/NEWS.d/next/Core and Builtins/0470.bpo-31161.FcUAA0.rst b/Misc/NEWS.d/next/Core and Builtins/0470.bpo-31161.FcUAA0.rst new file mode 100644 index 0000000..3ecd404 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/0470.bpo-31161.FcUAA0.rst @@ -0,0 +1,2 @@ +Make sure the 'Missing parentheses' syntax error message is only applied to +SyntaxError, not to subclasses. Patch by Martijn Pieters. diff --git a/Misc/NEWS.d/next/Documentation/0051.bpo-28513.L3joAz.rst b/Misc/NEWS.d/next/Documentation/0051.bpo-28513.L3joAz.rst new file mode 100644 index 0000000..b758724 --- /dev/null +++ b/Misc/NEWS.d/next/Documentation/0051.bpo-28513.L3joAz.rst @@ -0,0 +1 @@ +Documented command-line interface of zipfile. diff --git a/Misc/NEWS.d/next/Documentation/0052.bpo-23722.nFjY3C.rst b/Misc/NEWS.d/next/Documentation/0052.bpo-23722.nFjY3C.rst new file mode 100644 index 0000000..4708fb2 --- /dev/null +++ b/Misc/NEWS.d/next/Documentation/0052.bpo-23722.nFjY3C.rst @@ -0,0 +1,3 @@ +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()``. diff --git a/Misc/NEWS.d/next/Documentation/0053.bpo-29349.PjSo-t.rst b/Misc/NEWS.d/next/Documentation/0053.bpo-29349.PjSo-t.rst new file mode 100644 index 0000000..09f6f38 --- /dev/null +++ b/Misc/NEWS.d/next/Documentation/0053.bpo-29349.PjSo-t.rst @@ -0,0 +1 @@ +Fix Python 2 syntax in code for building the documentation. diff --git a/Misc/NEWS.d/next/Documentation/0054.bpo-26355.SDq_8Y.rst b/Misc/NEWS.d/next/Documentation/0054.bpo-26355.SDq_8Y.rst new file mode 100644 index 0000000..2614c0b --- /dev/null +++ b/Misc/NEWS.d/next/Documentation/0054.bpo-26355.SDq_8Y.rst @@ -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.d/next/Documentation/0055.bpo-25008.CeIzyU.rst b/Misc/NEWS.d/next/Documentation/0055.bpo-25008.CeIzyU.rst new file mode 100644 index 0000000..ea4046e --- /dev/null +++ b/Misc/NEWS.d/next/Documentation/0055.bpo-25008.CeIzyU.rst @@ -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.d/next/Documentation/0056.bpo-28929.Md7kb0.rst b/Misc/NEWS.d/next/Documentation/0056.bpo-28929.Md7kb0.rst new file mode 100644 index 0000000..acacdd0 --- /dev/null +++ b/Misc/NEWS.d/next/Documentation/0056.bpo-28929.Md7kb0.rst @@ -0,0 +1 @@ +Link the documentation to its source file on GitHub. diff --git a/Misc/NEWS.d/next/Documentation/0057.bpo-19824.We9an6.rst b/Misc/NEWS.d/next/Documentation/0057.bpo-19824.We9an6.rst new file mode 100644 index 0000000..3410f70 --- /dev/null +++ b/Misc/NEWS.d/next/Documentation/0057.bpo-19824.We9an6.rst @@ -0,0 +1,3 @@ +Improve the documentation for, and links to, template strings by emphasizing +their utility for internationalization, and by clarifying some usage +constraints. (See also: bpo-20314, bpo-12518) diff --git a/Misc/NEWS.d/next/Documentation/0058.bpo-26985.NB5_9S.rst b/Misc/NEWS.d/next/Documentation/0058.bpo-26985.NB5_9S.rst new file mode 100644 index 0000000..3413e05 --- /dev/null +++ b/Misc/NEWS.d/next/Documentation/0058.bpo-26985.NB5_9S.rst @@ -0,0 +1 @@ +Add missing info of code object in inspect documentation. diff --git a/Misc/NEWS.d/next/Documentation/0059.bpo-30052.TpmpaF.rst b/Misc/NEWS.d/next/Documentation/0059.bpo-30052.TpmpaF.rst new file mode 100644 index 0000000..fe8eb2a --- /dev/null +++ b/Misc/NEWS.d/next/Documentation/0059.bpo-30052.TpmpaF.rst @@ -0,0 +1,8 @@ +the link targets for :func:`bytes` and :func:`bytearray` are now their +respective type definitions, rather than the corresponding builtin function +entries. Use :ref:`bytes <func-bytes>` and :ref:`bytearray <func-bytearray>` +to reference the latter. + +In order to ensure this and future cross-reference updates are applied +automatically, the daily documentation builds now disable the default output +caching features in Sphinx. diff --git a/Misc/NEWS.d/next/Documentation/0060.bpo-30176.VivmCg.rst b/Misc/NEWS.d/next/Documentation/0060.bpo-30176.VivmCg.rst new file mode 100644 index 0000000..df73aed --- /dev/null +++ b/Misc/NEWS.d/next/Documentation/0060.bpo-30176.VivmCg.rst @@ -0,0 +1 @@ +Add missing attribute related constants in curses documentation. diff --git a/Misc/NEWS.d/next/IDLE/0089.bpo-28572.1_duKY.rst b/Misc/NEWS.d/next/IDLE/0089.bpo-28572.1_duKY.rst new file mode 100644 index 0000000..efc3bc8 --- /dev/null +++ b/Misc/NEWS.d/next/IDLE/0089.bpo-28572.1_duKY.rst @@ -0,0 +1,2 @@ +Add 10% to coverage of IDLE's test_configdialog. Update and augment +description of the configuration system. diff --git a/Misc/NEWS.d/next/IDLE/0090.bpo-29071.FCOpJn.rst b/Misc/NEWS.d/next/IDLE/0090.bpo-29071.FCOpJn.rst new file mode 100644 index 0000000..504d803 --- /dev/null +++ b/Misc/NEWS.d/next/IDLE/0090.bpo-29071.FCOpJn.rst @@ -0,0 +1 @@ +IDLE colors f-string prefixes (but not invalid ur prefixes). diff --git a/Misc/NEWS.d/next/IDLE/0091.bpo-30303.2L2F-4.rst b/Misc/NEWS.d/next/IDLE/0091.bpo-30303.2L2F-4.rst new file mode 100644 index 0000000..3c30eb8 --- /dev/null +++ b/Misc/NEWS.d/next/IDLE/0091.bpo-30303.2L2F-4.rst @@ -0,0 +1,2 @@ +Add _utest option to textview; add new tests. Increase coverage to 100%. +Patches by Louie Lu and Terry Jan Reedy. diff --git a/Misc/NEWS.d/next/IDLE/0092.bpo-30290.fZ3kod.rst b/Misc/NEWS.d/next/IDLE/0092.bpo-30290.fZ3kod.rst new file mode 100644 index 0000000..fb4e25f --- /dev/null +++ b/Misc/NEWS.d/next/IDLE/0092.bpo-30290.fZ3kod.rst @@ -0,0 +1,2 @@ +Help-about: use pep8 names and add tests. Increase coverage to 100%. Patches +by Louie Lu, Cheryl Sabella, and Terry Jan Reedy. diff --git a/Misc/NEWS.d/next/IDLE/0093.bpo-30495.I3i5vL.rst b/Misc/NEWS.d/next/IDLE/0093.bpo-30495.I3i5vL.rst new file mode 100644 index 0000000..13ac32b --- /dev/null +++ b/Misc/NEWS.d/next/IDLE/0093.bpo-30495.I3i5vL.rst @@ -0,0 +1,2 @@ +Add docstrings for textview.py and use PEP8 names. Patches by Cheryl Sabella +and Terry Jan Reedy. diff --git a/Misc/NEWS.d/next/IDLE/0094.bpo-30642.3Zujzt.rst b/Misc/NEWS.d/next/IDLE/0094.bpo-30642.3Zujzt.rst new file mode 100644 index 0000000..ac6b515 --- /dev/null +++ b/Misc/NEWS.d/next/IDLE/0094.bpo-30642.3Zujzt.rst @@ -0,0 +1 @@ +Fix reference leaks in IDLE tests. Patches by Louie Lu and Terry Jan Reedy. diff --git a/Misc/NEWS.d/next/IDLE/0095.bpo-25514.882pXa.rst b/Misc/NEWS.d/next/IDLE/0095.bpo-25514.882pXa.rst new file mode 100644 index 0000000..b92e6f9 --- /dev/null +++ b/Misc/NEWS.d/next/IDLE/0095.bpo-25514.882pXa.rst @@ -0,0 +1,2 @@ +Add doc subsubsection about IDLE failure to start. Popup no-connection +message directs users to this section. diff --git a/Misc/NEWS.d/next/IDLE/0096.bpo-15786._XRbaR.rst b/Misc/NEWS.d/next/IDLE/0096.bpo-15786._XRbaR.rst new file mode 100644 index 0000000..1c8141e --- /dev/null +++ b/Misc/NEWS.d/next/IDLE/0096.bpo-15786._XRbaR.rst @@ -0,0 +1,4 @@ +Fix several problems with IDLE's autocompletion box. The following should +now work: clicking on selection box items; using the scrollbar; selecting an +item by hitting Return. Hangs on MacOSX should no longer happen. Patch by +Louie Lu. diff --git a/Misc/NEWS.d/next/Library/0097.bpo-30177.JGIJNL.rst b/Misc/NEWS.d/next/Library/0097.bpo-30177.JGIJNL.rst new file mode 100644 index 0000000..8c0674a --- /dev/null +++ b/Misc/NEWS.d/next/Library/0097.bpo-30177.JGIJNL.rst @@ -0,0 +1,2 @@ +path.resolve(strict=False) no longer cuts the path after the first element +not present in the filesystem. Patch by Antoine Pietri. diff --git a/Misc/NEWS.d/next/Library/0098.bpo-25532.ey4Yez.rst b/Misc/NEWS.d/next/Library/0098.bpo-25532.ey4Yez.rst new file mode 100644 index 0000000..8146dcd --- /dev/null +++ b/Misc/NEWS.d/next/Library/0098.bpo-25532.ey4Yez.rst @@ -0,0 +1,3 @@ +inspect.unwrap() will now only try to unwrap an object +sys.getrecursionlimit() times, to protect against objects which create a new +object on every attribute access. diff --git a/Misc/NEWS.d/next/Library/0099.bpo-29581.gHCrxP.rst b/Misc/NEWS.d/next/Library/0099.bpo-29581.gHCrxP.rst new file mode 100644 index 0000000..10b11a4 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0099.bpo-29581.gHCrxP.rst @@ -0,0 +1,2 @@ +ABCMeta.__new__ now accepts ``**kwargs``, allowing abstract base classes to +use keyword parameters in __init_subclass__. Patch by Nate Soares. diff --git a/Misc/NEWS.d/next/Library/0100.bpo-24142.IrZnFs.rst b/Misc/NEWS.d/next/Library/0100.bpo-24142.IrZnFs.rst new file mode 100644 index 0000000..be376cd --- /dev/null +++ b/Misc/NEWS.d/next/Library/0100.bpo-24142.IrZnFs.rst @@ -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.d/next/Library/0101.bpo-27972.ZK-GFm.rst b/Misc/NEWS.d/next/Library/0101.bpo-27972.ZK-GFm.rst new file mode 100644 index 0000000..6ffaab0 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0101.bpo-27972.ZK-GFm.rst @@ -0,0 +1 @@ +Prohibit Tasks to await on themselves. diff --git a/Misc/NEWS.d/next/Library/0102.bpo-28399.QKIqRX.rst b/Misc/NEWS.d/next/Library/0102.bpo-28399.QKIqRX.rst new file mode 100644 index 0000000..f3becad --- /dev/null +++ b/Misc/NEWS.d/next/Library/0102.bpo-28399.QKIqRX.rst @@ -0,0 +1 @@ +Remove UNIX socket from FS before binding. Patch by Коренберг Марк. diff --git a/Misc/NEWS.d/next/Library/0103.bpo-28372.njcIPk.rst b/Misc/NEWS.d/next/Library/0103.bpo-28372.njcIPk.rst new file mode 100644 index 0000000..9adfb94 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0103.bpo-28372.njcIPk.rst @@ -0,0 +1 @@ +Fix asyncio to support formatting of non-python coroutines. diff --git a/Misc/NEWS.d/next/Library/0104.bpo-28371.U9Zqdk.rst b/Misc/NEWS.d/next/Library/0104.bpo-28371.U9Zqdk.rst new file mode 100644 index 0000000..bf3594a --- /dev/null +++ b/Misc/NEWS.d/next/Library/0104.bpo-28371.U9Zqdk.rst @@ -0,0 +1 @@ +Deprecate passing asyncio.Handles to run_in_executor. diff --git a/Misc/NEWS.d/next/Library/0105.bpo-28370.18jBuZ.rst b/Misc/NEWS.d/next/Library/0105.bpo-28370.18jBuZ.rst new file mode 100644 index 0000000..5a8ab80 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0105.bpo-28370.18jBuZ.rst @@ -0,0 +1 @@ +Speedup asyncio.StreamReader.readexactly. Patch by Коренберг Марк. diff --git a/Misc/NEWS.d/next/Library/0106.bpo-28369.8DTANe.rst b/Misc/NEWS.d/next/Library/0106.bpo-28369.8DTANe.rst new file mode 100644 index 0000000..62d5f45 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0106.bpo-28369.8DTANe.rst @@ -0,0 +1,2 @@ +Raise RuntimeError when transport's FD is used with add_reader, add_writer, +etc. diff --git a/Misc/NEWS.d/next/Library/0107.bpo-28368.n594X4.rst b/Misc/NEWS.d/next/Library/0107.bpo-28368.n594X4.rst new file mode 100644 index 0000000..3385265 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0107.bpo-28368.n594X4.rst @@ -0,0 +1,2 @@ +Refuse monitoring processes if the child watcher has no loop attached. Patch +by Vincent Michel. diff --git a/Misc/NEWS.d/next/Library/0108.bpo-28325.wAHmnK.rst b/Misc/NEWS.d/next/Library/0108.bpo-28325.wAHmnK.rst new file mode 100644 index 0000000..8a53daa --- /dev/null +++ b/Misc/NEWS.d/next/Library/0108.bpo-28325.wAHmnK.rst @@ -0,0 +1 @@ +Remove vestigial MacOS 9 macurl2path module and its tests. diff --git a/Misc/NEWS.d/next/Library/0109.bpo-27759.qpMDGq.rst b/Misc/NEWS.d/next/Library/0109.bpo-27759.qpMDGq.rst new file mode 100644 index 0000000..f262c84 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0109.bpo-27759.qpMDGq.rst @@ -0,0 +1,2 @@ +Fix selectors incorrectly retain invalid file descriptors. Patch by Mark +Williams. diff --git a/Misc/NEWS.d/next/Library/0110.bpo-28176.sU8R6L.rst b/Misc/NEWS.d/next/Library/0110.bpo-28176.sU8R6L.rst new file mode 100644 index 0000000..79bdb48 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0110.bpo-28176.sU8R6L.rst @@ -0,0 +1 @@ +Fix callbacks race in asyncio.SelectorLoop.sock_connect. diff --git a/Misc/NEWS.d/next/Library/0111.bpo-26909.ASiakT.rst b/Misc/NEWS.d/next/Library/0111.bpo-26909.ASiakT.rst new file mode 100644 index 0000000..1add3dd --- /dev/null +++ b/Misc/NEWS.d/next/Library/0111.bpo-26909.ASiakT.rst @@ -0,0 +1 @@ +Fix slow pipes IO in asyncio. Patch by INADA Naoki. diff --git a/Misc/NEWS.d/next/Library/0112.bpo-26654.XtzTE9.rst b/Misc/NEWS.d/next/Library/0112.bpo-26654.XtzTE9.rst new file mode 100644 index 0000000..81f3f52 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0112.bpo-26654.XtzTE9.rst @@ -0,0 +1 @@ +Inspect functools.partial in asyncio.Handle.__repr__. Patch by iceboy. diff --git a/Misc/NEWS.d/next/Library/0113.bpo-28174.CV1UdI.rst b/Misc/NEWS.d/next/Library/0113.bpo-28174.CV1UdI.rst new file mode 100644 index 0000000..e67ba96 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0113.bpo-28174.CV1UdI.rst @@ -0,0 +1,2 @@ +Handle when SO_REUSEPORT isn't properly supported. Patch by Seth Michael +Larson. diff --git a/Misc/NEWS.d/next/Library/0114.bpo-27906.TBBXrv.rst b/Misc/NEWS.d/next/Library/0114.bpo-27906.TBBXrv.rst new file mode 100644 index 0000000..9e261cc --- /dev/null +++ b/Misc/NEWS.d/next/Library/0114.bpo-27906.TBBXrv.rst @@ -0,0 +1 @@ +Fix socket accept exhaustion during high TCP traffic. Patch by Kevin Conway. diff --git a/Misc/NEWS.d/next/Library/0115.bpo-27599.itvm8T.rst b/Misc/NEWS.d/next/Library/0115.bpo-27599.itvm8T.rst new file mode 100644 index 0000000..7190550 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0115.bpo-27599.itvm8T.rst @@ -0,0 +1 @@ +Fixed buffer overrun in binascii.b2a_qp() and binascii.a2b_qp(). diff --git a/Misc/NEWS.d/next/Library/0116.bpo-28114.gmFXsA.rst b/Misc/NEWS.d/next/Library/0116.bpo-28114.gmFXsA.rst new file mode 100644 index 0000000..9c567f0 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0116.bpo-28114.gmFXsA.rst @@ -0,0 +1,2 @@ +Fix a crash in parse_envlist() when env contains byte strings. Patch by Eryk +Sun. diff --git a/Misc/NEWS.d/next/Library/0117.bpo-25895.j92qoQ.rst b/Misc/NEWS.d/next/Library/0117.bpo-25895.j92qoQ.rst new file mode 100644 index 0000000..8690675 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0117.bpo-25895.j92qoQ.rst @@ -0,0 +1,2 @@ +Enable WebSocket URL schemes in urllib.parse.urljoin. Patch by Gergely Imreh +and Markus Holtermann. diff --git a/Misc/NEWS.d/next/Library/0118.bpo-28181.NGc4Yv.rst b/Misc/NEWS.d/next/Library/0118.bpo-28181.NGc4Yv.rst new file mode 100644 index 0000000..104fa1a --- /dev/null +++ b/Misc/NEWS.d/next/Library/0118.bpo-28181.NGc4Yv.rst @@ -0,0 +1 @@ +Get antigravity over HTTPS. Patch by Kaartic Sivaraam. diff --git a/Misc/NEWS.d/next/Library/0119.bpo-25270.jrZruM.rst b/Misc/NEWS.d/next/Library/0119.bpo-25270.jrZruM.rst new file mode 100644 index 0000000..fe11915 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0119.bpo-25270.jrZruM.rst @@ -0,0 +1,2 @@ +Prevent codecs.escape_encode() from raising SystemError when an empty +bytestring is passed. diff --git a/Misc/NEWS.d/next/Library/0120.bpo-22493.Mv_hZf.rst b/Misc/NEWS.d/next/Library/0120.bpo-22493.Mv_hZf.rst new file mode 100644 index 0000000..fedd5a5 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0120.bpo-22493.Mv_hZf.rst @@ -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.d/next/Library/0121.bpo-28075.aLiUs9.rst b/Misc/NEWS.d/next/Library/0121.bpo-28075.aLiUs9.rst new file mode 100644 index 0000000..8a44468 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0121.bpo-28075.aLiUs9.rst @@ -0,0 +1,2 @@ +Check for ERROR_ACCESS_DENIED in Windows implementation of os.stat(). Patch +by Eryk Sun. diff --git a/Misc/NEWS.d/next/Library/0122.bpo-0.iPpjqX.rst b/Misc/NEWS.d/next/Library/0122.bpo-0.iPpjqX.rst new file mode 100644 index 0000000..8dd432b --- /dev/null +++ b/Misc/NEWS.d/next/Library/0122.bpo-0.iPpjqX.rst @@ -0,0 +1 @@ +Fix UnboundLocalError in socket._sendfile_use_sendfile. diff --git a/Misc/NEWS.d/next/Library/0123.bpo-27932.mtgl-6.rst b/Misc/NEWS.d/next/Library/0123.bpo-27932.mtgl-6.rst new file mode 100644 index 0000000..d60eefe --- /dev/null +++ b/Misc/NEWS.d/next/Library/0123.bpo-27932.mtgl-6.rst @@ -0,0 +1 @@ +Prevent memory leak in win32_ver(). diff --git a/Misc/NEWS.d/next/Library/0124.bpo-25400.d9Qn0E.rst b/Misc/NEWS.d/next/Library/0124.bpo-25400.d9Qn0E.rst new file mode 100644 index 0000000..60180e7 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0124.bpo-25400.d9Qn0E.rst @@ -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.d/next/Library/0125.bpo-28200.4IEbr7.rst b/Misc/NEWS.d/next/Library/0125.bpo-28200.4IEbr7.rst new file mode 100644 index 0000000..8cb460c --- /dev/null +++ b/Misc/NEWS.d/next/Library/0125.bpo-28200.4IEbr7.rst @@ -0,0 +1 @@ +Fix memory leak on Windows in the os module (fix path_converter() function). diff --git a/Misc/NEWS.d/next/Library/0126.bpo-27778.Yyo1aP.rst b/Misc/NEWS.d/next/Library/0126.bpo-27778.Yyo1aP.rst new file mode 100644 index 0000000..8e4d1c9 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0126.bpo-27778.Yyo1aP.rst @@ -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.d/next/Library/0127.bpo-25651.3UhyPo.rst b/Misc/NEWS.d/next/Library/0127.bpo-25651.3UhyPo.rst new file mode 100644 index 0000000..33809ea --- /dev/null +++ b/Misc/NEWS.d/next/Library/0127.bpo-25651.3UhyPo.rst @@ -0,0 +1 @@ +Allow falsy values to be used for msg parameter of subTest(). diff --git a/Misc/NEWS.d/next/Library/0128.bpo-27348.tDx7Vw.rst b/Misc/NEWS.d/next/Library/0128.bpo-27348.tDx7Vw.rst new file mode 100644 index 0000000..846b80a --- /dev/null +++ b/Misc/NEWS.d/next/Library/0128.bpo-27348.tDx7Vw.rst @@ -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.d/next/Library/0129.bpo-27611.A_ArH_.rst b/Misc/NEWS.d/next/Library/0129.bpo-27611.A_ArH_.rst new file mode 100644 index 0000000..0900491 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0129.bpo-27611.A_ArH_.rst @@ -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.d/next/Library/0130.bpo-18893.osiX5c.rst b/Misc/NEWS.d/next/Library/0130.bpo-18893.osiX5c.rst new file mode 100644 index 0000000..3168323 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0130.bpo-18893.osiX5c.rst @@ -0,0 +1,2 @@ +Fix invalid exception handling in Lib/ctypes/macholib/dyld.py. Patch by +Madison May. diff --git a/Misc/NEWS.d/next/Library/0131.bpo-18844.fQsEdn.rst b/Misc/NEWS.d/next/Library/0131.bpo-18844.fQsEdn.rst new file mode 100644 index 0000000..f9fa640 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0131.bpo-18844.fQsEdn.rst @@ -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.d/next/Library/0132.bpo-27897.I0Ppmx.rst b/Misc/NEWS.d/next/Library/0132.bpo-27897.I0Ppmx.rst new file mode 100644 index 0000000..da0793a --- /dev/null +++ b/Misc/NEWS.d/next/Library/0132.bpo-27897.I0Ppmx.rst @@ -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.d/next/Library/0133.bpo-28275.EhWIsz.rst b/Misc/NEWS.d/next/Library/0133.bpo-28275.EhWIsz.rst new file mode 100644 index 0000000..cff7838 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0133.bpo-28275.EhWIsz.rst @@ -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.d/next/Library/0134.bpo-28253.aLfmhe.rst b/Misc/NEWS.d/next/Library/0134.bpo-28253.aLfmhe.rst new file mode 100644 index 0000000..b25f981 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0134.bpo-28253.aLfmhe.rst @@ -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.d/next/Library/0135.bpo-28148.Flzndx.rst b/Misc/NEWS.d/next/Library/0135.bpo-28148.Flzndx.rst new file mode 100644 index 0000000..49304e6 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0135.bpo-28148.Flzndx.rst @@ -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.d/next/Library/0136.bpo-28314.N7YrkN.rst b/Misc/NEWS.d/next/Library/0136.bpo-28314.N7YrkN.rst new file mode 100644 index 0000000..7f9b9af --- /dev/null +++ b/Misc/NEWS.d/next/Library/0136.bpo-28314.N7YrkN.rst @@ -0,0 +1,2 @@ +Fix function declaration (C flags) for the getiterator() method of +xml.etree.ElementTree.Element. diff --git a/Misc/NEWS.d/next/Library/0137.bpo-28226.nMXiwU.rst b/Misc/NEWS.d/next/Library/0137.bpo-28226.nMXiwU.rst new file mode 100644 index 0000000..fc5d14e --- /dev/null +++ b/Misc/NEWS.d/next/Library/0137.bpo-28226.nMXiwU.rst @@ -0,0 +1 @@ +compileall now supports pathlib. diff --git a/Misc/NEWS.d/next/Library/0138.bpo-28228.1qBwdM.rst b/Misc/NEWS.d/next/Library/0138.bpo-28228.1qBwdM.rst new file mode 100644 index 0000000..b3e7ba5 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0138.bpo-28228.1qBwdM.rst @@ -0,0 +1 @@ +imghdr now supports pathlib. diff --git a/Misc/NEWS.d/next/Library/0139.bpo-28322.l9hzap.rst b/Misc/NEWS.d/next/Library/0139.bpo-28322.l9hzap.rst new file mode 100644 index 0000000..5e33ba1 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0139.bpo-28322.l9hzap.rst @@ -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.d/next/Library/0140.bpo-28257.SVD_IH.rst b/Misc/NEWS.d/next/Library/0140.bpo-28257.SVD_IH.rst new file mode 100644 index 0000000..ebf241a --- /dev/null +++ b/Misc/NEWS.d/next/Library/0140.bpo-28257.SVD_IH.rst @@ -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.d/next/Library/0141.bpo-27358.t288Iv.rst b/Misc/NEWS.d/next/Library/0141.bpo-27358.t288Iv.rst new file mode 100644 index 0000000..2ca6fed --- /dev/null +++ b/Misc/NEWS.d/next/Library/0141.bpo-27358.t288Iv.rst @@ -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.d/next/Library/0142.bpo-28332.Ed8fNk.rst b/Misc/NEWS.d/next/Library/0142.bpo-28332.Ed8fNk.rst new file mode 100644 index 0000000..e315ecc --- /dev/null +++ b/Misc/NEWS.d/next/Library/0142.bpo-28332.Ed8fNk.rst @@ -0,0 +1,2 @@ +Deprecated silent truncations in socket.htons and socket.ntohs. Original +patch by Oren Milman. diff --git a/Misc/NEWS.d/next/Library/0143.bpo-28227.7lUz8i.rst b/Misc/NEWS.d/next/Library/0143.bpo-28227.7lUz8i.rst new file mode 100644 index 0000000..eb21cff --- /dev/null +++ b/Misc/NEWS.d/next/Library/0143.bpo-28227.7lUz8i.rst @@ -0,0 +1 @@ +gzip now supports pathlib. Patch by Ethan Furman. diff --git a/Misc/NEWS.d/next/Library/0144.bpo-28225.6N28nu.rst b/Misc/NEWS.d/next/Library/0144.bpo-28225.6N28nu.rst new file mode 100644 index 0000000..6abd1a0 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0144.bpo-28225.6N28nu.rst @@ -0,0 +1 @@ +bz2 module now supports pathlib. Initial patch by Ethan Furman. diff --git a/Misc/NEWS.d/next/Library/0145.bpo-28321.bQ-IIX.rst b/Misc/NEWS.d/next/Library/0145.bpo-28321.bQ-IIX.rst new file mode 100644 index 0000000..69bd193 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0145.bpo-28321.bQ-IIX.rst @@ -0,0 +1 @@ +Fixed writing non-BMP characters with binary format in plistlib. diff --git a/Misc/NEWS.d/next/Library/0146.bpo-28229.BKAxcS.rst b/Misc/NEWS.d/next/Library/0146.bpo-28229.BKAxcS.rst new file mode 100644 index 0000000..5d2a776 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0146.bpo-28229.BKAxcS.rst @@ -0,0 +1 @@ +lzma module now supports pathlib. diff --git a/Misc/NEWS.d/next/Library/0147.bpo-28380.jKPMzH.rst b/Misc/NEWS.d/next/Library/0147.bpo-28380.jKPMzH.rst new file mode 100644 index 0000000..35d26ae --- /dev/null +++ b/Misc/NEWS.d/next/Library/0147.bpo-28380.jKPMzH.rst @@ -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.d/next/Library/0148.bpo-28317.LgHleA.rst b/Misc/NEWS.d/next/Library/0148.bpo-28317.LgHleA.rst new file mode 100644 index 0000000..3d3a19b --- /dev/null +++ b/Misc/NEWS.d/next/Library/0148.bpo-28317.LgHleA.rst @@ -0,0 +1 @@ +The disassembler now decodes FORMAT_VALUE argument. diff --git a/Misc/NEWS.d/next/Library/0149.bpo-27998.CPhy4H.rst b/Misc/NEWS.d/next/Library/0149.bpo-27998.CPhy4H.rst new file mode 100644 index 0000000..040b4c0 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0149.bpo-27998.CPhy4H.rst @@ -0,0 +1 @@ +Fixed bytes path support in os.scandir() on Windows. Patch by Eryk Sun. diff --git a/Misc/NEWS.d/next/Library/0150.bpo-20766.4kvCzx.rst b/Misc/NEWS.d/next/Library/0150.bpo-20766.4kvCzx.rst new file mode 100644 index 0000000..5495b78 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0150.bpo-20766.4kvCzx.rst @@ -0,0 +1 @@ +Fix references leaked by pdb in the handling of SIGINT handlers. diff --git a/Misc/NEWS.d/next/Library/0151.bpo-24452.pVsjt0.rst b/Misc/NEWS.d/next/Library/0151.bpo-24452.pVsjt0.rst new file mode 100644 index 0000000..26bb026 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0151.bpo-24452.pVsjt0.rst @@ -0,0 +1 @@ +Make webbrowser support Chrome on Mac OS X. Patch by Ned Batchelder. diff --git a/Misc/NEWS.d/next/Library/0152.bpo-0.5Y0ngw.rst b/Misc/NEWS.d/next/Library/0152.bpo-0.5Y0ngw.rst new file mode 100644 index 0000000..c3cf076 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0152.bpo-0.5Y0ngw.rst @@ -0,0 +1,4 @@ +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 <https://github.com/pypa/setuptools/issues/100>`_ for +rationale. diff --git a/Misc/NEWS.d/next/Library/0153.bpo-28240.cXljq-.rst b/Misc/NEWS.d/next/Library/0153.bpo-28240.cXljq-.rst new file mode 100644 index 0000000..d2c24f3 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0153.bpo-28240.cXljq-.rst @@ -0,0 +1,3 @@ +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. diff --git a/Misc/NEWS.d/next/Library/0154.bpo-28240.IwQMgd.rst b/Misc/NEWS.d/next/Library/0154.bpo-28240.IwQMgd.rst new file mode 100644 index 0000000..650c94a --- /dev/null +++ b/Misc/NEWS.d/next/Library/0154.bpo-28240.IwQMgd.rst @@ -0,0 +1,2 @@ +timeit now repeats the benchmarks 5 times instead of only 3 to make +benchmarks more reliable. diff --git a/Misc/NEWS.d/next/Library/0155.bpo-28240.hqzQvS.rst b/Misc/NEWS.d/next/Library/0155.bpo-28240.hqzQvS.rst new file mode 100644 index 0000000..377b3dc --- /dev/null +++ b/Misc/NEWS.d/next/Library/0155.bpo-28240.hqzQvS.rst @@ -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.d/next/Library/0156.bpo-28480.9lHw6m.rst b/Misc/NEWS.d/next/Library/0156.bpo-28480.9lHw6m.rst new file mode 100644 index 0000000..786ff2c --- /dev/null +++ b/Misc/NEWS.d/next/Library/0156.bpo-28480.9lHw6m.rst @@ -0,0 +1 @@ +Fix error building socket module when multithreading is disabled. diff --git a/Misc/NEWS.d/next/Library/0157.bpo-23214.-4Q5Z7.rst b/Misc/NEWS.d/next/Library/0157.bpo-23214.-4Q5Z7.rst new file mode 100644 index 0000000..a09e1d8 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0157.bpo-23214.-4Q5Z7.rst @@ -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.d/next/Library/0158.bpo-28448.5bduWe.rst b/Misc/NEWS.d/next/Library/0158.bpo-28448.5bduWe.rst new file mode 100644 index 0000000..bb3f32b --- /dev/null +++ b/Misc/NEWS.d/next/Library/0158.bpo-28448.5bduWe.rst @@ -0,0 +1 @@ +Fix C implemented asyncio.Future didn't work on Windows. diff --git a/Misc/NEWS.d/next/Library/0159.bpo-18219.1ANQN1.rst b/Misc/NEWS.d/next/Library/0159.bpo-18219.1ANQN1.rst new file mode 100644 index 0000000..cf19d7e --- /dev/null +++ b/Misc/NEWS.d/next/Library/0159.bpo-18219.1ANQN1.rst @@ -0,0 +1,2 @@ +Optimize csv.DictWriter for large number of columns. Patch by Mariatta +Wijaya. diff --git a/Misc/NEWS.d/next/Library/0160.bpo-28115.4FIjIE.rst b/Misc/NEWS.d/next/Library/0160.bpo-28115.4FIjIE.rst new file mode 100644 index 0000000..b8a77f7 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0160.bpo-28115.4FIjIE.rst @@ -0,0 +1,2 @@ +Command-line interface of the zipfile module now uses argparse. Added +support of long options. diff --git a/Misc/NEWS.d/next/Library/0161.bpo-28469.QZW1Np.rst b/Misc/NEWS.d/next/Library/0161.bpo-28469.QZW1Np.rst new file mode 100644 index 0000000..ef2d476 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0161.bpo-28469.QZW1Np.rst @@ -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.d/next/Library/0162.bpo-25953.EKKJAQ.rst b/Misc/NEWS.d/next/Library/0162.bpo-25953.EKKJAQ.rst new file mode 100644 index 0000000..72a8f59 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0162.bpo-25953.EKKJAQ.rst @@ -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.d/next/Library/0163.bpo-28488.TgO112.rst b/Misc/NEWS.d/next/Library/0163.bpo-28488.TgO112.rst new file mode 100644 index 0000000..f8d370c --- /dev/null +++ b/Misc/NEWS.d/next/Library/0163.bpo-28488.TgO112.rst @@ -0,0 +1 @@ +shutil.make_archive() no longer adds entry "./" to ZIP archive. diff --git a/Misc/NEWS.d/next/Library/0164.bpo-25464.HDUTCu.rst b/Misc/NEWS.d/next/Library/0164.bpo-25464.HDUTCu.rst new file mode 100644 index 0000000..4b90795 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0164.bpo-25464.HDUTCu.rst @@ -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.d/next/Library/0165.bpo-27025.foAViS.rst b/Misc/NEWS.d/next/Library/0165.bpo-27025.foAViS.rst new file mode 100644 index 0000000..ca1f183 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0165.bpo-27025.foAViS.rst @@ -0,0 +1,2 @@ +Generated names for Tkinter widgets now start by the "!" prefix for +readability. diff --git a/Misc/NEWS.d/next/Library/0166.bpo-28430.4MiEYT.rst b/Misc/NEWS.d/next/Library/0166.bpo-28430.4MiEYT.rst new file mode 100644 index 0000000..90394c4 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0166.bpo-28430.4MiEYT.rst @@ -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.d/next/Library/0167.bpo-28353.sKGbLL.rst b/Misc/NEWS.d/next/Library/0167.bpo-28353.sKGbLL.rst new file mode 100644 index 0000000..74f3302 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0167.bpo-28353.sKGbLL.rst @@ -0,0 +1 @@ +os.fwalk() no longer fails on broken links. diff --git a/Misc/NEWS.d/next/Library/0168.bpo-20491.ObgnQ2.rst b/Misc/NEWS.d/next/Library/0168.bpo-20491.ObgnQ2.rst new file mode 100644 index 0000000..a2a3f29 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0168.bpo-20491.ObgnQ2.rst @@ -0,0 +1,2 @@ +The textwrap.TextWrapper class now honors non-breaking spaces. Based on +patch by Kaarle Ritvanen. diff --git a/Misc/NEWS.d/next/Library/0169.bpo-28255.fHNZu0.rst b/Misc/NEWS.d/next/Library/0169.bpo-28255.fHNZu0.rst new file mode 100644 index 0000000..6818da9 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0169.bpo-28255.fHNZu0.rst @@ -0,0 +1,2 @@ +calendar.TextCalendar.prmonth() no longer prints a space at the start of new +line after printing a month's calendar. Patch by Xiang Zhang. diff --git a/Misc/NEWS.d/next/Library/0170.bpo-28255.G3iOPm.rst b/Misc/NEWS.d/next/Library/0170.bpo-28255.G3iOPm.rst new file mode 100644 index 0000000..56c6d65 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0170.bpo-28255.G3iOPm.rst @@ -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.d/next/Library/0171.bpo-27939.mTfADV.rst b/Misc/NEWS.d/next/Library/0171.bpo-27939.mTfADV.rst new file mode 100644 index 0000000..53c4058 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0171.bpo-27939.mTfADV.rst @@ -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.d/next/Library/0172.bpo-24241.y7N12p.rst b/Misc/NEWS.d/next/Library/0172.bpo-24241.y7N12p.rst new file mode 100644 index 0000000..0aa7db9 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0172.bpo-24241.y7N12p.rst @@ -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.d/next/Library/0173.bpo-23262.6EVB7N.rst b/Misc/NEWS.d/next/Library/0173.bpo-23262.6EVB7N.rst new file mode 100644 index 0000000..dba0be1 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0173.bpo-23262.6EVB7N.rst @@ -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.d/next/Library/0174.bpo-28449.5JK6ES.rst b/Misc/NEWS.d/next/Library/0174.bpo-28449.5JK6ES.rst new file mode 100644 index 0000000..896227d --- /dev/null +++ b/Misc/NEWS.d/next/Library/0174.bpo-28449.5JK6ES.rst @@ -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.d/next/Library/0175.bpo-28549.ShnM2y.rst b/Misc/NEWS.d/next/Library/0175.bpo-28549.ShnM2y.rst new file mode 100644 index 0000000..237e66d --- /dev/null +++ b/Misc/NEWS.d/next/Library/0175.bpo-28549.ShnM2y.rst @@ -0,0 +1 @@ +Fixed segfault in curses's addch() with ncurses6. diff --git a/Misc/NEWS.d/next/Library/0176.bpo-27517.1CYM8A.rst b/Misc/NEWS.d/next/Library/0176.bpo-27517.1CYM8A.rst new file mode 100644 index 0000000..c9e5b8d --- /dev/null +++ b/Misc/NEWS.d/next/Library/0176.bpo-27517.1CYM8A.rst @@ -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.d/next/Library/0177.bpo-28387.1clJu7.rst b/Misc/NEWS.d/next/Library/0177.bpo-28387.1clJu7.rst new file mode 100644 index 0000000..aa8e29d --- /dev/null +++ b/Misc/NEWS.d/next/Library/0177.bpo-28387.1clJu7.rst @@ -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.d/next/Library/0178.bpo-28563.iweEiw.rst b/Misc/NEWS.d/next/Library/0178.bpo-28563.iweEiw.rst new file mode 100644 index 0000000..9da96ab --- /dev/null +++ b/Misc/NEWS.d/next/Library/0178.bpo-28563.iweEiw.rst @@ -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.d/next/Library/0179.bpo-19717.HXCAIz.rst b/Misc/NEWS.d/next/Library/0179.bpo-19717.HXCAIz.rst new file mode 100644 index 0000000..9d0622b --- /dev/null +++ b/Misc/NEWS.d/next/Library/0179.bpo-19717.HXCAIz.rst @@ -0,0 +1,2 @@ +Makes Path.resolve() succeed on paths that do not exist. Patch by Vajrasky +Kok diff --git a/Misc/NEWS.d/next/Library/0180.bpo-28548.IeNrnG.rst b/Misc/NEWS.d/next/Library/0180.bpo-28548.IeNrnG.rst new file mode 100644 index 0000000..daa0cda --- /dev/null +++ b/Misc/NEWS.d/next/Library/0180.bpo-28548.IeNrnG.rst @@ -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.d/next/Library/0181.bpo-25659.lE2IlT.rst b/Misc/NEWS.d/next/Library/0181.bpo-25659.lE2IlT.rst new file mode 100644 index 0000000..8c12033 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0181.bpo-25659.lE2IlT.rst @@ -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.d/next/Library/0182.bpo-20572.NCRmvz.rst b/Misc/NEWS.d/next/Library/0182.bpo-20572.NCRmvz.rst new file mode 100644 index 0000000..9f71280 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0182.bpo-20572.NCRmvz.rst @@ -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.d/next/Library/0183.bpo-28727.ubZP_b.rst b/Misc/NEWS.d/next/Library/0183.bpo-28727.ubZP_b.rst new file mode 100644 index 0000000..682cb16 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0183.bpo-28727.ubZP_b.rst @@ -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.d/next/Library/0184.bpo-28752.Q-4oRE.rst b/Misc/NEWS.d/next/Library/0184.bpo-28752.Q-4oRE.rst new file mode 100644 index 0000000..0c57306 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0184.bpo-28752.Q-4oRE.rst @@ -0,0 +1 @@ +Restored the __reduce__() methods of datetime objects. diff --git a/Misc/NEWS.d/next/Library/0185.bpo-26273.ilNIWN.rst b/Misc/NEWS.d/next/Library/0185.bpo-26273.ilNIWN.rst new file mode 100644 index 0000000..dc603f0 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0185.bpo-26273.ilNIWN.rst @@ -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.d/next/Library/0186.bpo-28740.rY8kz-.rst b/Misc/NEWS.d/next/Library/0186.bpo-28740.rY8kz-.rst new file mode 100644 index 0000000..2cdfc78 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0186.bpo-28740.rY8kz-.rst @@ -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.d/next/Library/0187.bpo-27172.mVKfLT.rst b/Misc/NEWS.d/next/Library/0187.bpo-27172.mVKfLT.rst new file mode 100644 index 0000000..e49ec2e --- /dev/null +++ b/Misc/NEWS.d/next/Library/0187.bpo-27172.mVKfLT.rst @@ -0,0 +1,4 @@ +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.d/next/Library/0188.bpo-28835.iWBYH7.rst b/Misc/NEWS.d/next/Library/0188.bpo-28835.iWBYH7.rst new file mode 100644 index 0000000..af92a01 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0188.bpo-28835.iWBYH7.rst @@ -0,0 +1,2 @@ +Fix a regression introduced in warnings.catch_warnings(): call +warnings.showwarning() if it was overridden inside the context manager. diff --git a/Misc/NEWS.d/next/Library/0189.bpo-27030.GoGlFH.rst b/Misc/NEWS.d/next/Library/0189.bpo-27030.GoGlFH.rst new file mode 100644 index 0000000..a05f572 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0189.bpo-27030.GoGlFH.rst @@ -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.d/next/Library/0190.bpo-28847.GiWd9w.rst b/Misc/NEWS.d/next/Library/0190.bpo-28847.GiWd9w.rst new file mode 100644 index 0000000..1e1e8a0 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0190.bpo-28847.GiWd9w.rst @@ -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.d/next/Library/0191.bpo-26937.c9kgiA.rst b/Misc/NEWS.d/next/Library/0191.bpo-26937.c9kgiA.rst new file mode 100644 index 0000000..3d0e17f --- /dev/null +++ b/Misc/NEWS.d/next/Library/0191.bpo-26937.c9kgiA.rst @@ -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.d/next/Library/0192.bpo-28779.t-mjED.rst b/Misc/NEWS.d/next/Library/0192.bpo-28779.t-mjED.rst new file mode 100644 index 0000000..63b22ee --- /dev/null +++ b/Misc/NEWS.d/next/Library/0192.bpo-28779.t-mjED.rst @@ -0,0 +1,3 @@ +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.d/next/Library/0193.bpo-16255.p2YA85.rst b/Misc/NEWS.d/next/Library/0193.bpo-16255.p2YA85.rst new file mode 100644 index 0000000..c7fd44b --- /dev/null +++ b/Misc/NEWS.d/next/Library/0193.bpo-16255.p2YA85.rst @@ -0,0 +1,2 @@ +subprocess.Popen uses /system/bin/sh on Android as the shell, instead of +/bin/sh. diff --git a/Misc/NEWS.d/next/Library/0194.bpo-20191.Q7uZCS.rst b/Misc/NEWS.d/next/Library/0194.bpo-20191.Q7uZCS.rst new file mode 100644 index 0000000..8ea757b --- /dev/null +++ b/Misc/NEWS.d/next/Library/0194.bpo-20191.Q7uZCS.rst @@ -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.d/next/Library/0195.bpo-19542.5tCkaK.rst b/Misc/NEWS.d/next/Library/0195.bpo-19542.5tCkaK.rst new file mode 100644 index 0000000..b330241 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0195.bpo-19542.5tCkaK.rst @@ -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.d/next/Library/0196.bpo-28871.cPMXCJ.rst b/Misc/NEWS.d/next/Library/0196.bpo-28871.cPMXCJ.rst new file mode 100644 index 0000000..4383054 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0196.bpo-28871.cPMXCJ.rst @@ -0,0 +1 @@ +Fixed a crash when deallocate deep ElementTree. diff --git a/Misc/NEWS.d/next/Library/0197.bpo-28923.naVULD.rst b/Misc/NEWS.d/next/Library/0197.bpo-28923.naVULD.rst new file mode 100644 index 0000000..5470585 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0197.bpo-28923.naVULD.rst @@ -0,0 +1 @@ +Remove editor artifacts from Tix.py. diff --git a/Misc/NEWS.d/next/Library/0198.bpo-28427.vUd-va.rst b/Misc/NEWS.d/next/Library/0198.bpo-28427.vUd-va.rst new file mode 100644 index 0000000..e6eab05 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0198.bpo-28427.vUd-va.rst @@ -0,0 +1,2 @@ +old keys should not remove new values from WeakValueDictionary when +collecting from another thread. diff --git a/Misc/NEWS.d/next/Library/0199.bpo-9770.WJJnwP.rst b/Misc/NEWS.d/next/Library/0199.bpo-9770.WJJnwP.rst new file mode 100644 index 0000000..18abe3d --- /dev/null +++ b/Misc/NEWS.d/next/Library/0199.bpo-9770.WJJnwP.rst @@ -0,0 +1 @@ +curses.ascii predicates now work correctly with negative integers. diff --git a/Misc/NEWS.d/next/Library/0200.bpo-13051.YzC1Te.rst b/Misc/NEWS.d/next/Library/0200.bpo-13051.YzC1Te.rst new file mode 100644 index 0000000..87fe36e --- /dev/null +++ b/Misc/NEWS.d/next/Library/0200.bpo-13051.YzC1Te.rst @@ -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.d/next/Library/0201.bpo-29079.g4YLix.rst b/Misc/NEWS.d/next/Library/0201.bpo-29079.g4YLix.rst new file mode 100644 index 0000000..2bc4cd4 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0201.bpo-29079.g4YLix.rst @@ -0,0 +1 @@ +Prevent infinite loop in pathlib.resolve() on Windows diff --git a/Misc/NEWS.d/next/Library/0202.bpo-28985.TMWJFg.rst b/Misc/NEWS.d/next/Library/0202.bpo-28985.TMWJFg.rst new file mode 100644 index 0000000..8b41a1f --- /dev/null +++ b/Misc/NEWS.d/next/Library/0202.bpo-28985.TMWJFg.rst @@ -0,0 +1 @@ +Update authorizer constants in sqlite3 module. Patch by Dingyuan Wang. diff --git a/Misc/NEWS.d/next/Library/0203.bpo-15812.R1U-Ec.rst b/Misc/NEWS.d/next/Library/0203.bpo-15812.R1U-Ec.rst new file mode 100644 index 0000000..6df13d2 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0203.bpo-15812.R1U-Ec.rst @@ -0,0 +1,2 @@ +inspect.getframeinfo() now correctly shows the first line of a context. +Patch by Sam Breese. diff --git a/Misc/NEWS.d/next/Library/0204.bpo-28961.Rt93vg.rst b/Misc/NEWS.d/next/Library/0204.bpo-28961.Rt93vg.rst new file mode 100644 index 0000000..31d81af --- /dev/null +++ b/Misc/NEWS.d/next/Library/0204.bpo-28961.Rt93vg.rst @@ -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.d/next/Library/0205.bpo-29142.xo6kAv.rst b/Misc/NEWS.d/next/Library/0205.bpo-29142.xo6kAv.rst new file mode 100644 index 0000000..fd5465b --- /dev/null +++ b/Misc/NEWS.d/next/Library/0205.bpo-29142.xo6kAv.rst @@ -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.d/next/Library/0206.bpo-20804.XyZhvi.rst b/Misc/NEWS.d/next/Library/0206.bpo-20804.XyZhvi.rst new file mode 100644 index 0000000..b2e9bce --- /dev/null +++ b/Misc/NEWS.d/next/Library/0206.bpo-20804.XyZhvi.rst @@ -0,0 +1,2 @@ +The unittest.mock.sentinel attributes now preserve their identity when they +are copied or pickled. diff --git a/Misc/NEWS.d/next/Library/0207.bpo-28969.j3HJYO.rst b/Misc/NEWS.d/next/Library/0207.bpo-28969.j3HJYO.rst new file mode 100644 index 0000000..f2a4171 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0207.bpo-28969.j3HJYO.rst @@ -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 differen threads with the same uncached arguments. diff --git a/Misc/NEWS.d/next/Library/0208.bpo-29195.vK5LjU.rst b/Misc/NEWS.d/next/Library/0208.bpo-29195.vK5LjU.rst new file mode 100644 index 0000000..47123d9 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0208.bpo-29195.vK5LjU.rst @@ -0,0 +1,2 @@ +Removed support of deprecated undocumented keyword arguments in methods of +regular expression objects. diff --git a/Misc/NEWS.d/next/Library/0209.bpo-29193.CgcjEx.rst b/Misc/NEWS.d/next/Library/0209.bpo-29193.CgcjEx.rst new file mode 100644 index 0000000..b87246f --- /dev/null +++ b/Misc/NEWS.d/next/Library/0209.bpo-29193.CgcjEx.rst @@ -0,0 +1,2 @@ +A format string argument for string.Formatter.format() is now positional- +only. diff --git a/Misc/NEWS.d/next/Library/0210.bpo-29192.mY31H8.rst b/Misc/NEWS.d/next/Library/0210.bpo-29192.mY31H8.rst new file mode 100644 index 0000000..e237789 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0210.bpo-29192.mY31H8.rst @@ -0,0 +1 @@ +Removed deprecated features in the http.cookies module. diff --git a/Misc/NEWS.d/next/Library/0211.bpo-29219.kxui7t.rst b/Misc/NEWS.d/next/Library/0211.bpo-29219.kxui7t.rst new file mode 100644 index 0000000..ab6725f --- /dev/null +++ b/Misc/NEWS.d/next/Library/0211.bpo-29219.kxui7t.rst @@ -0,0 +1 @@ +Fixed infinite recursion in the repr of uninitialized ctypes.CDLL instances. diff --git a/Misc/NEWS.d/next/Library/0212.bpo-29210.y1UHWf.rst b/Misc/NEWS.d/next/Library/0212.bpo-29210.y1UHWf.rst new file mode 100644 index 0000000..02452fe --- /dev/null +++ b/Misc/NEWS.d/next/Library/0212.bpo-29210.y1UHWf.rst @@ -0,0 +1 @@ +Removed support of deprecated argument "exclude" in tarfile.TarFile.add(). diff --git a/Misc/NEWS.d/next/Library/0213.bpo-29197.sZssFZ.rst b/Misc/NEWS.d/next/Library/0213.bpo-29197.sZssFZ.rst new file mode 100644 index 0000000..9e9fc4f --- /dev/null +++ b/Misc/NEWS.d/next/Library/0213.bpo-29197.sZssFZ.rst @@ -0,0 +1 @@ +Removed deprecated function ntpath.splitunc(). diff --git a/Misc/NEWS.d/next/Library/0214.bpo-28735.admHLO.rst b/Misc/NEWS.d/next/Library/0214.bpo-28735.admHLO.rst new file mode 100644 index 0000000..1ec6247 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0214.bpo-28735.admHLO.rst @@ -0,0 +1 @@ +Fixed the comparison of mock.MagickMock with mock.ANY. diff --git a/Misc/NEWS.d/next/Library/0215.bpo-29290.XBqptF.rst b/Misc/NEWS.d/next/Library/0215.bpo-29290.XBqptF.rst new file mode 100644 index 0000000..a4ac1f0 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0215.bpo-29290.XBqptF.rst @@ -0,0 +1,2 @@ +Fix a regression in argparse that help messages would wrap at non-breaking +spaces. diff --git a/Misc/NEWS.d/next/Library/0216.bpo-29335._KC7IK.rst b/Misc/NEWS.d/next/Library/0216.bpo-29335._KC7IK.rst new file mode 100644 index 0000000..79e1748 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0216.bpo-29335._KC7IK.rst @@ -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.d/next/Library/0217.bpo-29338.EpvQJl.rst b/Misc/NEWS.d/next/Library/0217.bpo-29338.EpvQJl.rst new file mode 100644 index 0000000..a9e5315 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0217.bpo-29338.EpvQJl.rst @@ -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.d/next/Library/0218.bpo-29368.nTtA_V.rst b/Misc/NEWS.d/next/Library/0218.bpo-29368.nTtA_V.rst new file mode 100644 index 0000000..04c7dfc --- /dev/null +++ b/Misc/NEWS.d/next/Library/0218.bpo-29368.nTtA_V.rst @@ -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.d/next/Library/0219.bpo-29218.-Qoti0.rst b/Misc/NEWS.d/next/Library/0219.bpo-29218.-Qoti0.rst new file mode 100644 index 0000000..cd7c117 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0219.bpo-29218.-Qoti0.rst @@ -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.d/next/Library/0220.bpo-29377.4AvSrC.rst b/Misc/NEWS.d/next/Library/0220.bpo-29377.4AvSrC.rst new file mode 100644 index 0000000..4b7bd5a --- /dev/null +++ b/Misc/NEWS.d/next/Library/0220.bpo-29377.4AvSrC.rst @@ -0,0 +1,2 @@ +Add WrapperDescriptorType, MethodWrapperType, and MethodDescriptorType +built-in types to types module. Original patch by Manuel Krebber. diff --git a/Misc/NEWS.d/next/Library/0221.bpo-29444.cEwgmk.rst b/Misc/NEWS.d/next/Library/0221.bpo-29444.cEwgmk.rst new file mode 100644 index 0000000..05e96fb --- /dev/null +++ b/Misc/NEWS.d/next/Library/0221.bpo-29444.cEwgmk.rst @@ -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.d/next/Library/0222.bpo-29416.KJGyI_.rst b/Misc/NEWS.d/next/Library/0222.bpo-29416.KJGyI_.rst new file mode 100644 index 0000000..b0b9838 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0222.bpo-29416.KJGyI_.rst @@ -0,0 +1 @@ +Prevent infinite loop in pathlib.Path.mkdir diff --git a/Misc/NEWS.d/next/Library/0223.bpo-29100.LAAERS.rst b/Misc/NEWS.d/next/Library/0223.bpo-29100.LAAERS.rst new file mode 100644 index 0000000..d12217a --- /dev/null +++ b/Misc/NEWS.d/next/Library/0223.bpo-29100.LAAERS.rst @@ -0,0 +1,2 @@ +Fix datetime.fromtimestamp() regression introduced in Python 3.6.0: check +minimum and maximum years. diff --git a/Misc/NEWS.d/next/Library/0224.bpo-28556.p6967e.rst b/Misc/NEWS.d/next/Library/0224.bpo-28556.p6967e.rst new file mode 100644 index 0000000..5b1c326 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0224.bpo-28556.p6967e.rst @@ -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.d/next/Library/0225.bpo-29851.jqs_5s.rst b/Misc/NEWS.d/next/Library/0225.bpo-29851.jqs_5s.rst new file mode 100644 index 0000000..c346c36 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0225.bpo-29851.jqs_5s.rst @@ -0,0 +1,2 @@ +importlib.reload() now raises ModuleNotFoundError if the module lacks a +spec. diff --git a/Misc/NEWS.d/next/Library/0226.bpo-10379.mRlZsT.rst b/Misc/NEWS.d/next/Library/0226.bpo-10379.mRlZsT.rst new file mode 100644 index 0000000..38866c3 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0226.bpo-10379.mRlZsT.rst @@ -0,0 +1,2 @@ +locale.format_string now supports the 'monetary' keyword argument, and +locale.format is deprecated. diff --git a/Misc/NEWS.d/next/Library/0227.bpo-29534.Ug3HPU.rst b/Misc/NEWS.d/next/Library/0227.bpo-29534.Ug3HPU.rst new file mode 100644 index 0000000..94a015c --- /dev/null +++ b/Misc/NEWS.d/next/Library/0227.bpo-29534.Ug3HPU.rst @@ -0,0 +1,2 @@ +Fixed different behaviour of Decimal.from_float() for _decimal and +_pydecimal. Thanks Andrew Nester. diff --git a/Misc/NEWS.d/next/Library/0228.bpo-29576.F-b8_5.rst b/Misc/NEWS.d/next/Library/0228.bpo-29576.F-b8_5.rst new file mode 100644 index 0000000..789bb3e --- /dev/null +++ b/Misc/NEWS.d/next/Library/0228.bpo-29576.F-b8_5.rst @@ -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.d/next/Library/0229.bpo-22807.VmoSkZ.rst b/Misc/NEWS.d/next/Library/0229.bpo-22807.VmoSkZ.rst new file mode 100644 index 0000000..af151ac --- /dev/null +++ b/Misc/NEWS.d/next/Library/0229.bpo-22807.VmoSkZ.rst @@ -0,0 +1,3 @@ +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.d/next/Library/0230.bpo-29110.wmE-_T.rst b/Misc/NEWS.d/next/Library/0230.bpo-29110.wmE-_T.rst new file mode 100644 index 0000000..10c495c --- /dev/null +++ b/Misc/NEWS.d/next/Library/0230.bpo-29110.wmE-_T.rst @@ -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.d/next/Library/0231.bpo-29532.YCwVQn.rst b/Misc/NEWS.d/next/Library/0231.bpo-29532.YCwVQn.rst new file mode 100644 index 0000000..9e3a25e --- /dev/null +++ b/Misc/NEWS.d/next/Library/0231.bpo-29532.YCwVQn.rst @@ -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.d/next/Library/0232.bpo-16285.4f5gbp.rst b/Misc/NEWS.d/next/Library/0232.bpo-16285.4f5gbp.rst new file mode 100644 index 0000000..f1db485 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0232.bpo-16285.4f5gbp.rst @@ -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.d/next/Library/0233.bpo-29742.8hqfEO.rst b/Misc/NEWS.d/next/Library/0233.bpo-29742.8hqfEO.rst new file mode 100644 index 0000000..af487f0 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0233.bpo-29742.8hqfEO.rst @@ -0,0 +1,2 @@ +get_extra_info() raises exception if get called on closed ssl transport. +Patch by Nikolay Kim. diff --git a/Misc/NEWS.d/next/Library/0234.bpo-28518.o-Q2Nw.rst b/Misc/NEWS.d/next/Library/0234.bpo-28518.o-Q2Nw.rst new file mode 100644 index 0000000..c40da62 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0234.bpo-28518.o-Q2Nw.rst @@ -0,0 +1,2 @@ +Start a transaction implicitly before a DML statement. Patch by Aviv +Palivoda. diff --git a/Misc/NEWS.d/next/Library/0235.bpo-28624.43TJib.rst b/Misc/NEWS.d/next/Library/0235.bpo-28624.43TJib.rst new file mode 100644 index 0000000..caf5197 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0235.bpo-28624.43TJib.rst @@ -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.d/next/Library/0236.bpo-29376.rrJhJy.rst b/Misc/NEWS.d/next/Library/0236.bpo-29376.rrJhJy.rst new file mode 100644 index 0000000..5b610c4 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0236.bpo-29376.rrJhJy.rst @@ -0,0 +1 @@ +Fix assertion error in threading._DummyThread.is_alive(). diff --git a/Misc/NEWS.d/next/Library/0237.bpo-7769.xGRJWh.rst b/Misc/NEWS.d/next/Library/0237.bpo-7769.xGRJWh.rst new file mode 100644 index 0000000..a9ccebe --- /dev/null +++ b/Misc/NEWS.d/next/Library/0237.bpo-7769.xGRJWh.rst @@ -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.d/next/Library/0238.bpo-29615.OpFKzg.rst b/Misc/NEWS.d/next/Library/0238.bpo-29615.OpFKzg.rst new file mode 100644 index 0000000..4cef504 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0238.bpo-29615.OpFKzg.rst @@ -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.d/next/Library/0239.bpo-29703.ZdsPCR.rst b/Misc/NEWS.d/next/Library/0239.bpo-29703.ZdsPCR.rst new file mode 100644 index 0000000..ce844f7 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0239.bpo-29703.ZdsPCR.rst @@ -0,0 +1 @@ +Fix asyncio to support instantiation of new event loops in child processes. diff --git a/Misc/NEWS.d/next/Library/0240.bpo-29271.y8Vj2v.rst b/Misc/NEWS.d/next/Library/0240.bpo-29271.y8Vj2v.rst new file mode 100644 index 0000000..fd3f2ae --- /dev/null +++ b/Misc/NEWS.d/next/Library/0240.bpo-29271.y8Vj2v.rst @@ -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.d/next/Library/0241.bpo-29704.WHbx27.rst b/Misc/NEWS.d/next/Library/0241.bpo-29704.WHbx27.rst new file mode 100644 index 0000000..c371ced --- /dev/null +++ b/Misc/NEWS.d/next/Library/0241.bpo-29704.WHbx27.rst @@ -0,0 +1,2 @@ +asyncio.subprocess.SubprocessStreamProtocol no longer closes before all +pipes are closed. diff --git a/Misc/NEWS.d/next/Library/0242.bpo-28963.tPl8dq.rst b/Misc/NEWS.d/next/Library/0242.bpo-28963.tPl8dq.rst new file mode 100644 index 0000000..15e3471 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0242.bpo-28963.tPl8dq.rst @@ -0,0 +1,2 @@ +Fix out of bound iteration in asyncio.Future.remove_done_callback +implemented in C. diff --git a/Misc/NEWS.d/next/Library/0243.bpo-9303.kDZRSd.rst b/Misc/NEWS.d/next/Library/0243.bpo-9303.kDZRSd.rst new file mode 100644 index 0000000..edad62b --- /dev/null +++ b/Misc/NEWS.d/next/Library/0243.bpo-9303.kDZRSd.rst @@ -0,0 +1 @@ +Migrate sqlite3 module to _v2 API. Patch by Aviv Palivoda. diff --git a/Misc/NEWS.d/next/Library/0244.bpo-29623.D3-NP2.rst b/Misc/NEWS.d/next/Library/0244.bpo-29623.D3-NP2.rst new file mode 100644 index 0000000..331fc02 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0244.bpo-29623.D3-NP2.rst @@ -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.d/next/Library/0245.bpo-29728.37jMwb.rst b/Misc/NEWS.d/next/Library/0245.bpo-29728.37jMwb.rst new file mode 100644 index 0000000..81786e3 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0245.bpo-29728.37jMwb.rst @@ -0,0 +1,2 @@ +Add new :data:`socket.TCP_NOTSENT_LOWAT` (Linux 3.12) constant. Patch by +Nathaniel J. Smith. diff --git a/Misc/NEWS.d/next/Library/0246.bpo-28682.hUxdej.rst b/Misc/NEWS.d/next/Library/0246.bpo-28682.hUxdej.rst new file mode 100644 index 0000000..480325c --- /dev/null +++ b/Misc/NEWS.d/next/Library/0246.bpo-28682.hUxdej.rst @@ -0,0 +1 @@ +Added support for bytes paths in os.fwalk(). diff --git a/Misc/NEWS.d/next/Library/0247.bpo-26915.qShJZO.rst b/Misc/NEWS.d/next/Library/0247.bpo-26915.qShJZO.rst new file mode 100644 index 0000000..cb9fd02 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0247.bpo-26915.qShJZO.rst @@ -0,0 +1,2 @@ +index() and count() methods of collections.abc.Sequence now check identity +before checking equality when do comparisons. diff --git a/Misc/NEWS.d/next/Library/0248.bpo-28231.MG1X09.rst b/Misc/NEWS.d/next/Library/0248.bpo-28231.MG1X09.rst new file mode 100644 index 0000000..b706b06 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0248.bpo-28231.MG1X09.rst @@ -0,0 +1 @@ +The zipfile module now accepts path-like objects for external paths. diff --git a/Misc/NEWS.d/next/Library/0249.bpo-29645.XCxTHM.rst b/Misc/NEWS.d/next/Library/0249.bpo-29645.XCxTHM.rst new file mode 100644 index 0000000..8f194b8 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0249.bpo-29645.XCxTHM.rst @@ -0,0 +1,2 @@ +Speed up importing the webbrowser module. webbrowser.register() is now +thread-safe. diff --git a/Misc/NEWS.d/next/Library/0250.bpo-28298.PNOPsT.rst b/Misc/NEWS.d/next/Library/0250.bpo-28298.PNOPsT.rst new file mode 100644 index 0000000..1e5ba95 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0250.bpo-28298.PNOPsT.rst @@ -0,0 +1,2 @@ +Fix a bug that prevented array 'Q', 'L' and 'I' from accepting big intables +(objects that have __int__) as elements. diff --git a/Misc/NEWS.d/next/Library/0251.bpo-29619.WIGVxO.rst b/Misc/NEWS.d/next/Library/0251.bpo-29619.WIGVxO.rst new file mode 100644 index 0000000..ae8df9f --- /dev/null +++ b/Misc/NEWS.d/next/Library/0251.bpo-29619.WIGVxO.rst @@ -0,0 +1,2 @@ +os.stat() and os.DirEntry.inode() now convert inode (st_ino) using unsigned +integers. diff --git a/Misc/NEWS.d/next/Library/0252.bpo-26121.LX-pQA.rst b/Misc/NEWS.d/next/Library/0252.bpo-26121.LX-pQA.rst new file mode 100644 index 0000000..82a54e5 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0252.bpo-26121.LX-pQA.rst @@ -0,0 +1 @@ +Use C library implementation for math functions erf() and erfc(). diff --git a/Misc/NEWS.d/next/Library/0253.bpo-28692.CDt-Gb.rst b/Misc/NEWS.d/next/Library/0253.bpo-28692.CDt-Gb.rst new file mode 100644 index 0000000..a99463b --- /dev/null +++ b/Misc/NEWS.d/next/Library/0253.bpo-28692.CDt-Gb.rst @@ -0,0 +1,2 @@ +Using non-integer value for selecting a plural form in gettext is now +deprecated. diff --git a/Misc/NEWS.d/next/Library/0254.bpo-8256.jAwGQH.rst b/Misc/NEWS.d/next/Library/0254.bpo-8256.jAwGQH.rst new file mode 100644 index 0000000..3a9fc7c --- /dev/null +++ b/Misc/NEWS.d/next/Library/0254.bpo-8256.jAwGQH.rst @@ -0,0 +1,2 @@ +Fixed possible failing or crashing input() if attributes "encoding" or +"errors" of sys.stdin or sys.stdout are not set or are not strings. diff --git a/Misc/NEWS.d/next/Library/0255.bpo-29800.d2xASa.rst b/Misc/NEWS.d/next/Library/0255.bpo-29800.d2xASa.rst new file mode 100644 index 0000000..e4aba4b --- /dev/null +++ b/Misc/NEWS.d/next/Library/0255.bpo-29800.d2xASa.rst @@ -0,0 +1,2 @@ +Fix crashes in partial.__repr__ if the keys of partial.keywords are not +strings. Patch by Michael Seifert. diff --git a/Misc/NEWS.d/next/Library/0256.bpo-25455.ZsahHN.rst b/Misc/NEWS.d/next/Library/0256.bpo-25455.ZsahHN.rst new file mode 100644 index 0000000..ee68d5b --- /dev/null +++ b/Misc/NEWS.d/next/Library/0256.bpo-25455.ZsahHN.rst @@ -0,0 +1 @@ +Fixed crashes in repr of recursive buffered file-like objects. diff --git a/Misc/NEWS.d/next/Library/0257.bpo-29884.kWXR8W.rst b/Misc/NEWS.d/next/Library/0257.bpo-29884.kWXR8W.rst new file mode 100644 index 0000000..90b5f0c --- /dev/null +++ b/Misc/NEWS.d/next/Library/0257.bpo-29884.kWXR8W.rst @@ -0,0 +1,2 @@ +faulthandler: Restore the old sigaltstack during teardown. Patch by +Christophe Zeitouny. diff --git a/Misc/NEWS.d/next/Library/0258.bpo-19930.QCjO6A.rst b/Misc/NEWS.d/next/Library/0258.bpo-19930.QCjO6A.rst new file mode 100644 index 0000000..50075da --- /dev/null +++ b/Misc/NEWS.d/next/Library/0258.bpo-19930.QCjO6A.rst @@ -0,0 +1,2 @@ +The mode argument of os.makedirs() no longer affects the file permission +bits of newly-created intermediate-level directories. diff --git a/Misc/NEWS.d/next/Library/0259.bpo-29861.t2ZoRK.rst b/Misc/NEWS.d/next/Library/0259.bpo-29861.t2ZoRK.rst new file mode 100644 index 0000000..c14091a --- /dev/null +++ b/Misc/NEWS.d/next/Library/0259.bpo-29861.t2ZoRK.rst @@ -0,0 +1,2 @@ +Release references to tasks, their arguments and their results as soon as +they are finished in multiprocessing.Pool. diff --git a/Misc/NEWS.d/next/Library/0260.bpo-25803.CPDR0W.rst b/Misc/NEWS.d/next/Library/0260.bpo-25803.CPDR0W.rst new file mode 100644 index 0000000..2ca8488 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0260.bpo-25803.CPDR0W.rst @@ -0,0 +1,2 @@ +Avoid incorrect errors raised by Path.mkdir(exist_ok=True) when the OS gives +priority to errors such as EACCES over EEXIST. diff --git a/Misc/NEWS.d/next/Library/0261.bpo-29901.QdgMvW.rst b/Misc/NEWS.d/next/Library/0261.bpo-29901.QdgMvW.rst new file mode 100644 index 0000000..51fde26 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0261.bpo-29901.QdgMvW.rst @@ -0,0 +1,2 @@ +The zipapp module now supports general path-like objects, not just +pathlib.Path. diff --git a/Misc/NEWS.d/next/Library/0262.bpo-23890.GCFAAZ.rst b/Misc/NEWS.d/next/Library/0262.bpo-23890.GCFAAZ.rst new file mode 100644 index 0000000..7a589f1 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0262.bpo-23890.GCFAAZ.rst @@ -0,0 +1,2 @@ +unittest.TestCase.assertRaises() now manually breaks a reference cycle to +not keep objects alive longer than expected. diff --git a/Misc/NEWS.d/next/Library/0263.bpo-28699.wZztZP.rst b/Misc/NEWS.d/next/Library/0263.bpo-28699.wZztZP.rst new file mode 100644 index 0000000..5ea6808 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0263.bpo-28699.wZztZP.rst @@ -0,0 +1,3 @@ +Fixed a bug in pools in multiprocessing.pool that raising an exception at +the very first of an iterable may swallow the exception or make the program +hang. Patch by Davin Potts and Xiang Zhang. diff --git a/Misc/NEWS.d/next/Library/0264.bpo-25996.L2_giP.rst b/Misc/NEWS.d/next/Library/0264.bpo-25996.L2_giP.rst new file mode 100644 index 0000000..b278626 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0264.bpo-25996.L2_giP.rst @@ -0,0 +1,2 @@ +Added support of file descriptors in os.scandir() on Unix. os.fwalk() is +sped up by 2 times by using os.scandir(). diff --git a/Misc/NEWS.d/next/Library/0265.bpo-27863.pPYHHI.rst b/Misc/NEWS.d/next/Library/0265.bpo-27863.pPYHHI.rst new file mode 100644 index 0000000..49f0f03 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0265.bpo-27863.pPYHHI.rst @@ -0,0 +1,2 @@ +Fixed multiple crashes in ElementTree caused by race conditions and wrong +types. diff --git a/Misc/NEWS.d/next/Library/0266.bpo-29204.8Hbqn2.rst b/Misc/NEWS.d/next/Library/0266.bpo-29204.8Hbqn2.rst new file mode 100644 index 0000000..cde465f --- /dev/null +++ b/Misc/NEWS.d/next/Library/0266.bpo-29204.8Hbqn2.rst @@ -0,0 +1,3 @@ +Element.getiterator() and the html parameter of XMLParser() were deprecated +only in the documentation (since Python 3.2 and 3.4 correspondintly). Now +using them emits a deprecation warning. diff --git a/Misc/NEWS.d/next/Library/0267.bpo-10030.ZdhU3k.rst b/Misc/NEWS.d/next/Library/0267.bpo-10030.ZdhU3k.rst new file mode 100644 index 0000000..e215fc2 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0267.bpo-10030.ZdhU3k.rst @@ -0,0 +1 @@ +Sped up reading encrypted ZIP files by 2 times. diff --git a/Misc/NEWS.d/next/Library/0268.bpo-29942.CsGNuT.rst b/Misc/NEWS.d/next/Library/0268.bpo-29942.CsGNuT.rst new file mode 100644 index 0000000..39b8ba8 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0268.bpo-29942.CsGNuT.rst @@ -0,0 +1,2 @@ +Fix a crash in itertools.chain.from_iterable when encountering long runs of +empty iterables. diff --git a/Misc/NEWS.d/next/Library/0269.bpo-29953.Q1hSt-.rst b/Misc/NEWS.d/next/Library/0269.bpo-29953.Q1hSt-.rst new file mode 100644 index 0000000..214fd31 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0269.bpo-29953.Q1hSt-.rst @@ -0,0 +1,2 @@ +Fixed memory leaks in the replace() method of datetime and time objects when +pass out of bound fold argument. diff --git a/Misc/NEWS.d/next/Library/0270.bpo-29931.tfcTwK.rst b/Misc/NEWS.d/next/Library/0270.bpo-29931.tfcTwK.rst new file mode 100644 index 0000000..cb098ff --- /dev/null +++ b/Misc/NEWS.d/next/Library/0270.bpo-29931.tfcTwK.rst @@ -0,0 +1,2 @@ +Fixed comparison check for ipaddress.ip_interface objects. Patch by Sanjay +Sundaresan. diff --git a/Misc/NEWS.d/next/Library/0271.bpo-29654.xRFPge.rst b/Misc/NEWS.d/next/Library/0271.bpo-29654.xRFPge.rst new file mode 100644 index 0000000..26ef8ef --- /dev/null +++ b/Misc/NEWS.d/next/Library/0271.bpo-29654.xRFPge.rst @@ -0,0 +1,2 @@ +Support If-Modified-Since HTTP header (browser cache). Patch by Pierre +Quentel. diff --git a/Misc/NEWS.d/next/Library/0272.bpo-29649.2eIxQ8.rst b/Misc/NEWS.d/next/Library/0272.bpo-29649.2eIxQ8.rst new file mode 100644 index 0000000..58c8a8e --- /dev/null +++ b/Misc/NEWS.d/next/Library/0272.bpo-29649.2eIxQ8.rst @@ -0,0 +1,2 @@ +Improve struct.pack_into() exception messages for problems with the buffer +size and offset. Patch by Andrew Nester. diff --git a/Misc/NEWS.d/next/Library/0273.bpo-29962.r-ibsN.rst b/Misc/NEWS.d/next/Library/0273.bpo-29962.r-ibsN.rst new file mode 100644 index 0000000..4844525 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0273.bpo-29962.r-ibsN.rst @@ -0,0 +1,2 @@ +Add math.remainder operation, implementing remainder as specified in IEEE +754. diff --git a/Misc/NEWS.d/next/Library/0274.bpo-29995.b3mOqx.rst b/Misc/NEWS.d/next/Library/0274.bpo-29995.b3mOqx.rst new file mode 100644 index 0000000..5e66378 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0274.bpo-29995.b3mOqx.rst @@ -0,0 +1 @@ +re.escape() now escapes only regex special characters. diff --git a/Misc/NEWS.d/next/Library/0275.bpo-29998.poeIKD.rst b/Misc/NEWS.d/next/Library/0275.bpo-29998.poeIKD.rst new file mode 100644 index 0000000..1999770 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0275.bpo-29998.poeIKD.rst @@ -0,0 +1 @@ +Pickling and copying ImportError now preserves name and path attributes. diff --git a/Misc/NEWS.d/next/Library/0276.bpo-30017.cKBuhU.rst b/Misc/NEWS.d/next/Library/0276.bpo-30017.cKBuhU.rst new file mode 100644 index 0000000..d57348e --- /dev/null +++ b/Misc/NEWS.d/next/Library/0276.bpo-30017.cKBuhU.rst @@ -0,0 +1,2 @@ +Allowed calling the close() method of the zip entry writer object multiple +times. Writing to a closed writer now always produces a ValueError. diff --git a/Misc/NEWS.d/next/Library/0277.bpo-26187.aViyiR.rst b/Misc/NEWS.d/next/Library/0277.bpo-26187.aViyiR.rst new file mode 100644 index 0000000..f21f7a7 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0277.bpo-26187.aViyiR.rst @@ -0,0 +1,3 @@ +Test that sqlite3 trace callback is not called multiple times when schema is +changing. Indirectly fixed by switching to use sqlite3_prepare_v2() in +bpo-9303. Patch by Aviv Palivoda. diff --git a/Misc/NEWS.d/next/Library/0278.bpo-29692.oyWrAE.rst b/Misc/NEWS.d/next/Library/0278.bpo-29692.oyWrAE.rst new file mode 100644 index 0000000..118475d --- /dev/null +++ b/Misc/NEWS.d/next/Library/0278.bpo-29692.oyWrAE.rst @@ -0,0 +1,2 @@ +Fixed arbitrary unchaining of RuntimeError exceptions in +contextlib.contextmanager. Patch by Siddharth Velankar. diff --git a/Misc/NEWS.d/next/Library/0279.bpo-29694.LWKxb1.rst b/Misc/NEWS.d/next/Library/0279.bpo-29694.LWKxb1.rst new file mode 100644 index 0000000..fd91668 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0279.bpo-29694.LWKxb1.rst @@ -0,0 +1,2 @@ +Fixed race condition in pathlib mkdir with flags parents=True. Patch by +Armin Rigo. diff --git a/Misc/NEWS.d/next/Library/0280.bpo-30068.n4q47r.rst b/Misc/NEWS.d/next/Library/0280.bpo-30068.n4q47r.rst new file mode 100644 index 0000000..429673b --- /dev/null +++ b/Misc/NEWS.d/next/Library/0280.bpo-30068.n4q47r.rst @@ -0,0 +1 @@ +_io._IOBase.readlines will check if it's closed first when hint is present. diff --git a/Misc/NEWS.d/next/Library/0281.bpo-10076.qCnwly.rst b/Misc/NEWS.d/next/Library/0281.bpo-10076.qCnwly.rst new file mode 100644 index 0000000..842aa95 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0281.bpo-10076.qCnwly.rst @@ -0,0 +1,2 @@ +Compiled regular expression and match objects in the re module now support +copy.copy() and copy.deepcopy() (they are considered atomic). diff --git a/Misc/NEWS.d/next/Library/0282.bpo-30218.ab5oIg.rst b/Misc/NEWS.d/next/Library/0282.bpo-30218.ab5oIg.rst new file mode 100644 index 0000000..bf1ff7d --- /dev/null +++ b/Misc/NEWS.d/next/Library/0282.bpo-30218.ab5oIg.rst @@ -0,0 +1 @@ +Fix PathLike support for shutil.unpack_archive. Patch by Jelle Zijlstra. diff --git a/Misc/NEWS.d/next/Library/0283.bpo-30061.2w_dX9.rst b/Misc/NEWS.d/next/Library/0283.bpo-30061.2w_dX9.rst new file mode 100644 index 0000000..0b181f6 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0283.bpo-30061.2w_dX9.rst @@ -0,0 +1,4 @@ +Fixed crashes in IOBase methods __next__() and readlines() when readline() +or __next__() respectively return non-sizeable object. Fixed possible other +errors caused by not checking results of PyObject_Size(), PySequence_Size(), +or PyMapping_Size(). diff --git a/Misc/NEWS.d/next/Library/0284.bpo-22352.gIQ5qC.rst b/Misc/NEWS.d/next/Library/0284.bpo-22352.gIQ5qC.rst new file mode 100644 index 0000000..e74ad0e --- /dev/null +++ b/Misc/NEWS.d/next/Library/0284.bpo-22352.gIQ5qC.rst @@ -0,0 +1,2 @@ +Column widths in the output of dis.dis() are now adjusted for large line +numbers and instruction offsets. diff --git a/Misc/NEWS.d/next/Library/0285.bpo-30070.XM_B41.rst b/Misc/NEWS.d/next/Library/0285.bpo-30070.XM_B41.rst new file mode 100644 index 0000000..8e31371 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0285.bpo-30070.XM_B41.rst @@ -0,0 +1 @@ +Fixed leaks and crashes in errors handling in the parser module. diff --git a/Misc/NEWS.d/next/Library/0286.bpo-29960.g0wr3r.rst b/Misc/NEWS.d/next/Library/0286.bpo-29960.g0wr3r.rst new file mode 100644 index 0000000..0b37a4b --- /dev/null +++ b/Misc/NEWS.d/next/Library/0286.bpo-29960.g0wr3r.rst @@ -0,0 +1,2 @@ +Preserve generator state when _random.Random.setstate() raises an exception. +Patch by Bryan Olson. diff --git a/Misc/NEWS.d/next/Library/0287.bpo-29822.G7dX13.rst b/Misc/NEWS.d/next/Library/0287.bpo-29822.G7dX13.rst new file mode 100644 index 0000000..a9ed271 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0287.bpo-29822.G7dX13.rst @@ -0,0 +1,2 @@ +inspect.isabstract() now works during __init_subclass__. Patch by Nate +Soares. diff --git a/Misc/NEWS.d/next/Library/0288.bpo-30101.hxUqSL.rst b/Misc/NEWS.d/next/Library/0288.bpo-30101.hxUqSL.rst new file mode 100644 index 0000000..cb15775 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0288.bpo-30101.hxUqSL.rst @@ -0,0 +1 @@ +Add support for curses.A_ITALIC. diff --git a/Misc/NEWS.d/next/Library/0289.bpo-30190.5E7Hyb.rst b/Misc/NEWS.d/next/Library/0289.bpo-30190.5E7Hyb.rst new file mode 100644 index 0000000..7c52e06 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0289.bpo-30190.5E7Hyb.rst @@ -0,0 +1,3 @@ +unittest's assertAlmostEqual and assertNotAlmostEqual provide a better +message in case of failure which includes the difference between left and +right arguments. (patch by Giampaolo Rodola') diff --git a/Misc/NEWS.d/next/Library/0290.bpo-30228.nF8Ov4.rst b/Misc/NEWS.d/next/Library/0290.bpo-30228.nF8Ov4.rst new file mode 100644 index 0000000..fdd33cc --- /dev/null +++ b/Misc/NEWS.d/next/Library/0290.bpo-30228.nF8Ov4.rst @@ -0,0 +1,2 @@ +The seek() and tell() methods of io.FileIO now set the internal seekable +attribute to avoid one syscall on open() (in buffered or text mode). diff --git a/Misc/NEWS.d/next/Library/0291.bpo-30205.BsxO34.rst b/Misc/NEWS.d/next/Library/0291.bpo-30205.BsxO34.rst new file mode 100644 index 0000000..2692614 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0291.bpo-30205.BsxO34.rst @@ -0,0 +1 @@ +Fix getsockname() for unbound AF_UNIX sockets on Linux. diff --git a/Misc/NEWS.d/next/Library/0292.bpo-28556.51gjbP.rst b/Misc/NEWS.d/next/Library/0292.bpo-28556.51gjbP.rst new file mode 100644 index 0000000..dd8fc74 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0292.bpo-28556.51gjbP.rst @@ -0,0 +1,3 @@ +Various updates to typing module: add typing.NoReturn type, use +WrapperDescriptorType, minor bug-fixes. Original PRs by Jim Fasarakis- +Hilliard and Ivan Levkivskyi. diff --git a/Misc/NEWS.d/next/Library/0293.bpo-30103.mmPjf5.rst b/Misc/NEWS.d/next/Library/0293.bpo-30103.mmPjf5.rst new file mode 100644 index 0000000..b49ba6f --- /dev/null +++ b/Misc/NEWS.d/next/Library/0293.bpo-30103.mmPjf5.rst @@ -0,0 +1,2 @@ +binascii.b2a_uu() and uu.encode() now support using ``'`'`` as zero instead +of space. diff --git a/Misc/NEWS.d/next/Library/0294.bpo-30185.Tiu1n8.rst b/Misc/NEWS.d/next/Library/0294.bpo-30185.Tiu1n8.rst new file mode 100644 index 0000000..f19d47c --- /dev/null +++ b/Misc/NEWS.d/next/Library/0294.bpo-30185.Tiu1n8.rst @@ -0,0 +1,2 @@ +Avoid KeyboardInterrupt tracebacks in forkserver helper process when Ctrl-C +is received. diff --git a/Misc/NEWS.d/next/Library/0295.bpo-30215.SY8738.rst b/Misc/NEWS.d/next/Library/0295.bpo-30215.SY8738.rst new file mode 100644 index 0000000..36e2939 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0295.bpo-30215.SY8738.rst @@ -0,0 +1,3 @@ +Compiled regular expression objects with the re.LOCALE flag no longer depend +on the locale at compile time. Only the locale at matching time affects the +result of matching. diff --git a/Misc/NEWS.d/next/Library/0296.bpo-30243.RHQt0v.rst b/Misc/NEWS.d/next/Library/0296.bpo-30243.RHQt0v.rst new file mode 100644 index 0000000..6037eaf --- /dev/null +++ b/Misc/NEWS.d/next/Library/0296.bpo-30243.RHQt0v.rst @@ -0,0 +1,3 @@ +Removed the __init__ methods of _json's scanner and encoder. Misusing them +could cause memory leaks or crashes. Now scanner and encoder objects are +completely initialized in the __new__ methods. diff --git a/Misc/NEWS.d/next/Library/0297.bpo-29979.jGBMyE.rst b/Misc/NEWS.d/next/Library/0297.bpo-29979.jGBMyE.rst new file mode 100644 index 0000000..ea6329d --- /dev/null +++ b/Misc/NEWS.d/next/Library/0297.bpo-29979.jGBMyE.rst @@ -0,0 +1,3 @@ +rewrite cgi.parse_multipart, reusing the FieldStorage class and making its +results consistent with those of FieldStorage for multipart/form-data +requests. Patch by Pierre Quentel. diff --git a/Misc/NEWS.d/next/Library/0298.bpo-29990.HWV6KE.rst b/Misc/NEWS.d/next/Library/0298.bpo-29990.HWV6KE.rst new file mode 100644 index 0000000..7a67930 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0298.bpo-29990.HWV6KE.rst @@ -0,0 +1 @@ +Fix range checking in GB18030 decoder. Original patch by Ma Lin. diff --git a/Misc/NEWS.d/next/Library/0299.bpo-30285.s1vpsO.rst b/Misc/NEWS.d/next/Library/0299.bpo-30285.s1vpsO.rst new file mode 100644 index 0000000..2e09fb9 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0299.bpo-30285.s1vpsO.rst @@ -0,0 +1 @@ +Optimized case-insensitive matching and searching of regular expressions. diff --git a/Misc/NEWS.d/next/Library/0300.bpo-30298.ZN-bWo.rst b/Misc/NEWS.d/next/Library/0300.bpo-30298.ZN-bWo.rst new file mode 100644 index 0000000..d0102a0 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0300.bpo-30298.ZN-bWo.rst @@ -0,0 +1,4 @@ +Weaken the condition of deprecation warnings for inline modifiers. Now +allowed several subsequential inline modifiers at the start of the pattern +(e.g. ``'(?i)(?s)...'``). In verbose mode whitespaces and comments now are +allowed before and between inline modifiers (e.g. ``'(?x) (?i) (?s)...'``). diff --git a/Misc/NEWS.d/next/Library/0301.bpo-30340.kvtGm-.rst b/Misc/NEWS.d/next/Library/0301.bpo-30340.kvtGm-.rst new file mode 100644 index 0000000..d79acef --- /dev/null +++ b/Misc/NEWS.d/next/Library/0301.bpo-30340.kvtGm-.rst @@ -0,0 +1,2 @@ +Enhanced regular expressions optimization. This increased the performance of +matching some patterns up to 25 times. diff --git a/Misc/NEWS.d/next/Library/0302.bpo-30266.YJzHAH.rst b/Misc/NEWS.d/next/Library/0302.bpo-30266.YJzHAH.rst new file mode 100644 index 0000000..c915452 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0302.bpo-30266.YJzHAH.rst @@ -0,0 +1,3 @@ +contextlib.AbstractContextManager now supports anti-registration by setting +__enter__ = None or __exit__ = None, following the pattern introduced in +bpo-25958. Patch by Jelle Zijlstra. diff --git a/Misc/NEWS.d/next/Library/0303.bpo-30048.ELRx8R.rst b/Misc/NEWS.d/next/Library/0303.bpo-30048.ELRx8R.rst new file mode 100644 index 0000000..ee47a9e --- /dev/null +++ b/Misc/NEWS.d/next/Library/0303.bpo-30048.ELRx8R.rst @@ -0,0 +1,2 @@ +Fixed ``Task.cancel()`` can be ignored when the task is running coroutine +and the coroutine returned without any more ``await``. diff --git a/Misc/NEWS.d/next/Library/0304.bpo-30299.O-5d4A.rst b/Misc/NEWS.d/next/Library/0304.bpo-30299.O-5d4A.rst new file mode 100644 index 0000000..00702b5 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0304.bpo-30299.O-5d4A.rst @@ -0,0 +1,2 @@ +Compiling regular expression in debug mode on CPython now displays the +compiled bytecode in human readable form. diff --git a/Misc/NEWS.d/next/Library/0305.bpo-9850.c6SMxt.rst b/Misc/NEWS.d/next/Library/0305.bpo-9850.c6SMxt.rst new file mode 100644 index 0000000..c1e4112 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0305.bpo-9850.c6SMxt.rst @@ -0,0 +1 @@ +The :mod:`macpath` is now deprecated and will be removed in Python 3.8. diff --git a/Misc/NEWS.d/next/Library/0306.bpo-29196.qBq9eB.rst b/Misc/NEWS.d/next/Library/0306.bpo-29196.qBq9eB.rst new file mode 100644 index 0000000..a435b824 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0306.bpo-29196.qBq9eB.rst @@ -0,0 +1,4 @@ +Removed previously deprecated in Python 2.4 classes Plist, Dict and +_InternalDict in the plistlib module. Dict values in the result of +functions readPlist() and readPlistFromBytes() are now normal dicts. You no +longer can use attribute access to access items of these dictionaries. diff --git a/Misc/NEWS.d/next/Library/0307.bpo-30329.EuT36N.rst b/Misc/NEWS.d/next/Library/0307.bpo-30329.EuT36N.rst new file mode 100644 index 0000000..d9d7be3 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0307.bpo-30329.EuT36N.rst @@ -0,0 +1,3 @@ +imaplib and poplib now catch the Windows socket WSAEINVAL error (code 10022) +on shutdown(SHUT_RDWR): An invalid operation was attempted. This error +occurs sometimes on SSL connections. diff --git a/Misc/NEWS.d/next/Library/0308.bpo-30375.9c8qM7.rst b/Misc/NEWS.d/next/Library/0308.bpo-30375.9c8qM7.rst new file mode 100644 index 0000000..cb0f7eb --- /dev/null +++ b/Misc/NEWS.d/next/Library/0308.bpo-30375.9c8qM7.rst @@ -0,0 +1,3 @@ +Warnings emitted when compile a regular expression now always point to the +line in the user code. Previously they could point into inners of the re +module if emitted from inside of groups or conditionals. diff --git a/Misc/NEWS.d/next/Library/0309.bpo-30301.ywOkjN.rst b/Misc/NEWS.d/next/Library/0309.bpo-30301.ywOkjN.rst new file mode 100644 index 0000000..0479f10 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0309.bpo-30301.ywOkjN.rst @@ -0,0 +1,2 @@ +Fix AttributeError when using SimpleQueue.empty() under *spawn* and +*forkserver* start methods. diff --git a/Misc/NEWS.d/next/Library/0310.bpo-30436.b3zqE7.rst b/Misc/NEWS.d/next/Library/0310.bpo-30436.b3zqE7.rst new file mode 100644 index 0000000..ad6724d --- /dev/null +++ b/Misc/NEWS.d/next/Library/0310.bpo-30436.b3zqE7.rst @@ -0,0 +1,3 @@ +importlib.find_spec() raises ModuleNotFoundError instead of AttributeError +if the specified parent module is not a package (i.e. lacks a __path__ +attribute). diff --git a/Misc/NEWS.d/next/Library/0311.bpo-30149.hE649r.rst b/Misc/NEWS.d/next/Library/0311.bpo-30149.hE649r.rst new file mode 100644 index 0000000..44a69f4 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0311.bpo-30149.hE649r.rst @@ -0,0 +1,2 @@ +inspect.signature() now supports callables with variable-argument parameters +wrapped with partialmethod. Patch by Dong-hee Na. diff --git a/Misc/NEWS.d/next/Library/0312.bpo-30003.BOl9HE.rst b/Misc/NEWS.d/next/Library/0312.bpo-30003.BOl9HE.rst new file mode 100644 index 0000000..ac44972 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0312.bpo-30003.BOl9HE.rst @@ -0,0 +1 @@ +Fix handling escape characters in HZ codec. Based on patch by Ma Lin. diff --git a/Misc/NEWS.d/next/Library/0313.bpo-30414.jGl1Lb.rst b/Misc/NEWS.d/next/Library/0313.bpo-30414.jGl1Lb.rst new file mode 100644 index 0000000..3bd0a23 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0313.bpo-30414.jGl1Lb.rst @@ -0,0 +1,2 @@ +multiprocessing.Queue._feed background running thread do not break from main +loop on exception. diff --git a/Misc/NEWS.d/next/Library/0314.bpo-30470.wAYhUc.rst b/Misc/NEWS.d/next/Library/0314.bpo-30470.wAYhUc.rst new file mode 100644 index 0000000..666175a --- /dev/null +++ b/Misc/NEWS.d/next/Library/0314.bpo-30470.wAYhUc.rst @@ -0,0 +1,2 @@ +Deprecate invalid ctypes call protection on Windows. Patch by Mariatta +Wijaya. diff --git a/Misc/NEWS.d/next/Library/0315.bpo-16500.9ypo9k.rst b/Misc/NEWS.d/next/Library/0315.bpo-16500.9ypo9k.rst new file mode 100644 index 0000000..5b1b3f9d --- /dev/null +++ b/Misc/NEWS.d/next/Library/0315.bpo-16500.9ypo9k.rst @@ -0,0 +1 @@ +Allow registering at-fork handlers. diff --git a/Misc/NEWS.d/next/Library/0316.bpo-30378.R_19_5.rst b/Misc/NEWS.d/next/Library/0316.bpo-30378.R_19_5.rst new file mode 100644 index 0000000..5994abe --- /dev/null +++ b/Misc/NEWS.d/next/Library/0316.bpo-30378.R_19_5.rst @@ -0,0 +1,2 @@ +Fix the problem that logging.handlers.SysLogHandler cannot handle IPv6 +addresses. diff --git a/Misc/NEWS.d/next/Library/0317.bpo-30245.Xoa_8Y.rst b/Misc/NEWS.d/next/Library/0317.bpo-30245.Xoa_8Y.rst new file mode 100644 index 0000000..f7c1b25 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0317.bpo-30245.Xoa_8Y.rst @@ -0,0 +1,2 @@ +Fix possible overflow when organize struct.pack_into error message. Patch +by Yuan Liu. diff --git a/Misc/NEWS.d/next/Library/0318.bpo-30526.7zTG30.rst b/Misc/NEWS.d/next/Library/0318.bpo-30526.7zTG30.rst new file mode 100644 index 0000000..ab5a622 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0318.bpo-30526.7zTG30.rst @@ -0,0 +1 @@ +Add TextIOWrapper.reconfigure() and a TextIOWrapper.write_through attribute. diff --git a/Misc/NEWS.d/next/Library/0319.bpo-30557.uykrLf.rst b/Misc/NEWS.d/next/Library/0319.bpo-30557.uykrLf.rst new file mode 100644 index 0000000..f9f2870 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0319.bpo-30557.uykrLf.rst @@ -0,0 +1 @@ +faulthandler now correctly filters and displays exception codes on Windows diff --git a/Misc/NEWS.d/next/Library/0320.bpo-30520.VYzaSn.rst b/Misc/NEWS.d/next/Library/0320.bpo-30520.VYzaSn.rst new file mode 100644 index 0000000..87b18d9 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0320.bpo-30520.VYzaSn.rst @@ -0,0 +1 @@ +Loggers are now pickleable. diff --git a/Misc/NEWS.d/next/Library/0321.bpo-30463.CdOuSl.rst b/Misc/NEWS.d/next/Library/0321.bpo-30463.CdOuSl.rst new file mode 100644 index 0000000..588d17e --- /dev/null +++ b/Misc/NEWS.d/next/Library/0321.bpo-30463.CdOuSl.rst @@ -0,0 +1,2 @@ +Addded empty __slots__ to abc.ABC. This allows subclassers to deny __dict__ +and __weakref__ creation. Patch by Aaron Hall. diff --git a/Misc/NEWS.d/next/Library/0322.bpo-30418.EwISQm.rst b/Misc/NEWS.d/next/Library/0322.bpo-30418.EwISQm.rst new file mode 100644 index 0000000..43e149d --- /dev/null +++ b/Misc/NEWS.d/next/Library/0322.bpo-30418.EwISQm.rst @@ -0,0 +1,2 @@ +On Windows, subprocess.Popen.communicate() now also ignore EINVAL on +stdin.write() if the child process is still running but closed the pipe. diff --git a/Misc/NEWS.d/next/Library/0323.bpo-30014.x7Yx6o.rst b/Misc/NEWS.d/next/Library/0323.bpo-30014.x7Yx6o.rst new file mode 100644 index 0000000..8292e85 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0323.bpo-30014.x7Yx6o.rst @@ -0,0 +1,2 @@ +modify() method of poll(), epoll() and devpoll() based classes of selectors +module is around 10% faster. Patch by Giampaolo Rodola'. diff --git a/Misc/NEWS.d/next/Library/0324.bpo-27585.0Ugqqu.rst b/Misc/NEWS.d/next/Library/0324.bpo-27585.0Ugqqu.rst new file mode 100644 index 0000000..3e31ab1 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0324.bpo-27585.0Ugqqu.rst @@ -0,0 +1 @@ +Fix waiter cancellation in asyncio.Lock. Patch by Mathieu Sornay. diff --git a/Misc/NEWS.d/next/Library/0325.bpo-29743.en2P4s.rst b/Misc/NEWS.d/next/Library/0325.bpo-29743.en2P4s.rst new file mode 100644 index 0000000..c4264b4 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0325.bpo-29743.en2P4s.rst @@ -0,0 +1,2 @@ +Closing transport during handshake process leaks open socket. Patch by +Nikolay Kim diff --git a/Misc/NEWS.d/next/Library/0326.bpo-29870.p960Ih.rst b/Misc/NEWS.d/next/Library/0326.bpo-29870.p960Ih.rst new file mode 100644 index 0000000..55b78a7 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0326.bpo-29870.p960Ih.rst @@ -0,0 +1,2 @@ +Fix ssl sockets leaks when connection is aborted in asyncio/ssl +implementation. Patch by Michaël Sghaïer. diff --git a/Misc/NEWS.d/next/Library/0327.bpo-30605.XqGz1r.rst b/Misc/NEWS.d/next/Library/0327.bpo-30605.XqGz1r.rst new file mode 100644 index 0000000..a01c8dd --- /dev/null +++ b/Misc/NEWS.d/next/Library/0327.bpo-30605.XqGz1r.rst @@ -0,0 +1,2 @@ +re.compile() no longer raises a BytesWarning when compiling a bytes instance +with misplaced inline modifier. Patch by Roy Williams. diff --git a/Misc/NEWS.d/next/Library/0328.bpo-28556.mESP7G.rst b/Misc/NEWS.d/next/Library/0328.bpo-28556.mESP7G.rst new file mode 100644 index 0000000..96a4eeb --- /dev/null +++ b/Misc/NEWS.d/next/Library/0328.bpo-28556.mESP7G.rst @@ -0,0 +1,3 @@ +Updates to typing module: Add generic AsyncContextManager, add support for +ContextManager on all versions. Original PRs by Jelle Zijlstra and Ivan +Levkivskyi diff --git a/Misc/NEWS.d/next/Library/0329.bpo-30595.d0nRRA.rst b/Misc/NEWS.d/next/Library/0329.bpo-30595.d0nRRA.rst new file mode 100644 index 0000000..6f3e2b6 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0329.bpo-30595.d0nRRA.rst @@ -0,0 +1,3 @@ +multiprocessing.Queue.get() with a timeout now polls its reader in non- +blocking mode if it succeeded to acquire the lock but the acquire took +longer than the timeout. diff --git a/Misc/NEWS.d/next/Library/0330.bpo-30624.g5oVSn.rst b/Misc/NEWS.d/next/Library/0330.bpo-30624.g5oVSn.rst new file mode 100644 index 0000000..26cb1cb --- /dev/null +++ b/Misc/NEWS.d/next/Library/0330.bpo-30624.g5oVSn.rst @@ -0,0 +1,2 @@ +selectors does not take KeyboardInterrupt and SystemExit into account, +leaving a fd in a bad state in case of error. Patch by Giampaolo Rodola'. diff --git a/Misc/NEWS.d/next/Library/0331.bpo-11822.GQmKw3.rst b/Misc/NEWS.d/next/Library/0331.bpo-11822.GQmKw3.rst new file mode 100644 index 0000000..b8cec56 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0331.bpo-11822.GQmKw3.rst @@ -0,0 +1 @@ +The dis.dis() function now is able to disassemble nested code objects. diff --git a/Misc/NEWS.d/next/Library/0332.bpo-30645.xihJ4Y.rst b/Misc/NEWS.d/next/Library/0332.bpo-30645.xihJ4Y.rst new file mode 100644 index 0000000..309908f --- /dev/null +++ b/Misc/NEWS.d/next/Library/0332.bpo-30645.xihJ4Y.rst @@ -0,0 +1,2 @@ +Fix path calculation in `imp.load_package()`, fixing it for cases when a +package is only shipped with bytecodes. Patch by Alexandru Ardelean. diff --git a/Misc/NEWS.d/next/Library/0333.bpo-30508.wNWRS2.rst b/Misc/NEWS.d/next/Library/0333.bpo-30508.wNWRS2.rst new file mode 100644 index 0000000..c032208 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0333.bpo-30508.wNWRS2.rst @@ -0,0 +1 @@ +Don't log exceptions if Task/Future "cancel()" method was called. diff --git a/Misc/NEWS.d/next/Library/0334.bpo-28994.9vzun1.rst b/Misc/NEWS.d/next/Library/0334.bpo-28994.9vzun1.rst new file mode 100644 index 0000000..80de944 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0334.bpo-28994.9vzun1.rst @@ -0,0 +1,2 @@ +The traceback no longer displayed for SystemExit raised in a callback +registered by atexit. diff --git a/Misc/NEWS.d/next/Library/0335.bpo-30589.xyZGM0.rst b/Misc/NEWS.d/next/Library/0335.bpo-30589.xyZGM0.rst new file mode 100644 index 0000000..ac5f0bb --- /dev/null +++ b/Misc/NEWS.d/next/Library/0335.bpo-30589.xyZGM0.rst @@ -0,0 +1,3 @@ +Fix multiprocessing.Process.exitcode to return the opposite of the signal +number when the process is killed by a signal (instead of 255) when using +the "forkserver" method. diff --git a/Misc/NEWS.d/next/Library/0336.bpo-24484.vFem8K.rst b/Misc/NEWS.d/next/Library/0336.bpo-24484.vFem8K.rst new file mode 100644 index 0000000..ac5b648 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0336.bpo-24484.vFem8K.rst @@ -0,0 +1 @@ +Avoid race condition in multiprocessing cleanup. diff --git a/Misc/NEWS.d/next/Library/0337.bpo-24744.NKxUj3.rst b/Misc/NEWS.d/next/Library/0337.bpo-24744.NKxUj3.rst new file mode 100644 index 0000000..5a87ccb --- /dev/null +++ b/Misc/NEWS.d/next/Library/0337.bpo-24744.NKxUj3.rst @@ -0,0 +1,2 @@ +pkgutil.walk_packages function now raises ValueError if *path* is a string. +Patch by Sanyam Khurana. diff --git a/Misc/NEWS.d/next/Library/0339.bpo-23894.k2pADV.rst b/Misc/NEWS.d/next/Library/0339.bpo-23894.k2pADV.rst new file mode 100644 index 0000000..16004cc --- /dev/null +++ b/Misc/NEWS.d/next/Library/0339.bpo-23894.k2pADV.rst @@ -0,0 +1 @@ +lib2to3 now recognizes ``rb'...'`` and ``f'...'`` strings. diff --git a/Misc/NEWS.d/next/Library/0340.bpo-30038.vb4DWk.rst b/Misc/NEWS.d/next/Library/0340.bpo-30038.vb4DWk.rst new file mode 100644 index 0000000..bfb9a1d --- /dev/null +++ b/Misc/NEWS.d/next/Library/0340.bpo-30038.vb4DWk.rst @@ -0,0 +1,2 @@ +Fix race condition between signal delivery and wakeup file descriptor. +Patch by Nathaniel Smith. diff --git a/Misc/NEWS.d/next/Library/0341.bpo-30616.I2mDTz.rst b/Misc/NEWS.d/next/Library/0341.bpo-30616.I2mDTz.rst new file mode 100644 index 0000000..e254768 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0341.bpo-30616.I2mDTz.rst @@ -0,0 +1 @@ +Functional API of enum allows to create empty enums. Patched by Dong-hee Na diff --git a/Misc/NEWS.d/next/Library/0343.bpo-29755.diQcY_.rst b/Misc/NEWS.d/next/Library/0343.bpo-29755.diQcY_.rst new file mode 100644 index 0000000..f4f1b27 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0343.bpo-29755.diQcY_.rst @@ -0,0 +1,2 @@ +Fixed the lgettext() family of functions in the gettext module. They now +always return bytes. diff --git a/Misc/NEWS.d/next/Library/0345.bpo-29212.HmTdef.rst b/Misc/NEWS.d/next/Library/0345.bpo-29212.HmTdef.rst new file mode 100644 index 0000000..9395b6b --- /dev/null +++ b/Misc/NEWS.d/next/Library/0345.bpo-29212.HmTdef.rst @@ -0,0 +1,3 @@ +Fix concurrent.futures.thread.ThreadPoolExecutor threads to have a non +repr() based thread name by default when no thread_name_prefix is supplied. +They will now identify themselves as "ThreadPoolExecutor-y_n". diff --git a/Misc/NEWS.d/next/Library/0346.bpo-21071.Sw37rs.rst b/Misc/NEWS.d/next/Library/0346.bpo-21071.Sw37rs.rst new file mode 100644 index 0000000..5e54970 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0346.bpo-21071.Sw37rs.rst @@ -0,0 +1 @@ +struct.Struct.format type is now :class:`str` instead of :class:`bytes`. diff --git a/Misc/NEWS.d/next/Library/0348.bpo-30664.oyqiUl.rst b/Misc/NEWS.d/next/Library/0348.bpo-30664.oyqiUl.rst new file mode 100644 index 0000000..2636960 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0348.bpo-30664.oyqiUl.rst @@ -0,0 +1,2 @@ +The description of a unittest subtest now preserves the order of keyword +arguments of TestCase.subTest(). diff --git a/Misc/NEWS.d/next/Library/0349.bpo-30746.7drQI0.rst b/Misc/NEWS.d/next/Library/0349.bpo-30746.7drQI0.rst new file mode 100644 index 0000000..94803bb --- /dev/null +++ b/Misc/NEWS.d/next/Library/0349.bpo-30746.7drQI0.rst @@ -0,0 +1,2 @@ +Prohibited the '=' character in environment variable names in +``os.putenv()`` and ``os.spawn*()``. diff --git a/Misc/NEWS.d/next/Library/0350.bpo-30879.N3KI-o.rst b/Misc/NEWS.d/next/Library/0350.bpo-30879.N3KI-o.rst new file mode 100644 index 0000000..862c114 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0350.bpo-30879.N3KI-o.rst @@ -0,0 +1,2 @@ +os.listdir() and os.scandir() now emit bytes names when called with bytes- +like argument. diff --git a/Misc/NEWS.d/next/Library/0351.bpo-30119.4UMLNh.rst b/Misc/NEWS.d/next/Library/0351.bpo-30119.4UMLNh.rst new file mode 100644 index 0000000..a37d370 --- /dev/null +++ b/Misc/NEWS.d/next/Library/0351.bpo-30119.4UMLNh.rst @@ -0,0 +1,2 @@ +ftplib.FTP.putline() now throws ValueError on commands that contains CR or +LF. Patch by Dong-hee Na. diff --git a/Misc/NEWS.d/next/Library/0352.bpo-29169.8ypApm.rst b/Misc/NEWS.d/next/Library/0352.bpo-29169.8ypApm.rst new file mode 100644 index 0000000..96d066d --- /dev/null +++ b/Misc/NEWS.d/next/Library/0352.bpo-29169.8ypApm.rst @@ -0,0 +1 @@ +Update zlib to 1.2.11. diff --git a/Misc/NEWS.d/next/Security/0338.bpo-29591.ExKblw.rst b/Misc/NEWS.d/next/Security/0338.bpo-29591.ExKblw.rst new file mode 100644 index 0000000..7394ac2 --- /dev/null +++ b/Misc/NEWS.d/next/Security/0338.bpo-29591.ExKblw.rst @@ -0,0 +1,5 @@ +.. original section: Library + +Update expat copy from 2.1.1 to 2.2.0 to get fixes of CVE-2016-0718 and +CVE-2016-4472. See https://sourceforge.net/p/expat/bugs/537/ for more +information. diff --git a/Misc/NEWS.d/next/Security/0342.bpo-30500.1VG7R-.rst b/Misc/NEWS.d/next/Security/0342.bpo-30500.1VG7R-.rst new file mode 100644 index 0000000..adf4645 --- /dev/null +++ b/Misc/NEWS.d/next/Security/0342.bpo-30500.1VG7R-.rst @@ -0,0 +1,6 @@ +.. original section: Library + +Fix urllib.parse.splithost() to correctly parse fragments. For example, +``splithost('//127.0.0.1#@evil.com/')`` now correctly returns the +``127.0.0.1`` host, instead of treating ``@evil.com`` as the host in an +authentification (``login@host``). diff --git a/Misc/NEWS.d/next/Security/0344.bpo-30694.WkMWM_.rst b/Misc/NEWS.d/next/Security/0344.bpo-30694.WkMWM_.rst new file mode 100644 index 0000000..ebbd359 --- /dev/null +++ b/Misc/NEWS.d/next/Security/0344.bpo-30694.WkMWM_.rst @@ -0,0 +1,10 @@ +.. original section: Library + +Upgrade expat copy from 2.2.0 to 2.2.1 to get fixes of multiple security +vulnerabilities including: CVE-2017-9233 (External entity infinite loop +DoS), CVE-2016-9063 (Integer overflow, re-fix), CVE-2016-0718 (Fix +regression bugs from 2.2.0's fix to CVE-2016-0718) and CVE-2012-0876 +(Counter hash flooding with SipHash). Note: the CVE-2016-5300 (Use os- +specific entropy sources like getrandom) doesn't impact Python, since Python +already gets entropy from the OS to set the expat secret using +``XML_SetHashSalt()``. diff --git a/Misc/NEWS.d/next/Security/0347.bpo-30730.rJsyTH.rst b/Misc/NEWS.d/next/Security/0347.bpo-30730.rJsyTH.rst new file mode 100644 index 0000000..008aa70 --- /dev/null +++ b/Misc/NEWS.d/next/Security/0347.bpo-30730.rJsyTH.rst @@ -0,0 +1,4 @@ +.. original section: Library + +Prevent environment variables injection in subprocess on Windows. Prevent +passing other environment variables and command arguments. diff --git a/Misc/NEWS.d/next/Tests/0001.bpo-26939.7j_W5R.rst b/Misc/NEWS.d/next/Tests/0001.bpo-26939.7j_W5R.rst new file mode 100644 index 0000000..1288f34 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/0001.bpo-26939.7j_W5R.rst @@ -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.d/next/Tests/0002.bpo-28217.Y37OKV.rst b/Misc/NEWS.d/next/Tests/0002.bpo-28217.Y37OKV.rst new file mode 100644 index 0000000..90fb863 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/0002.bpo-28217.Y37OKV.rst @@ -0,0 +1 @@ +Adds _testconsole module to test console input. diff --git a/Misc/NEWS.d/next/Tests/0003.bpo-28409.Q2IlxJ.rst b/Misc/NEWS.d/next/Tests/0003.bpo-28409.Q2IlxJ.rst new file mode 100644 index 0000000..27af4a2 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/0003.bpo-28409.Q2IlxJ.rst @@ -0,0 +1 @@ +regrtest: fix the parser of command line arguments. diff --git a/Misc/NEWS.d/next/Tests/0004.bpo-26944.ChZ_BO.rst b/Misc/NEWS.d/next/Tests/0004.bpo-26944.ChZ_BO.rst new file mode 100644 index 0000000..78384ff --- /dev/null +++ b/Misc/NEWS.d/next/Tests/0004.bpo-26944.ChZ_BO.rst @@ -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.d/next/Tests/0005.bpo-23839.zsT_L9.rst b/Misc/NEWS.d/next/Tests/0005.bpo-23839.zsT_L9.rst new file mode 100644 index 0000000..8cf2627 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/0005.bpo-23839.zsT_L9.rst @@ -0,0 +1 @@ +Various caches now are cleared before running every test file. diff --git a/Misc/NEWS.d/next/Tests/0006.bpo-28666.RtTk-4.rst b/Misc/NEWS.d/next/Tests/0006.bpo-28666.RtTk-4.rst new file mode 100644 index 0000000..ec98303 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/0006.bpo-28666.RtTk-4.rst @@ -0,0 +1,2 @@ +Now test.support.rmtree is able to remove unwritable or unreadable +directories. diff --git a/Misc/NEWS.d/next/Tests/0007.bpo-26936.XSZSVS.rst b/Misc/NEWS.d/next/Tests/0007.bpo-26936.XSZSVS.rst new file mode 100644 index 0000000..330399c --- /dev/null +++ b/Misc/NEWS.d/next/Tests/0007.bpo-26936.XSZSVS.rst @@ -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.d/next/Tests/0008.bpo-28683.Fp-Hdq.rst b/Misc/NEWS.d/next/Tests/0008.bpo-28683.Fp-Hdq.rst new file mode 100644 index 0000000..2dd5006 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/0008.bpo-28683.Fp-Hdq.rst @@ -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.d/next/Tests/0009.bpo-28950.1W8Glo.rst b/Misc/NEWS.d/next/Tests/0009.bpo-28950.1W8Glo.rst new file mode 100644 index 0000000..c742178 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/0009.bpo-28950.1W8Glo.rst @@ -0,0 +1 @@ +Disallow -j0 to be combined with -T/-l in regrtest command line arguments. diff --git a/Misc/NEWS.d/next/Tests/0010.bpo-24932.XLTzvR.rst b/Misc/NEWS.d/next/Tests/0010.bpo-24932.XLTzvR.rst new file mode 100644 index 0000000..044e7a4 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/0010.bpo-24932.XLTzvR.rst @@ -0,0 +1 @@ +Use proper command line parsing in _testembed diff --git a/Misc/NEWS.d/next/Tests/0011.bpo-30197.c5wRfu.rst b/Misc/NEWS.d/next/Tests/0011.bpo-30197.c5wRfu.rst new file mode 100644 index 0000000..63461bb --- /dev/null +++ b/Misc/NEWS.d/next/Tests/0011.bpo-30197.c5wRfu.rst @@ -0,0 +1,5 @@ +Enhanced functions swap_attr() and swap_item() in the test.support module. +They now work when delete replaced attribute or item inside the with +statement. The old value of the attribute or item (or None if it doesn't +exist) now will be assigned to the target of the "as" clause, if there is +one. diff --git a/Misc/NEWS.d/next/Tests/0012.bpo-30357.n4CPEa.rst b/Misc/NEWS.d/next/Tests/0012.bpo-30357.n4CPEa.rst new file mode 100644 index 0000000..c7e7b7f --- /dev/null +++ b/Misc/NEWS.d/next/Tests/0012.bpo-30357.n4CPEa.rst @@ -0,0 +1,3 @@ +test_thread: setUp() now uses support.threading_setup() and +support.threading_cleanup() to wait until threads complete to avoid random +side effects on following tests. Initial patch written by Grzegorz Grzywacz. diff --git a/Misc/NEWS.d/next/Tools-Demos/0013.bpo-28102.5fKaek.rst b/Misc/NEWS.d/next/Tools-Demos/0013.bpo-28102.5fKaek.rst new file mode 100644 index 0000000..bfd2f95 --- /dev/null +++ b/Misc/NEWS.d/next/Tools-Demos/0013.bpo-28102.5fKaek.rst @@ -0,0 +1,2 @@ +The zipfile module CLI now prints usage to stderr. Patch by Stephen J. +Turnbull. diff --git a/Misc/NEWS.d/next/Tools-Demos/0014.bpo-15369.bdZ3n-.rst b/Misc/NEWS.d/next/Tools-Demos/0014.bpo-15369.bdZ3n-.rst new file mode 100644 index 0000000..0d785ed --- /dev/null +++ b/Misc/NEWS.d/next/Tools-Demos/0014.bpo-15369.bdZ3n-.rst @@ -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.d/next/Tools-Demos/0015.bpo-28023.4gzSGp.rst b/Misc/NEWS.d/next/Tools-Demos/0015.bpo-28023.4gzSGp.rst new file mode 100644 index 0000000..515c717 --- /dev/null +++ b/Misc/NEWS.d/next/Tools-Demos/0015.bpo-28023.4gzSGp.rst @@ -0,0 +1 @@ +Fix python-gdb.py didn't support new dict implementation. diff --git a/Misc/NEWS.d/next/Tools-Demos/0016.bpo-29367.4dOKL0.rst b/Misc/NEWS.d/next/Tools-Demos/0016.bpo-29367.4dOKL0.rst new file mode 100644 index 0000000..c0dc7d1 --- /dev/null +++ b/Misc/NEWS.d/next/Tools-Demos/0016.bpo-29367.4dOKL0.rst @@ -0,0 +1,2 @@ +python-gdb.py now supports also ``method-wrapper`` (``wrapperobject``) +objects. diff --git a/Misc/NEWS.d/next/Tools-Demos/0017.bpo-24037.KPFC7o.rst b/Misc/NEWS.d/next/Tools-Demos/0017.bpo-24037.KPFC7o.rst new file mode 100644 index 0000000..1be5ab3 --- /dev/null +++ b/Misc/NEWS.d/next/Tools-Demos/0017.bpo-24037.KPFC7o.rst @@ -0,0 +1,3 @@ +Argument Clinic now uses the converter `bool(accept={int})` rather than +`int` for semantical booleans. This avoids repeating the default value for +Python and C and will help in converting to `bool` in future. diff --git a/Misc/NEWS.d/next/Tools-Demos/0018.bpo-29748.6pV6s9.rst b/Misc/NEWS.d/next/Tools-Demos/0018.bpo-29748.6pV6s9.rst new file mode 100644 index 0000000..2992d06 --- /dev/null +++ b/Misc/NEWS.d/next/Tools-Demos/0018.bpo-29748.6pV6s9.rst @@ -0,0 +1 @@ +Added the slice index converter in Argument Clinic. diff --git a/Misc/NEWS.d/next/Windows/0074.bpo-28138.pNdv64.rst b/Misc/NEWS.d/next/Windows/0074.bpo-28138.pNdv64.rst new file mode 100644 index 0000000..fb06e8e --- /dev/null +++ b/Misc/NEWS.d/next/Windows/0074.bpo-28138.pNdv64.rst @@ -0,0 +1 @@ +Windows ._pth file should allow import site diff --git a/Misc/NEWS.d/next/Windows/0075.bpo-28137.C1uvzY.rst b/Misc/NEWS.d/next/Windows/0075.bpo-28137.C1uvzY.rst new file mode 100644 index 0000000..fd98a66 --- /dev/null +++ b/Misc/NEWS.d/next/Windows/0075.bpo-28137.C1uvzY.rst @@ -0,0 +1 @@ +Renames Windows path file to ._pth diff --git a/Misc/NEWS.d/next/Windows/0076.bpo-28164.5MfN0J.rst b/Misc/NEWS.d/next/Windows/0076.bpo-28164.5MfN0J.rst new file mode 100644 index 0000000..83ee2eb --- /dev/null +++ b/Misc/NEWS.d/next/Windows/0076.bpo-28164.5MfN0J.rst @@ -0,0 +1 @@ +_PyIO_get_console_type fails for various paths diff --git a/Misc/NEWS.d/next/Windows/0077.bpo-28163.-DUgJw.rst b/Misc/NEWS.d/next/Windows/0077.bpo-28163.-DUgJw.rst new file mode 100644 index 0000000..0c44499 --- /dev/null +++ b/Misc/NEWS.d/next/Windows/0077.bpo-28163.-DUgJw.rst @@ -0,0 +1 @@ +WindowsConsoleIO fileno() passes wrong flags to _open_osfhandle diff --git a/Misc/NEWS.d/next/Windows/0078.bpo-28162.3FHPVD.rst b/Misc/NEWS.d/next/Windows/0078.bpo-28162.3FHPVD.rst new file mode 100644 index 0000000..2568d36 --- /dev/null +++ b/Misc/NEWS.d/next/Windows/0078.bpo-28162.3FHPVD.rst @@ -0,0 +1 @@ +WindowsConsoleIO readall() fails if first line starts with Ctrl+Z diff --git a/Misc/NEWS.d/next/Windows/0079.bpo-28161.hF91LI.rst b/Misc/NEWS.d/next/Windows/0079.bpo-28161.hF91LI.rst new file mode 100644 index 0000000..667817a --- /dev/null +++ b/Misc/NEWS.d/next/Windows/0079.bpo-28161.hF91LI.rst @@ -0,0 +1 @@ +Opening CON for write access fails diff --git a/Misc/NEWS.d/next/Windows/0080.bpo-28110.cnkP5F.rst b/Misc/NEWS.d/next/Windows/0080.bpo-28110.cnkP5F.rst new file mode 100644 index 0000000..174690e --- /dev/null +++ b/Misc/NEWS.d/next/Windows/0080.bpo-28110.cnkP5F.rst @@ -0,0 +1 @@ +launcher.msi has different product codes between 32-bit and 64-bit diff --git a/Misc/NEWS.d/next/Windows/0081.bpo-28251.tR_AFs.rst b/Misc/NEWS.d/next/Windows/0081.bpo-28251.tR_AFs.rst new file mode 100644 index 0000000..16d5ad0 --- /dev/null +++ b/Misc/NEWS.d/next/Windows/0081.bpo-28251.tR_AFs.rst @@ -0,0 +1 @@ +Improvements to help manuals on Windows. diff --git a/Misc/NEWS.d/next/Windows/0082.bpo-28333.KnpeO4.rst b/Misc/NEWS.d/next/Windows/0082.bpo-28333.KnpeO4.rst new file mode 100644 index 0000000..564c925 --- /dev/null +++ b/Misc/NEWS.d/next/Windows/0082.bpo-28333.KnpeO4.rst @@ -0,0 +1 @@ +Enables Unicode for ps1/ps2 and input() prompts. (Patch by Eryk Sun) diff --git a/Misc/NEWS.d/next/Windows/0083.bpo-28402.v9zETJ.rst b/Misc/NEWS.d/next/Windows/0083.bpo-28402.v9zETJ.rst new file mode 100644 index 0000000..cdf17e1 --- /dev/null +++ b/Misc/NEWS.d/next/Windows/0083.bpo-28402.v9zETJ.rst @@ -0,0 +1 @@ +Adds signed catalog files for stdlib on Windows. diff --git a/Misc/NEWS.d/next/Windows/0084.bpo-28522.XHMQa7.rst b/Misc/NEWS.d/next/Windows/0084.bpo-28522.XHMQa7.rst new file mode 100644 index 0000000..9b91f32 --- /dev/null +++ b/Misc/NEWS.d/next/Windows/0084.bpo-28522.XHMQa7.rst @@ -0,0 +1 @@ +Fixes mishandled buffer reallocation in getpathp.c diff --git a/Misc/NEWS.d/next/Windows/0085.bpo-28896.qOcBBL.rst b/Misc/NEWS.d/next/Windows/0085.bpo-28896.qOcBBL.rst new file mode 100644 index 0000000..727830c --- /dev/null +++ b/Misc/NEWS.d/next/Windows/0085.bpo-28896.qOcBBL.rst @@ -0,0 +1 @@ +Deprecate WindowsRegistryFinder and disable it by default diff --git a/Misc/NEWS.d/next/Windows/0086.bpo-25778.8uKJ82.rst b/Misc/NEWS.d/next/Windows/0086.bpo-25778.8uKJ82.rst new file mode 100644 index 0000000..efe9745 --- /dev/null +++ b/Misc/NEWS.d/next/Windows/0086.bpo-25778.8uKJ82.rst @@ -0,0 +1 @@ +winreg does not truncate string correctly (Patch by Eryk Sun) diff --git a/Misc/NEWS.d/next/Windows/0087.bpo-29579.07B-FQ.rst b/Misc/NEWS.d/next/Windows/0087.bpo-29579.07B-FQ.rst new file mode 100644 index 0000000..13c5b0d --- /dev/null +++ b/Misc/NEWS.d/next/Windows/0087.bpo-29579.07B-FQ.rst @@ -0,0 +1 @@ +Removes readme.txt from the installer. diff --git a/Misc/NEWS.d/next/Windows/0088.bpo-30450.qsaK8y.rst b/Misc/NEWS.d/next/Windows/0088.bpo-30450.qsaK8y.rst new file mode 100644 index 0000000..be003d1 --- /dev/null +++ b/Misc/NEWS.d/next/Windows/0088.bpo-30450.qsaK8y.rst @@ -0,0 +1,4 @@ +The build process on Windows no longer depends on Subversion, instead +pulling external code from GitHub via a Python script. If Python 3.6 is not +found on the system (via ``py -3.6``), NuGet is used to download a copy of +32-bit Python. |