summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* v3.8.0v3.8.0Łukasz Langa2019-10-1423-42/+194
|
* [3.8] bpo-37759: Polish What's New in Python 3.8. (GH-16769) (#16777)Łukasz Langa2019-10-141-88/+123
| | | | | (cherry picked from commit 298439ce3fb01de6c3110cc4847e6afe3253ba7a) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Make 3.8 README link to 3.8 doc pages, not master (GH-16776)Ned Deily2019-10-141-5/+5
|
* Update build docs for macOS (GH-16771)Miss Islington (bot)2019-10-143-80/+86
| | | | | (cherry picked from commit 19d6842c15c145f65178f806048ac1a8ae7d05f6) Co-authored-by: Ned Deily <nad@python.org>
* bpo-38469: Handle named expression scope with global/nonlocal keywords ↵Miss Islington (bot)2019-10-143-3/+56
| | | | | | | | (GH-16755) (#16760) The symbol table handing of PEP572's assignment expressions is not resolving correctly the scope of some variables in presence of global/nonlocal keywords in conjunction with comprehensions. (cherry picked from commit fd5c414880b2e05720b9cf14ab0b0d7ae2b7d925) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* [3.8] Update macOS installer display files for 3.8.0 (GH-16766)Ned Deily2019-10-143-75/+52
|
* bpo-37759: Add examples for the new typing features (GH-16763) (GH-16764)Miss Islington (bot)2019-10-141-5/+21
| | | | | (cherry picked from commit a3291531ea51455cfa5989119db496267425323c) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* bpo-38461 and bpo-38463: Minor fixes to Whatsnew 3.8 (GH-16761) (GH-16762)Miss Islington (bot)2019-10-141-9/+10
| | | | | | | | * bpo-38461: ncurses misspelled as curses * bpo-38463: Fix broken link (cherry picked from commit 61a6db5e79921b89b9e2a154990f01f5f3150213) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* Fix minor typos in Whatsnew (GH-16759)Raymond Hettinger2019-10-141-12/+10
|
* bpo-38464: Document parameter for NormalDist.quantiles() (GH-16757) (GH-16758)Miss Islington (bot)2019-10-141-1/+1
| | | | | (cherry picked from commit 8a6cbf8adb68aa2c43a48769af92e50d5ca1539d) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* Fix strict-aliasing rules errors on gcc 4.8.5. (GH-16714)Miss Islington (bot)2019-10-141-1/+1
| | | | | (cherry picked from commit c39d1ddc012987e2159a997e27665d2d579c0ce0) Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
* Rebased version of what's new PR (GH-16745) (#16748)Miss Islington (bot)2019-10-131-83/+67
| | | | | | | | * Use Unicode character for accent * Various grammar fixes * Sort library modules alphabetically; remove duplicated idlelib/IDLE section (cherry picked from commit bb78f6cfa6f2b84fa4611d39c35baf1c7dce7f8d) Co-authored-by: Andrew Kuchling <amk@amk.ca>
* bpo-38467: Fix argument name of typing functions (GH-16753)Miss Islington (bot)2019-10-131-2/+2
| | | | | (cherry picked from commit fdfe2833ace93021278fe4c41c40e1d08d70abf9) Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
* bpo-28556: Remove another mention of metaclass of Generic in typing docs ↵Miss Islington (bot)2019-10-131-2/+2
| | | | | | | | | | (GH-16743) Metaclass was removed in Python 3.7 (there is already a `versionchanged` item about this). https://bugs.python.org/issue28556 (cherry picked from commit 8144095707f87bdee6f3e1bbb15283ea61381be6) Co-authored-by: Ivan Levkivskyi <levkivskyi@gmail.com>
* Correct signature of __build_class__ (GH-16735)Miss Islington (bot)2019-10-131-1/+1
| | | | | (cherry picked from commit e3babbd03cd2bcb3c85deabae3bc6976aa95a3c3) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-38431: Fix __repr__ method of InitVar to work with typing objects. ↵Miss Islington (bot)2019-10-133-1/+9
| | | | | | | (GH-16702) (cherry picked from commit 793cb85437299a3da3d74fe65480d720af330cbb) Co-authored-by: Samuel Colvin <samcolvin@gmail.com>
* bpo-37731: Reorder includes in xmltok.c to avoid redefinition of ↵Miss Islington (bot)2019-10-121-8/+8
| | | | | | | _POSIX_C_SOURCE (GH-16733) (cherry picked from commit 8177404d520e81f16324a900f093adf3856d33f8) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* Announce the change in the CancelledError inheritance (GH-16730)Miss Islington (bot)2019-10-121-0/+4
| | | | | | | This is a fairly noticeable change that requires adjustments in existing asyncio code. It should therefore be announced. (cherry picked from commit e634da27471a76f4abe685e86e6e302e0ed6b553) Co-authored-by: Phil Jones <philip.graham.jones@googlemail.com>
* bpo-38332: Catch KeyError from unknown cte in encoded-word. (GH-16503)Miss Islington (bot)2019-10-124-1/+18
| | | | | | KeyError should cause a failure in parsing the encoded word and should be caught and raised as a _InvalidEWError instead. (cherry picked from commit 65dcc8a8dc41d3453fd6b987073a5f1b30c5c0fd) Co-authored-by: Andrei Troie <andreitroie90@gmail.com>
* [3.8] bpo-38449: Revert "bpo-22347: Update mimetypes.guess_type to allow ↵Abhilash Raj2019-10-124-11/+4
| | | | | | | | | | | | oper parsing of URLs" (GH-16724) (GH-16728) This reverts commit 87bd2071c756188b6cd577889fb1682831142ceb. The reason for revert is a regression caused by the change in 3.8.0rc1, see bpo-38449 for more details. https://bugs.python.org/issue38449 (cherry picked from commit 19a3d873005e5730eeabdc394c961e93f2ec02f0) Co-authored-by: Abhilash Raj <maxking@users.noreply.github.com>
* bpo-38341: Add SMTPNotSupportedError in the exports of smtplib (GH-16525)Miss Islington (bot)2019-10-122-1/+2
| | | | | | | | Add SMTPNotSupportedError in the exports of smtplib Co-Authored-By: Brandt Bucher <brandtbucher@gmail.com> (cherry picked from commit 3faf826e5879536d2272f1a51c58965a16827f81) Co-authored-by: nde <denayer.norman@gmail.com>
* Fix typo in the "Porting to Python 3.8" section. (GH-16435)Miss Islington (bot)2019-10-111-1/+1
| | | | | (cherry picked from commit dd6117c6d7859fee57751593cd56f0862131de8b) Co-authored-by: bariod <35639254+bariod@users.noreply.github.com>
* Update badges in README.rst (GH-16709)Zachary Ware2019-10-111-10/+6
| | | We no longer use AppVeyor on 3.x, and others were still pointed at master.
* bpo-38347: find pathfix for Python scripts whose name contain a '-' (GH-16536)Miss Islington (bot)2019-10-113-10/+30
| | | | | | pathfix.py: Assume all files that end on '.py' are Python scripts when working recursively. (cherry picked from commit 2b7dc40b2af6578181808ba73c1533fc114e55df) Co-authored-by: Ruediger Pluem <r.pluem@gmx.de>
* [3.8] Typo fix: "throuhgh" should be "through". (GH-16713)Benjamin Peterson2019-10-111-1/+1
| | | | | (cherry picked from commit a8e0d3141e271b3c0fbb7399a911f0c3aa567e30) Co-authored-by: Hansraj Das <raj.das.136@gmail.com>
* docs: Add asyncio source code links (GH-16640)Miss Islington (bot)2019-10-1011-4/+54
| | | | | (cherry picked from commit f900064ac4b35226caad7502abc8a7e64f1c0e9d) Co-authored-by: Kyle Stanley <aeros167@gmail.com>
* Re-enable the OverflowError test for test_truediv on test_complex (GH-16591)Miss Islington (bot)2019-10-101-2/+1
| | | | | (cherry picked from commit 1dbe5373851acb85ba91f0be7b83c69563acd68d) Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
* bpo-38109: Add missing constants to Lib/stat.py (GH-16665) (GH-16690)Miss Islington (bot)2019-10-103-6/+21
| | | | | | | | Add missing stat.S_IFDOOR, stat.S_IFPORT, stat.S_IFWHT, stat.S_ISDOOR, stat.S_ISPORT, and stat.S_ISWHT values to the Python implementation of the stat module. (cherry picked from commit 7bb14316b8ceddb813f31040a299af94a57ab339) Co-authored-by: Ronan Lamy <ronan.lamy@gmail.com>
* bpo-32996: Documentation fix-up. (GH-16646)Miss Islington (bot)2019-10-101-3/+4
| | | | | | | | | PR GH-4906 changed the typing.Generic class hierarchy, leaving an outdated comment in the library reference. User-defined Generic ABCs now must get a abc.ABCMeta metaclass from something other than typing.Generic inheritance. (cherry picked from commit d47f0dd2e85ce032aebfedbde18cdb2e728fa79f) Co-authored-by: M. Eric Irrgang <mei2n@virginia.edu>
* bpo-38425: Fix ‘res’ may be used uninitialized warning (GH-16688)Miss Islington (bot)2019-10-102-2/+4
| | | | | (cherry picked from commit a05fcd3c7adf6e3a0944da8cf80a3346882e9b3b) Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
* bpo-38409: Fix grammar in str.strip() docstring (GH-16682) (GH-16684)Miss Islington (bot)2019-10-092-4/+4
| | | (cherry picked from commit 09895c27cd8ff60563a794016e8c099bc897cc74)
* [3.8] bpo-38379: don't claim objects are collected when they aren't ↵Pablo Galindo2019-10-093-6/+75
| | | | | | | | | | | | | | | | | | | | (GH-16658) (GH-16683) * [bpo-38379](https://bugs.python.org/issue38379): when a finalizer resurrects an object, nothing is actually collected in this run of gc. Change the stats to relect that truth. (cherry picked from commit ecbf35f9335b0420cb8adfda6f299d6747a16515) Co-authored-by: Tim Peters <tim.peters@gmail.com> https://bugs.python.org/issue38379 Automerge-Triggered-By: @pablogsal
* bpo-37531: regrtest ignores output on timeout (GH-16659)Miss Islington (bot)2019-10-092-27/+42
| | | | | | | | | | | | | | bpo-37531, bpo-38207: On timeout, regrtest no longer attempts to call `popen.communicate() again: it can hang until all child processes using stdout and stderr pipes completes. Kill the worker process and ignores its output. Reenable test_regrtest.test_multiprocessing_timeout(). bpo-37531: Change also the faulthandler timeout of the main process from 1 minute to 5 minutes, for Python slowest buildbots. (cherry picked from commit 0ec618af98ac250a91ee9c91f8569e6df6772758) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-38368: Added fix for ctypes crash when handling arrays in ↵Vinay Sajip2019-10-093-25/+231
| | | | | structs/unions. (GH-16589) (GH-16671) (cherry picked from commit e8bedbddadaa86be6bd86dc32dbdbd53933a4988)
* Typo fix: "empy" should be "empty". (GH-16666)Miss Islington (bot)2019-10-091-1/+1
| | | | | (cherry picked from commit 01171ebd966b0cd6352057799ad876dd1e07942e) Co-authored-by: Hansraj Das <raj.das.136@gmail.com>
* [3.8] bpo-38395: Fix ownership in weakref.proxy methods (GH-16632) (GH-16662)Pablo Galindo2019-10-083-31/+111
| | | | | | | | | | | | | | | | The implementation of weakref.proxy's methods call back into the Python API using a borrowed references of the weakly referenced object (acquired via PyWeakref_GET_OBJECT). This API call may delete the last reference to the object (either directly or via GC), leaving a dangling pointer, which can be subsequently dereferenced. To fix this, claim a temporary ownership of the referenced object when calling the appropriate method. Some functions because at the moment they do not need to access the borrowed referent, but to protect against future changes to these functions, ownership need to be fixed in all potentially affected methods.. (cherry picked from commit 10cd00a9e3c22af37c748ea5a417f6fb66601e21) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-38407: Add docstrings for typing.SupportsXXX classes. (GH-16644)Miss Islington (bot)2019-10-081-0/+7
| | | | | (cherry picked from commit 8252c52e57283515ace5d4251584255dc5c60eb5) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-38405: Make nested subclasses of typing.NamedTuple pickleable. (GH-16641)Miss Islington (bot)2019-10-083-8/+23
| | | | | (cherry picked from commit 13abda41003daf599587991d8291f0dacf6e9519) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-38118: Ignore Valgrind false alarm in PyUnicode_Decode() (GH-16651)Miss Islington (bot)2019-10-082-0/+13
| | | | | | | | | | Valgrind emits "Conditional jump or move depends on uninitialised value(s)" false alarms on GCC builtin strcmp() function. The GCC code is correct. Valgrind bug: https://bugs.kde.org/show_bug.cgi?id=264936 (cherry picked from commit 03ab6b4fc6f59a4452756e7a3a46310ce30ec4b2) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-36698: IDLE no longer fails when write non-encodable characters to ↵Miss Islington (bot)2019-10-085-67/+87
| | | | | | | | | stderr. (GH-16583) It now escapes them with a backslash, as the regular Python interpreter. Added the "errors" field to the standard streams. (cherry picked from commit b690a2759e62d9ee0b6ea1b20e8f7e4b2cdbf8bb) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Fix typo in _warnings.warn_explicit() docstring (GH-16625)Miss Islington (bot)2019-10-081-1/+1
| | | | | (cherry picked from commit 5dfbb4d50333e7a91fc0cd8c03a2f2f2cf56dbd9) Co-authored-by: Hansraj Das <raj.das.136@gmail.com>
* bpo-38344: Fix syntax in activate.bat (GH-16533)Miss Islington (bot)2019-10-072-1/+2
| | | | | (cherry picked from commit e310af9e2941c2fbb7370e003276cc37eb230f16) Co-authored-by: James Abel <j@abel.co>
* bpo-38294: Add list of no-longer-escaped chars to re.escape documentation. ↵Miss Islington (bot)2019-10-073-3/+7
| | | | | | | | | | | (GH-16442) Prior to 3.7, re.escape escaped many characters that don't have special meaning in Python, but that use to require escaping in other tools and languages. This commit aims to make it clear which characters were, but are no longer escaped. (cherry picked from commit 15ae75d660befe643ed42eb2707a557cea97256c) Co-authored-by: Ricardo Bánffy <rbanffy@gmail.com>
* bpo-38376: Fix _PyUnicode_CheckConsistency() definition (GH-16623)Victor Stinner2019-10-073-11/+4
| | | Always define _PyUnicode_CheckConsistency() in the CPython C API.
* bpo-36356: Fix memory leak in _asynciomodule.c (GH-16598)Miss Islington (bot)2019-10-071-0/+7
| | | | | (cherry picked from commit 321def805abc5b7c92c7e90ca90cb2434fdab855) Co-authored-by: Ben Harper <btharper1221@gmail.com>
* bpo-38391: Fixing a typo for Py_DECREF (GH-16616)Miss Islington (bot)2019-10-071-1/+1
| | | | | (cherry picked from commit 038503e08ac5b10601b95d5adc2c2cab7be10163) Co-authored-by: Krishna Oza <krishoza15sep@gmail.com>
* bpo-26510: Add versionchanged for required arg of add_subparsers (GH-16588)Miss Islington (bot)2019-10-072-1/+8
| | | | | | | | | | The `required` argument to `argparse.add_subparsers` was added in GH-3027. This PR specifies the earliest version of Python where it is available. https://bugs.python.org/issue26510 Automerge-Triggered-By: @merwok (cherry picked from commit 9e71917e0290972f65711f75510078f799cf0b59) Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
* bpo-38383: Fix possible integer overflow in startswith() of bytes and ↵Miss Islington (bot)2019-10-061-1/+1
| | | | | | | bytearray. (GH-16603) (cherry picked from commit 24ddd9c2d6ab61cbce7e68d6de36d4df9bd2c3fb) Co-authored-by: Hai Shi <shihai1992@gmail.com>
* bpo-13153: Use OS native encoding for converting between Python and Tcl. ↵Miss Islington (bot)2019-10-049-241/+240
| | | | | | | | | | | | | | | (GH-16545) On Windows use UTF-16 (or UTF-32 for 32-bit Tcl_UniChar) with the "surrogatepass" error handler for converting to/from Tcl Unicode objects. On Linux use UTF-8 with the "surrogateescape" error handler for converting to/from Tcl String objects. Converting strings from Tcl to Python and back now never fails (except MemoryError). (cherry picked from commit 06cb94bc8419b9a24df6b0d724fcd8e40c6971d6) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-38235: Correct some arguments names in logging documentation (GH-16571) ↵Miss Islington (bot)2019-10-041-17/+17
| | | | | | | (GH-16576) (cherry picked from commit 3142c667b50254daaa28f22c79bdda177136bd03) Co-authored-by: Ashley Whetter <AWhetter@users.noreply.github.com>