summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update badges in README.rst3.7-readme-updateZachary Ware2019-10-101-8/+4
| | | We no longer use AppVeyor in 3.x, and others were still pointed at master.
* bpo-38109: Add missing constants to Lib/stat.py (GH-16665) (GH-16691)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>
* [3.7] bpo-38409: Fix grammar in str.strip() docstring (GH-16682) (GH-16686)Zachary Ware2019-10-092-4/+4
| | | (cherry picked from commit 09895c27cd8ff60563a794016e8c099bc897cc74)
* [3.7] bpo-38379: don't claim objects are collected when they aren't ↵Pablo Galindo2019-10-093-7/+76
| | | | | | | | | | | | | | | | | | | | (GH-16658) (GH-16685) * [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>
* [3.7] bpo-38407: Add docstrings for typing.SupportsXXX classes. (GH-16644). ↵Serhiy Storchaka2019-10-091-0/+6
| | | | | | (GH-16673) (cherry picked from commit 8252c52e57283515ace5d4251584255dc5c60eb5)
* [3.7] bpo-38405: Make nested subclasses of typing.NamedTuple pickleable. ↵Serhiy Storchaka2019-10-093-8/+23
| | | | | | (GH-16641). (GH-16674) (cherry picked from commit 13abda41003daf599587991d8291f0dacf6e9519)
* bpo-36953: Delay removal of ABCs from collections. (GH-13409)Miss Islington (bot)2019-10-093-4/+9
| | | | | | | | | Bump the removal to 3.9, indicate collections.abc available since 3.3, replace version-changed directive to deprecated-removed. https://bugs.python.org/issue36953 (cherry picked from commit eea47e09394dfb64d3a59a601d947d25bb1bdc96) Co-authored-by: Matthias Bussonnier <mbussonnier@ucmerced.edu>
* bpo-38368: Added fix for ctypes crash when handling arrays in ↵Vinay Sajip2019-10-093-25/+231
| | | | | structs/unions. (GH-16589) (GH-16672) (cherry picked from commit e8bedbddadaa86be6bd86dc32dbdbd53933a4988)
* Typo fix: "empy" should be "empty". (GH-16666)Miss Islington (bot)2019-10-081-1/+1
| | | | | (cherry picked from commit 01171ebd966b0cd6352057799ad876dd1e07942e) Co-authored-by: Hansraj Das <raj.das.136@gmail.com>
* [3.7] bpo-38294: Add list of no-longer-escaped chars to re.escape ↵Ricardo Bánffy2019-10-083-3/+7
| | | | | | | | | | documentation. (GH-16442) (GH-16647) 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)
* 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-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-062-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-16577) (cherry picked from commit 3142c667b50254daaa28f22c79bdda177136bd03) Co-authored-by: Ashley Whetter <AWhetter@users.noreply.github.com>
* bpo-34344 Fix AbstractEventLoopPolicy.get_event_loop docstring (GH-16463)Miss Islington (bot)2019-10-031-2/+2
| | | | | (cherry picked from commit b23a8423a923077e4f83d3f328bb7542b4c940ed) Co-authored-by: idomic <michael.ido@gmail.com>
* [3.8] bpo-36670, regrtest: Fix WindowsLoadTracker() for partial line ↵Miss Islington (bot)2019-10-035-74/+134
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (GH-16550) (GH-16560) * bpo-36670, regrtest: Fix WindowsLoadTracker() for partial line (GH-16550) WindowsLoadTracker.read_output() now uses a short buffer for incomplete line. (cherry picked from commit 3e04cd268ee9a57f95dc78d8974b21a6fac3f666) * bpo-36670: Enhance regrtest WindowsLoadTracker (GH-16553) The last line is now passed to the parser even if it does not end with a newline, but only if it's a valid value. (cherry picked from commit c65119d5bfded03f80a9805889391b66fa7bf551) * bpo-36670: Enhance regrtest (GH-16556) * Add log() method: add timestamp and load average prefixes to main messages. * WindowsLoadTracker: * LOAD_FACTOR_1 is now computed using SAMPLING_INTERVAL * Initialize the load to the arithmetic mean of the first 5 values of the Processor Queue Length value (so over 5 seconds), rather than 0.0. * Handle BrokenPipeError and when typeperf exit. * format_duration(1.5) now returns '1.5 sec', rather than '1 sec 500 ms' (cherry picked from commit 098e25672f1c3578855d5ded4f5147795c9ed956) (cherry picked from commit de3195c937d5fca0d79cc93dbafa76c0f89ca5b8) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-38338, test.pythoninfo: add more ssl infos (GH-16539)Miss Islington (bot)2019-10-021-0/+31
| | | | | | | | test.pythoninfo now logs environment variables used by OpenSSL and Python ssl modules, and logs attributes of 3 SSL contexts (SSLContext, default HTTPS context, stdlib context). (cherry picked from commit b3e7045f8314e7b62cd95861d207fe2f97e47198) Co-authored-by: Victor Stinner <vstinner@python.org>
* Post release updatesNed Deily2019-10-012-3/+3
|
* Merge tag 'v3.7.5rc1' into 3.7Ned Deily2019-10-01138-295/+1403
|\
| * 3.7.5rc1v3.7.5rc1Ned Deily2019-10-01136-292/+1386
| |
| * Update macOS installer displays for 3.7.5rc1Ned Deily2019-10-012-3/+17
| |
* | Correct typos in the codecs module documentation (GH-15135)Miss Islington (bot)2019-10-011-60/+61
|/ | | | | (cherry picked from commit 891e9e3b44c99d643dc309a4e63082451271b136) Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
* bpo-36670: Multiple regrtest bugfixes (GH-16511)Miss Islington (bot)2019-10-013-133/+175
| | | | | | | | | | | | | | | | | | | * Windows: Fix counter name in WindowsLoadTracker. Counter names are localized: use the registry to get the counter name. Original change written by Lorenz Mende. * Regrtest.main() now ensures that the Windows load tracker is also killed if an exception is raised * TestWorkerProcess now ensures that worker processes are no longer running before exiting: kill also worker processes when an exception is raised. * Enhance regrtest messages and warnings: include test name, duration, add a worker identifier, etc. * Rename MultiprocessRunner to TestWorkerProcess * Use print_warning() to display warnings. Co-Authored-By: Lorenz Mende <Lorenz.mende@gmail.com> (cherry picked from commit 982bfa4da07b2e5749a0f4e68f99e972bcc3a549) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* Fix and improve `asyncio.run()` docs (GH-16403) (GH-16505)Miss Islington (bot)2019-09-303-10/+4
| | | | | (cherry picked from commit e407013089259e4c0b271703e1975bbcd578a2d5) Co-authored-by: Kyle Stanley <aeros167@gmail.com>
* bpo-38019: correctly handle pause/resume reading of closed asyncio unix pipe ↵Miss Islington (bot)2019-09-293-0/+39
| | | | | | | (GH-16472) (cherry picked from commit 58498bc7178608b1ab031994ca09c43889ce3e76) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
* [3.7] bpo-38216, bpo-36274: Allow subclasses to separately override ↵Jason R. Coombs2019-09-283-10/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | validation and encoding behavior (GH-16448) (GH-16461) * bpo-38216: Allow bypassing input validation * bpo-36274: Also allow the URL encoding to be overridden. * bpo-38216, bpo-36274: Add tests demonstrating a hook for overriding validation, test demonstrating override encoding, and a test to capture expectation of the interface for the URL. * Call with skip_host to avoid tripping on the host checking in the URL. * Remove obsolete comment. * Make _prepare_path_encoding its own attr. This makes overriding just that simpler. Also, don't use the := operator to make backporting easier. * Add a news entry. * _prepare_path_encoding -> _encode_prepared_path() * Once again separate the path validation and request encoding, drastically simplifying the behavior. Drop the guarantee that all processing happens in _prepare_path.. (cherry picked from commit 7774d7831e8809795c64ce27f7df52674581d298) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* bpo-38301: In Solaris family, we must be sure to use '-D_REENTRANT' ↵Miss Islington (bot)2019-09-283-0/+8
| | | | | | | (GH-16446) (#16450) (cherry picked from commit 52d1b86bde2b772a76919c76991c326384954bf1) Co-authored-by: Jesús Cea <jcea@jcea.es>
* bpo-38243, xmlrpc.server: Escape the server_title (GH-16373)Miss Islington (bot)2019-09-273-1/+21
| | | | | | | Escape the server title of xmlrpc.server.DocXMLRPCServer when rendering the document page as HTML. (cherry picked from commit e8650a4f8c7fb76f570d4ca9c1fbe44e91c8dfaa) Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
* [3.7] bpo-38275: Skip ssl tests for disabled versions (GH-16427)Christian Heimes2019-09-262-56/+150
| | | | | | | | | | test_ssl now handles disabled TLS/SSL versions better. OpenSSL's crypto policy and run-time settings are recognized and tests for disabled versions are skipped. Signed-off-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue38275 (cherry picked from commit df6ac7e2b82d921a6e9ff5571b40c6dbcf635581)
* bpo-38239: Fix test_gdb for Link Time Optimization (LTO) (GH-16422) (GH-16426)Victor Stinner2019-09-262-2/+10
| | | (cherry picked from commit 64b4a3a2deabcd4103fac2759a311fe94159b4d1)
* bpo-38130: Fix error in explaining when an exception is re-raised (GH-16016) ↵Miss Islington (bot)2019-09-261-1/+1
| | | | | | | | (GH-16416) Co-Authored-By: Ashwin Ramaswami <aramaswamis@gmail.com> (cherry picked from commit 1ad7be2f16cc9955f271f57a5089602bb41eee85) Co-authored-by: Mohammad Dehghan <md.unicorn@gmail.com>
* Doc: Use the `with` statement in the first example of the ftplib doc. ↵Miss Islington (bot)2019-09-261-1/+2
| | | | | | | (GH-16271) (GH-16413) (cherry picked from commit 5d326abf2cb4891b78d9319a81bffb3974b5b745) Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
* [3.7] closes bpo-38174: Update vendored expat library to 2.2.8. (GH-16407)Benjamin Peterson2019-09-2524-4842/+3973
| | | | | | Fixes CVE-2019-15903. See full changelog at https://github.com/libexpat/libexpat/blob/R_2_2_8/expat/Changes.. (cherry picked from commit 52b940803860e37bcc3f6096b2d24e7c20a0e807) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* [3.7] bpo-22273: Changed conditions for ctypes array-in-struct handling. ↵Vinay Sajip2019-09-251-7/+4
| | | | | (GH-16381) (GH-16400) (cherry picked from commit c64af8fad3c4f5751af624647fbb0ce023f525dc)
* bpo-38271: encrypt private key test files with AES256 (GH-16385)Miss Islington (bot)2019-09-254-86/+91
| | | | | | | | | | | | | | | The private keys for test_ssl were encrypted with 3DES in traditional PKCSGH-5 format. 3DES and the digest algorithm of PKCSGH-5 are blocked by some strict crypto policies. Use PKCSGH-8 format with AES256 encryption instead. Signed-off-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue38271 Automerge-Triggered-By: @tiran (cherry picked from commit bfd0c963d88f3df69489ee250655e2b8f3d235bd) Co-authored-by: Christian Heimes <christian@python.org>
* bpo-38255: super() can search attributes as well as methods (GH-16368) ↵Miss Islington (bot)2019-09-251-0/+4
| | | | | | | | (GH-16392) Improvement suggested by Géry Ogam. (cherry picked from commit 15ccc4fac09b866d61b069c6c136aabfe4bac09c) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* bpo-38260: Add Docs on asyncio.run (GH-16337)Miss Islington (bot)2019-09-252-0/+16
| | | | | | | | | | Add docs about return and raise exception on asyncio.run https://bugs.python.org/issue38260 Automerge-Triggered-By: @asvetlov (cherry picked from commit 17deb16883fa574a86e42551cc37f044182347ad) Co-authored-by: Emmanuel Arias <emmanuelarias30@gmail.com>
* [3.7] bpo-36871: Handle spec errors in assert_has_calls (GH-16364) (GH-16374)Gregory P. Smith2019-09-243-3/+40
| | | | | | | | | | | | | Handle spec errors in assert_has_calls (GH-16005) (GH-16364) The fix in PR 13261 handled the underlying issue about the spec for specific methods not being applied correctly, but it didn't fix the issue that was causing the misleading error message. The code currently grabs a list of responses from _call_matcher (which may include exceptions). But it doesn't reach inside the list when checking if the result is an exception. This results in a misleading error message when one of the provided calls does not match the spec. https://bugs.python.org/issue36871 Co-authored-by: Samuel Freilich <sfreilich@google.com> (cherry picked from commit 1a17a054f6314ce29cd2632c28aeed317a615360)
* bpo-22273: Update ctypes to correctly handle arrays in small structur… ↵Miss Islington (bot)2019-09-253-0/+187
| | | | | (GH-15839) (GH-16369) (cherry picked from commit 12f209eccb1587e8c98057d9c5f865c21f4a16c1)
* bpo-37123: multiprocessing test_mymanager() accepts SIGTERM (GH-16349)Miss Islington (bot)2019-09-242-5/+10
| | | | | | | | | | | Multiprocessing test test_mymanager() now also expects -SIGTERM, not only exitcode 0. bpo-30356: BaseManager._finalize_manager() sends SIGTERM to the manager process if it takes longer than 1 second to stop, which happens on slow buildbots. (cherry picked from commit b0e1ae5f5430433766e023c1a6936aeba0f2b84e) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-38212: Increase MP test_queue_feeder_donot_stop_onexc() timeout (GH-16348)Miss Islington (bot)2019-09-242-2/+3
| | | | | | | Multiprocessing tests: increase test_queue_feeder_donot_stop_onexc() timeout from 1 to 60 seconds. (cherry picked from commit 99799c722065d0524f3ab0bc455e1938bb8dc60f) Co-authored-by: Victor Stinner <vstinner@python.org>
* closes bpo-38253: Fix typo of Py_SET_ERANGE_IF_OVERFLOW in pyport.h. (GH-16230)Miss Islington (bot)2019-09-231-1/+1
| | | | | (cherry picked from commit 4346bad3321699d49a45e3446270b57726ab5c8f) Co-authored-by: Hai Shi <shihai1992@gmail.com>