]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
7 years agobpo-33947: dataclasses no longer can raise RecursionError in repr (GF9916) (#9970)
Miss Islington (bot) [Fri, 19 Oct 2018 17:28:30 +0000 (10:28 -0700)] 
bpo-33947:  dataclasses no longer can raise RecursionError in repr (GF9916) (#9970)

The reprlib code was copied here instead of importing reprlib. I'm not sure if we really need to avoid the import, but since I expect dataclasses to be more common that reprlib, it seems wise. Plus, the code is small.
(cherry picked from commit dd13c88b5371e13fc16b84e2f9b8715d917de269)

Co-authored-by: Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి) <srinivasreddy@users.noreply.github.com>
7 years agobpo-34936: Fix TclError in tkinter.Spinbox.selection_element(). (GH-9760) (GH-9957)
Juliette Monsel [Fri, 19 Oct 2018 15:20:00 +0000 (17:20 +0200)] 
bpo-34936: Fix TclError in tkinter.Spinbox.selection_element(). (GH-9760) (GH-9957)

(cherry picked from commit 1deea5e53991b46351f6bb395b22365c9455ed88)

7 years agobpo-34866: Adding max_num_fields to cgi.FieldStorage (GH-9660)
Miss Islington (bot) [Fri, 19 Oct 2018 11:11:16 +0000 (04:11 -0700)] 
bpo-34866: Adding max_num_fields to cgi.FieldStorage (GH-9660)

Adding `max_num_fields` to `cgi.FieldStorage` to make DOS attacks harder by
limiting the number of `MiniFieldStorage` objects created by `FieldStorage`.
(cherry picked from commit 209144831b0a19715bda3bd72b14a3e6192d9cc1)

Co-authored-by: matthewbelisle-wf <matthew.belisle@workiva.com>
7 years agoFix several reference counting bugs in pyexpat.c. (GH-9955)
Miss Islington (bot) [Fri, 19 Oct 2018 07:16:25 +0000 (00:16 -0700)] 
Fix several reference counting bugs in pyexpat.c. (GH-9955)

(cherry picked from commit 68def052dcd41313eff2bd9f269e22c5a941db4d)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
7 years agoIn email docs, correct spelling of foregoing (GH-9856) (#9919)
Miss Islington (bot) [Fri, 19 Oct 2018 00:17:25 +0000 (17:17 -0700)] 
In email docs, correct spelling of foregoing (GH-9856) (#9919)

(cherry picked from commit c984d20ec81609aa439ccdb3af5bc35fca0c2112)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
7 years agoIn email.parser in message_from_bytes, update `strict` to `policy` (GH-9854) (#9917)
Miss Islington (bot) [Fri, 19 Oct 2018 00:16:16 +0000 (17:16 -0700)] 
In email.parser in message_from_bytes, update `strict` to `policy` (GH-9854) (#9917)

According to the versionchanged note, the `strict` argument was removed in 3.3 and `policy` was added, but the name of the argument in the paragraph wasn't updated.
(cherry picked from commit a5ca98537b9f3f5eeae9157b1548b741df3fbf90)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
7 years agoUpdated documentation on logging.debug(). (GH-9946) (GH-9949) 9954/head
Miss Islington (bot) [Thu, 18 Oct 2018 10:55:15 +0000 (03:55 -0700)] 
Updated documentation on logging.debug(). (GH-9946) (GH-9949)

(cherry picked from commit bbd90e4f6273f1c29c03ab1374fdbd1a862fc14a)

Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
7 years agobpo-35008: Fix possible leaks in Element.__setstate__(). (GH-9924) 9948/head
Miss Islington (bot) [Thu, 18 Oct 2018 07:17:15 +0000 (00:17 -0700)] 
bpo-35008: Fix possible leaks in Element.__setstate__(). (GH-9924)

C implementation of xml.etree.ElementTree.Element.__setstate__()
leaked references to children when called for already initialized
element.
(cherry picked from commit 6f906b3d727d6b341abd5ad9c0652bbcbd5eb024)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 years agobpo-24658: Fix read/write greater than 2 GiB on macOS (GH-1705)
Miss Islington (bot) [Thu, 18 Oct 2018 06:58:40 +0000 (23:58 -0700)] 
bpo-24658: Fix read/write greater than 2 GiB on macOS (GH-1705)

 On macOS, fix reading from and writing into a file with a size larger than 2 GiB.
(cherry picked from commit 74a8b6ea7e0a8508b13a1c75ec9b91febd8b5557)

Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
7 years ago[3.7] bpo-35011: Restore use of pyexpatns.h in libexpat (GH-9939) (GH-9940)
Miss Islington (bot) [Thu, 18 Oct 2018 02:06:30 +0000 (19:06 -0700)] 
[3.7] bpo-35011: Restore use of pyexpatns.h in libexpat (GH-9939) (GH-9940)

Restores the use of pyexpatns.h to isolate our embedded copy of the expat C
library so that its symbols do not conflict at link or dynamic loading time
with an embedding application or other extension modules with their own
version of libexpat.

https://github.com/python/cpython/commit/5dc3f23b5fb0b510926012cb3732dae63cddea60GH-diff-3afaf7274c90ce1b7405f75ad825f545 inadvertently removed it when upgrading expat.
(cherry picked from commit 9d4712bc8f26bf1d7e626b53ab092fe030bcd68d)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
https://bugs.python.org/issue35011

7 years ago[3.7] bpo-23420: Verify the value of '-s' when execute the CLI of cProfile (GH-9925...
Stéphane Wirtel [Wed, 17 Oct 2018 11:48:05 +0000 (13:48 +0200)] 
[3.7] bpo-23420: Verify the value of '-s' when execute the CLI of cProfile (GH-9925) (GH-9926)

[3.7] [bpo-23420](https://bugs.python.org/issue23420): Verify the value of '-s' when execute the CLI of cProfile (GH-9925)

Verify the value for the parameter '-s' of the cProfile CLI. Patch by Robert
Kuska.

Co-authored-by: Robert Kuska <rkuska@gmail.com>
(cherry picked from commit fcd5e84a515e19409840c570730f0728e9fcfc83)

https://bugs.python.org/issue23420

7 years agobpo-34967: Sphinx is deprecating add_description_unit, use add_object_type (GH-9827)
Miss Islington (bot) [Tue, 16 Oct 2018 06:46:38 +0000 (23:46 -0700)] 
bpo-34967: Sphinx is deprecating add_description_unit, use add_object_type (GH-9827)

(cherry picked from commit e385d0661ecf8bc9ba95c4395d9a11262c2cbfec)

Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
7 years agobpo-34783: Fix test_nonexisting_script() (GH-9896)
Miss Islington (bot) [Mon, 15 Oct 2018 22:30:05 +0000 (15:30 -0700)] 
bpo-34783: Fix test_nonexisting_script() (GH-9896)

Fix test_cmd_line_script.test_nonexisting_script(): the test must not
rely on sys.executable, since main.c uses config->program which can
be different than sys.executable in many cases (for example, on macOS
when using the framework).
(cherry picked from commit ea75187c68b374bb839f1172f310b206044bc3e5)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
7 years agobpo-23554: Change echo server example class name from EchoServerClientProtocol to...
Miss Islington (bot) [Mon, 15 Oct 2018 21:59:49 +0000 (14:59 -0700)] 
bpo-23554: Change echo server example class name from EchoServerClientProtocol to EchoServerProtocol (GH-9859)

(cherry picked from commit 43a5bd7b458f0ad2d62b00b033d025689d48d591)

Co-authored-by: Braden Groom <braden.groom@gmail.com>
7 years agobpo-34989: python-gdb.py: fix current_line_num() (GH-9889)
Miss Islington (bot) [Mon, 15 Oct 2018 21:47:56 +0000 (14:47 -0700)] 
bpo-34989: python-gdb.py: fix current_line_num() (GH-9889)

python-gdb.py now handles errors on computing the line number
of a Python frame.

Changes:

* PyFrameObjectPtr.current_line_num() now catchs any Exception on
  calling addr2line(), instead of failing with a surprising "<class
  'TypeError'> 'FakeRepr' object is not subscriptable" error.
* All callers of current_line_num() now handle current_line_num()
  returning None.
* PyFrameObjectPtr.current_line() now also catchs IndexError on
  getting a line from the Python source file.
(cherry picked from commit 2e438cc2554495b28480a3ffe5cdf41b6ab823a0)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
7 years agobpo-34521: Add NEWS entry for changes in GH-9613 (GH-9850)
Miss Islington (bot) [Mon, 15 Oct 2018 21:20:11 +0000 (14:20 -0700)] 
bpo-34521: Add NEWS entry for changes in GH-9613 (GH-9850)

* Add News entry for the change in multiprocessing.reduction.recvfds
made in GH-9613.
(cherry picked from commit bd036d3d15fc1310ccc32a43a3296b8c157ac221)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
7 years ago[3.7] bpo-11233: Create availability directive for documentation (GH-9692) (GH-9830)
Cheryl Sabella [Mon, 15 Oct 2018 20:52:26 +0000 (16:52 -0400)] 
[3.7] bpo-11233: Create availability directive for documentation (GH-9692) (GH-9830)

Replace "Availability: xxx" with ".. availability:: xxx" in the doc.
 Original patch by Georg Brandl.

Co-Authored-By: Georg Brandl <georg@python.org>
 (cherry picked from commit 2d6097d027e0dd3debbabc702aa9c98d94ba32a3)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
7 years agofix dangling keyfunc examples in documentation of heapq and sorted (GH-1432)
Miss Islington (bot) [Mon, 15 Oct 2018 19:19:08 +0000 (12:19 -0700)] 
fix dangling keyfunc examples in documentation of heapq and sorted (GH-1432)

* fix dangling mention of key=str.lower in heapq doc

* Fix dangling mention of keyfunc example for sorted()
(cherry picked from commit 6bdb6f7675922e601e742758c7c240a751fd365b)

Co-authored-by: Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de>
7 years agobpo-34974: Do not replace unexpected errors in bytes() and bytearray(). (GH-9852)
Miss Islington (bot) [Sun, 14 Oct 2018 21:26:28 +0000 (14:26 -0700)] 
bpo-34974: Do not replace unexpected errors in bytes() and bytearray(). (GH-9852)

bytes and bytearray constructors converted unexpected exceptions
(e.g. MemoryError and KeyboardInterrupt) to TypeError.
(cherry picked from commit e890421e334ccf0c000c6b29c4a521d86cd12f47)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 years agoUpdate compound_stmts.rst (GH-9864) (GH-9869)
Miss Islington (bot) [Sun, 14 Oct 2018 08:32:58 +0000 (01:32 -0700)] 
Update compound_stmts.rst (GH-9864) (GH-9869)

(cherry picked from commit c8bb467f4006fbf5d24d2491248bcbabee5d827e)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
7 years agobpo-34941: Fix searching Element subclasses. (GH-9766)
Miss Islington (bot) [Sun, 14 Oct 2018 07:55:49 +0000 (00:55 -0700)] 
bpo-34941: Fix searching Element subclasses. (GH-9766)

Methods find(), findtext() and findall() of xml.etree.ElementTree.Element
were not able to find chldren which are instances of Element subclasses.
(cherry picked from commit b11c5667f99c4f0018e3394c4d07c519d835671a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 years agobpo-33656: Move pyshell ctypes import inside try block. (GH-9858)
Miss Islington (bot) [Sun, 14 Oct 2018 00:19:22 +0000 (17:19 -0700)] 
bpo-33656: Move pyshell ctypes import inside try block. (GH-9858)

A Windows build with _tkinter, tkinter, and idlelib
but without ctypes is unlikely but apparently possible.
(cherry picked from commit d274afb5e579a5d9d990f68f9af856cf4c918779)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
7 years agoPost release bump
Ned Deily [Sat, 13 Oct 2018 20:45:49 +0000 (16:45 -0400)] 
Post release bump

7 years agoMerge tag 'v3.7.1rc2' into 3.7
Ned Deily [Sat, 13 Oct 2018 20:43:23 +0000 (16:43 -0400)] 
Merge tag 'v3.7.1rc2' into 3.7

7 years agobpo-34970: Protect tasks weak set manipulation in asyncio.all_tasks() (GH-9837) ...
Miss Islington (bot) [Sat, 13 Oct 2018 19:26:47 +0000 (12:26 -0700)] 
bpo-34970: Protect tasks weak set manipulation in asyncio.all_tasks() (GH-9837) (GH-9849)

https://bugs.python.org/issue34970
(cherry picked from commit 97cf0828727ac2a269c89c5aa09570a69a22c83c)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
7 years agoAdd new tests for bytes and bytearray constructors. (GH-9843)
Miss Islington (bot) [Sat, 13 Oct 2018 18:02:23 +0000 (11:02 -0700)] 
Add new tests for bytes and bytearray constructors. (GH-9843)

Covered all special cases: bytes, tuple, list, differend
kinds of iterables and iterators.
(cherry picked from commit 1a997eb291fdc5f5606c898fffbde61d899ed762)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 years agobpo-16965: 2to3 now rewrites execfile() to open with 'rb'. (GH-8569)
Miss Islington (bot) [Sat, 13 Oct 2018 09:48:18 +0000 (02:48 -0700)] 
bpo-16965: 2to3 now rewrites execfile() to open with 'rb'. (GH-8569)

(cherry picked from commit d4d60134b29290049e28df54f23493de4f1824b6)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
7 years ago3.7.1rc2 v3.7.1rc2
Ned Deily [Sat, 13 Oct 2018 07:01:13 +0000 (03:01 -0400)] 
3.7.1rc2

7 years agobpo-34370: Revert to using released Tk 8.6.8 with macOS installers
Ned Deily [Sat, 13 Oct 2018 02:30:30 +0000 (22:30 -0400)] 
bpo-34370: Revert to using released Tk 8.6.8 with macOS installers

For 3.7.1rc1 and 3.6.7rc1 we used a pre-release development
snapshot of Tk 8.6 to pick up some post-8.6.8 fixes for macOS.
But the snapshot introduced at least one regression (bpo-34927).
For rc2, revert to using the standard release 8.6.8 for now.
This reverts commit d9cfe5ed2c2c61eeae915b76f5e10aadbbb28da6.

7 years agobpo-34783: Disable test_nonexisting_script for macOS framework builds (GH-9831)...
Miss Islington (bot) [Sat, 13 Oct 2018 04:07:01 +0000 (21:07 -0700)] 
bpo-34783:  Disable test_nonexisting_script for macOS framework builds (GH-9831) (GH-9832)

With macOS framework builds, test case test_nonexisting_script in
test_nonexisting_script fails because the test case assumes that
the file name in sys.executable will appear in the error message.
For macOS framework builds, sys.executable is the file name of the
stub launcher and its file name bears no relationship to the file
name of the actual python executable.  For now, skip the test in
this case.
(cherry picked from commit f6c29a65e2a6da5c0014c868cf963c975b74e72b)

Co-authored-by: Ned Deily <nad@python.org>
7 years agobpo-34203: FAQ now recommends python 3.x over 2.x (GH-9796)
Miss Islington (bot) [Fri, 12 Oct 2018 12:06:07 +0000 (05:06 -0700)] 
bpo-34203: FAQ now recommends python 3.x over 2.x (GH-9796)

(cherry picked from commit 4505f65ae7807f2420ed14d4f060e7cd5c4039d3)

Co-authored-by: Gus Goulart <augusto@goulart.me>
7 years agobpo-34900: Make TestCase.debug() work with subtests (GH-9707)
Miss Islington (bot) [Fri, 12 Oct 2018 11:07:01 +0000 (04:07 -0700)] 
bpo-34900: Make TestCase.debug() work with subtests (GH-9707)

(cherry picked from commit da2bf9f66d0c95b988c5d87646d168f65499b316)

Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
7 years agobpo-31516: Skip test_main_thread_during_shutdown() with COUNT_ALLOCS builds. (GH...
Miss Islington (bot) [Fri, 12 Oct 2018 08:49:07 +0000 (01:49 -0700)] 
bpo-31516: Skip test_main_thread_during_shutdown() with COUNT_ALLOCS builds. (GH-8052)

(cherry picked from commit 65d2f8c044bf597685ba72f66cbcc6b3f7a3ee9c)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
7 years agoFix an incorrect check in compiler_try_except(). (GH-9810)
Miss Islington (bot) [Fri, 12 Oct 2018 07:19:20 +0000 (00:19 -0700)] 
Fix an incorrect check in compiler_try_except(). (GH-9810)

(cherry picked from commit 53ebf4b0709f431b7262aa5daccef7eafde7383e)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
7 years agoFix a possible decref of a borrowed reference in symtable.c. (GH-9786)
Miss Islington (bot) [Thu, 11 Oct 2018 05:24:14 +0000 (22:24 -0700)] 
Fix a possible decref of a borrowed reference in symtable.c. (GH-9786)

(cherry picked from commit fc439d20de32b0ebccca79a96e31f83b85ec4eaf)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
7 years ago[3.7] bpo-34922: Fix integer overflow in the digest() and hexdigest() methods (GH...
Serhiy Storchaka [Thu, 11 Oct 2018 05:06:36 +0000 (08:06 +0300)] 
[3.7] bpo-34922: Fix integer overflow in the digest() and hexdigest() methods (GH-9751) (GH-9798)

for the SHAKE algorithm in the hashlib module.
(cherry picked from commit 9b8c2e767643256202bb11456ba8665593b9a500)

7 years agobpo-34576 warn users on security for http.server (GH-9720)
Miss Islington (bot) [Thu, 11 Oct 2018 03:55:34 +0000 (20:55 -0700)] 
bpo-34576 warn users on security for http.server (GH-9720)

It was proposed to add an warning for http.server regarding security
issues. The wording was provided at bpo-26005 by @orsenthil
(cherry picked from commit 1d26c72e6a9c5b28b27c158f2f196217707dbb0f)

Co-authored-by: Felipe Rodrigues <felipe@felipevr.com>
7 years ago[3.7] bpo-34906: Doc: Fix typos (2) (GH-9735)
Stéphane Wirtel [Wed, 10 Oct 2018 13:39:17 +0000 (15:39 +0200)] 
[3.7] bpo-34906: Doc: Fix typos (2) (GH-9735)

(cherry picked from commit 683281f536981da395575b5a07d6761118259fd2)

7 years agobpo-23596: Add unit tests for the command line for the gzip module (GH-9775)
Miss Islington (bot) [Tue, 9 Oct 2018 21:42:58 +0000 (14:42 -0700)] 
bpo-23596: Add unit tests for the command line for the gzip module (GH-9775)

Add unit tests for the command line for the gzip module
(cherry picked from commit 84eec1199583bcb034e43337bcb8e2b876ebd269)

Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
7 years agobpo-34769: Thread safety for _asyncgen_finalizer_hook(). (GH-9716)
Miss Islington (bot) [Tue, 9 Oct 2018 16:03:35 +0000 (09:03 -0700)] 
bpo-34769: Thread safety for _asyncgen_finalizer_hook(). (GH-9716)

(cherry picked from commit c880ffe7d2ce2fedb1831918c8a36e3623e0fb76)

Co-authored-by: twisteroid ambassador <twisteroidambassador@users.noreply.github.com>
7 years agobpo-32962: Fix test_gdb failure in debug build with -mcet -fcf-protection -O0 (GH...
Miss Islington (bot) [Tue, 9 Oct 2018 15:21:17 +0000 (08:21 -0700)] 
bpo-32962: Fix test_gdb failure in debug build with -mcet -fcf-protection -O0 (GH-9656)

When Python is built with the intel control-flow protection flags,
-mcet -fcf-protection, gdb is not able to read the stack without
actually jumping inside the function. This means an extra
'next' command is required to make the $pc (program counter)
enter the function and make the stack of the function exposed to gdb.

Co-Authored-By: Marcel Plch <gmarcel.plch@gmail.com>
(cherry picked from commit 9b7c74ca32d1bec7128d550a9ab1b2ddc7046287)
(cherry picked from commit 79d21331e605fdc941f947621846b8563485aab6)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
7 years agobpo-32174: Let .chm document display non-ASCII characters properly (GH-9758)
Miss Islington (bot) [Mon, 8 Oct 2018 21:26:55 +0000 (14:26 -0700)] 
bpo-32174: Let .chm document display non-ASCII characters properly (GH-9758)

Let .chm document display non-ASCII characters properly

Escape the `body` part of .chm source file to 7-bit ASCII, to fix visual effect on some MBCS Windows systems.
(cherry picked from commit 6261ae9b01fb8429b779169f8de37ff567c144e8)

Co-authored-by: animalize <animalize@users.noreply.github.com>
7 years agobpo-34901: add isolated (-I) flag to sys.flags (GH-9708)
Miss Islington (bot) [Sun, 7 Oct 2018 16:18:20 +0000 (09:18 -0700)] 
bpo-34901: add isolated (-I) flag to sys.flags (GH-9708)

https://bugs.python.org/issue34901
(cherry picked from commit 656d52dbfde3223cd2a3525d652b6cccb02fa991)

Co-authored-by: Danish Prakash <grafitykoncept@gmail.com>
7 years agobpo-6721: Hold logging locks across fork() (GH-4071) (#9291)
Miss Islington (bot) [Sun, 7 Oct 2018 07:09:59 +0000 (00:09 -0700)] 
bpo-6721: Hold logging locks across fork() (GH-4071) (#9291)

bpo-6721: When os.fork() was called while another thread holds a logging lock, the child process may deadlock when it tries to log.  This fixes that by acquiring all logging locks before fork and releasing them afterwards.

A regression test that fails before this change is included.

Within the new unittest itself: There is a small _potential_ due to mixing of fork and a thread in the child process if the parent's thread happened to hold a non-reentrant library call lock (malloc?) when the os.fork() happens.  buildbots and time will tell if this actually manifests itself in this test or not.  :/  A functionality test that avoids that would be a challenge.

An alternate test that isn't trying to produce the deadlock itself but just checking that the release and acquire calls are made would be the next best alternative if so.
(cherry picked from commit 19003841e965bbf56fd06824d6093620c1b66f9e)

Co-authored-by: Gregory P. Smith <greg@krypto.org> [Google]
7 years agobpo-34334: Don't log traceback twice in QueueHandler (GH-9537) (GH-9581)
Miss Islington (bot) [Sun, 7 Oct 2018 04:33:37 +0000 (21:33 -0700)] 
bpo-34334: Don't log traceback twice in QueueHandler (GH-9537) (GH-9581)

(cherry picked from commit d345bb4d9b6e16c681cd8a4e1fff94ecd6b0bb09)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
7 years agoCorrect grammar mistake in re.rst. (GH-9745)
Miss Islington (bot) [Sat, 6 Oct 2018 19:56:45 +0000 (12:56 -0700)] 
Correct grammar mistake in re.rst. (GH-9745)

(cherry picked from commit 7dfbd4967121ef6ecabe3fd53a430fd949f405fd)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
7 years agobpo-34909: keep searching mixins until base class is found (GH-9737) (GH-9738)
Miss Islington (bot) [Sat, 6 Oct 2018 07:43:20 +0000 (00:43 -0700)] 
bpo-34909: keep searching mixins until base class is found (GH-9737) (GH-9738)

(cherry picked from commit cd45385ffad8910293e5659cfe7ab036e70613b7)

7 years agobpo-34910: Ensure that PyObject_Print() always returns -1 on error. (GH-9733)
Miss Islington (bot) [Sat, 6 Oct 2018 07:07:12 +0000 (00:07 -0700)] 
bpo-34910: Ensure that PyObject_Print() always returns -1 on error. (GH-9733)

(cherry picked from commit ae62f015240c9162773341a9922794e6b960779d)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
7 years ago[3.7] bpo-34158: Documentation UTC offset update (GH-8377) (GH-9732)
Miss Islington (bot) [Sat, 6 Oct 2018 02:44:23 +0000 (19:44 -0700)] 
[3.7] bpo-34158: Documentation UTC offset update (GH-8377) (GH-9732)

* Documentation of UTC offset update
Since changes in the UTC offset that allows sub-minute offsets, the documentation needs update:

- "%z" format code documentation update
Karthikeyan Singaravelan commented on bugs.python.org:
Added as part of 018d353c1c8c87767d2335cd884017c2ce12e045 and a fix regarding duplicate words for that part was added at bac2d5ba30339298db7d4caa9c8cd31d807cf081.
Relevant format string at https://github.com/python/cpython/pull/2896/filesGH-diff-25e2d173c84057d069b7890450714eddR214.
Relevant test case with 6-digit string for microsecond : https://github.com/python/cpython/pull/2896/filesGH-diff-acc40bec51c7de832de3361db3edae52R309.
Table at https://docs.python.org/3.7/library/datetime.htmlGH-strftime-and-strptime-behavior could also be updated with microseconds being optional in the second column
%z | UTC offset in the form ±HHMM[SS] (empty string if the object is naive). | (empty), +0000, -0400, +1030

- isoformat documentation update
According to me, needs confirmation:
Relevant format string at https://github.com/python/cpython/pull/4699/filesGH-diff-25e2d173c84057d069b7890450714eddR176
Relevant test case at https://github.com/python/cpython/pull/4699/filesGH-diff-25e2d173c84057d069b7890450714edd

* From Martin Panter: some style improvment;
From @pganssle: using f for fractional part of seconds in all file.
(cherry picked from commit 92878829c31ab2fc71c60555ce87a5f6cbc876f0)

Co-authored-by: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com>
7 years ago[3.7] Make it clear that the msg argument to assertWarns/assertWarnsRegex/assertRaise...
Miss Islington (bot) [Sat, 6 Oct 2018 02:39:47 +0000 (19:39 -0700)] 
[3.7] Make it clear that the msg argument to assertWarns/assertWarnsRegex/assertRaisesRegex is keyword-only. (GH-9680) (GH-9681)

A follow up to be4e5b89204283a62e369439025f00362d0424f6.
(cherry picked from commit e006b39a40e0cd6a90c68f1107853ea2ed0ed54d)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
7 years agoFix markup for xml.sax in 3.7.rst (GH-9604)
Andrés Delfino [Sat, 6 Oct 2018 02:37:14 +0000 (23:37 -0300)] 
Fix markup for xml.sax in 3.7.rst (GH-9604)

7 years agoClarify that AsyncExitStack works with coroutine functions (GH-9405) (GH-9408)
Miss Islington (bot) [Sat, 6 Oct 2018 02:29:17 +0000 (19:29 -0700)] 
Clarify that AsyncExitStack works with coroutine functions (GH-9405) (GH-9408)

The docs were ambiguous about whether you pass in a coroutine function
or a coroutine object, e.g. is it:

  aestack.push_async_exit(some_async_func)

or

  aestack.push_async_exit(some_async_func())

(It's the first one.)
(cherry picked from commit a3c88ef12c7b8993912750b56a1e095652fe47c0)

Co-authored-by: Nathaniel J. Smith <njs@pobox.com>
7 years agobpo-34565: Change a PC/launcher.c comment to accurately describe valid major versions...
Miss Islington (bot) [Sat, 6 Oct 2018 02:18:41 +0000 (19:18 -0700)] 
bpo-34565: Change a PC/launcher.c comment to accurately describe valid major versions. (GH-9037) (GH-9065)

(cherry picked from commit 3876af4f7c2ef87db6d2d83efc229955968926dd)

Co-authored-by: Brendan Gerrity <brerrity@gmail.com>
7 years agobpo-34899: Fix a possible assertion failure due to int_from_bytes_impl() (GH-9705)
Miss Islington (bot) [Fri, 5 Oct 2018 21:28:56 +0000 (14:28 -0700)] 
bpo-34899: Fix a possible assertion failure due to int_from_bytes_impl() (GH-9705)

The _PyLong_FromByteArray() call in int_from_bytes_impl() was
unchecked.
(cherry picked from commit 7bb9cd0a6766fd3e7b3c1e8f2315304ae192b34c)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
7 years ago[3.7] Fix a compiler warning added in bpo-34872. (GH-9722). (GH-9726)
Serhiy Storchaka [Fri, 5 Oct 2018 18:58:15 +0000 (21:58 +0300)] 
[3.7] Fix a compiler warning added in bpo-34872. (GH-9722). (GH-9726)

(cherry picked from commit addf8afb43af58b9bf56a0ecfd0f316dd60ac0c3)

7 years agoUse assertEqual() instead of assertEquals(). (GH-9721) (GH-9725)
Serhiy Storchaka [Fri, 5 Oct 2018 18:46:24 +0000 (21:46 +0300)] 
Use assertEqual() instead of assertEquals(). (GH-9721) (GH-9725)

Fixes warnings in test added in bpo-34603.
(cherry picked from commit 4642d5f59828e774585e9895b538b24d71b9df8e)

7 years agobpo-34902: Fixes VM image for Azure Pipelines build (GH-9719)
Miss Islington (bot) [Fri, 5 Oct 2018 18:27:44 +0000 (11:27 -0700)] 
bpo-34902: Fixes VM image for Azure Pipelines build (GH-9719)

(cherry picked from commit 4313a293dae579f3406aa94508ff3803a79b0344)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
7 years agobpo-34825: Add more entries to os to pathlib reference table (GH-9608) (#9717)
Miss Islington (bot) [Fri, 5 Oct 2018 16:06:17 +0000 (09:06 -0700)] 
bpo-34825: Add more entries to os to pathlib reference table (GH-9608) (#9717)

The added functions are as below :

| os module     | Pathlib       |
| ------------- | ------------- |
| os.chmod   | Path.chmod  |
| os.mkdir  | Path.mkdir  |
| os.rename | Path.rename |
| os.replace | Path.replace |
| os.rmdir  | Path.rmdir |
| os.remove, os.unlink | Path.unlink |
| os.path.samefile | Path.samefile |

Thanks

https://bugs.python.org/issue34825
(cherry picked from commit 6f9c55d1c0bb399911ded00bb6b3e6f43a514ea2)

Co-authored-by: Xtreak <tirkarthi@users.noreply.github.com>
7 years agobpo-34906: Doc: Fix typos (GH-9712)
Miss Islington (bot) [Fri, 5 Oct 2018 14:35:18 +0000 (07:35 -0700)] 
bpo-34906: Doc: Fix typos (GH-9712)

(cherry picked from commit 07fbbfde1b300369b4f8d1cfb80045fbb23b7091)

Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
7 years agoFix a typo ssl.py docstring (GH-9697) (GH-9709)
Miss Islington (bot) [Fri, 5 Oct 2018 07:33:36 +0000 (00:33 -0700)] 
Fix a typo ssl.py docstring (GH-9697) (GH-9709)

(cherry picked from commit fc7d1b3b6a2be7061c000245bb1faa438e42f5d8)

Co-authored-by: Matt Eaton <agnosticdev@gmail.com>
7 years agobpo-34871: inspect: Don't pollute sys.modules (GH-9696) (#9701)
Miss Islington (bot) [Thu, 4 Oct 2018 19:26:33 +0000 (12:26 -0700)] 
bpo-34871: inspect: Don't pollute sys.modules (GH-9696) (#9701)

https://bugs.python.org/issue34871
(cherry picked from commit 6f85b826b527e240551613aeec3118a5469e3a33)

Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
7 years ago[3.7] bpo-34872: Fix self-cancellation in C implementation of asyncio.Task (GH-9679...
Elvis Pranskevichus [Wed, 3 Oct 2018 15:49:00 +0000 (11:49 -0400)] 
[3.7] bpo-34872: Fix self-cancellation in C implementation of asyncio.Task (GH-9679) (GH-9691)

The C implementation of asyncio.Task currently fails to perform the
cancellation cleanup correctly in the following scenario.

    async def task1():
        async def task2():
            await task3     # task3 is never cancelled

        asyncio.current_task().cancel()
        await asyncio.create_task(task2())

The actuall error is a hardcoded call to `future_cancel()` instead of
calling the `cancel()` method of a future-like object.

Thanks to Vladimir Matveev for noticing the code discrepancy and to
Yury Selivanov for coming up with a pathological scenario..
(cherry picked from commit 548ce9dedd2e90945970671d441436a6a91608ab)

Co-authored-by: Elvis Pranskevichus <elvis@magic.io>
https://bugs.python.org/issue34872

7 years agobpo-34879: Fix a possible null pointer dereference in bytesobject.c (GH-9683)
Miss Islington (bot) [Wed, 3 Oct 2018 06:33:42 +0000 (23:33 -0700)] 
bpo-34879: Fix a possible null pointer dereference in bytesobject.c (GH-9683)

formatfloat() was not checking if PyBytes_FromStringAndSize()
failed, which could lead to a null pointer dereference in
_PyBytes_FormatEx().
(cherry picked from commit 96c593279400693226d5a560c420ae0fcf1731b9)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
7 years agobpo-34172: multiprocessing.Pool leaks resources after being deleted (GH-8450) (GH...
Miss Islington (bot) [Tue, 2 Oct 2018 21:17:04 +0000 (14:17 -0700)] 
bpo-34172: multiprocessing.Pool leaks resources after being deleted (GH-8450) (GH-9676)

Fix a reference issue inside multiprocessing.Pool that caused the pool to remain alive if it was deleted without being closed or terminated explicitly.
(cherry picked from commit 97bfe8d3ebb0a54c8798f57555cb4152f9b2e1d0)

Co-authored-by: tzickel <tzickel@users.noreply.github.com>
7 years agoMake it clear that the msg argument to assertRaises is keyword-only. (GH-9670)
Miss Islington (bot) [Tue, 2 Oct 2018 05:32:01 +0000 (22:32 -0700)] 
Make it clear that the msg argument to assertRaises is keyword-only. (GH-9670)

(cherry picked from commit be4e5b89204283a62e369439025f00362d0424f6)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
7 years agocloses bpo-34868: Improve error message with '_' is combined with an invalid type...
Miss Islington (bot) [Tue, 2 Oct 2018 05:12:02 +0000 (22:12 -0700)] 
closes bpo-34868: Improve error message with '_' is combined with an invalid type specifier. (GH-9666)

(cherry picked from commit cbda8fc5d76b10bcbb92d927537576c229143836)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
7 years agobpo-31865: Fix a couple of typos in the html.unescape() docs. (GH-9663)
Miss Islington (bot) [Tue, 2 Oct 2018 00:43:54 +0000 (17:43 -0700)] 
bpo-31865: Fix a couple of typos in the html.unescape() docs. (GH-9663)

(cherry picked from commit 30534cc7172f36092e0002bb7df482edc0d539ce)

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
7 years agobpo-34476: Document that asyncio.sleep() always suspends. (GH-9643) (#9654)
Miss Islington (bot) [Mon, 1 Oct 2018 10:19:33 +0000 (03:19 -0700)] 
bpo-34476: Document that asyncio.sleep() always suspends. (GH-9643) (#9654)

(cherry picked from commit cd602b8af2d14ff686261eeb18b80f718bb16550)

Co-authored-by: Hrvoje Nikšić <hniksic@gmail.com>
7 years agobpo-34850: Replace is with == in idlelib.iomenu (GH-9649)
Miss Islington (bot) [Sun, 30 Sep 2018 21:35:53 +0000 (14:35 -0700)] 
bpo-34850: Replace is with == in idlelib.iomenu (GH-9649)

Patch by Serhiy Storchaka (in PR GH-9642).
(cherry picked from commit 5fa247d60d4f3f2b8c8ae8cb57363aca234344c2)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
7 years agobpo-34854: Fix compiling string annotations containing lambdas. (GH-9645)
Miss Islington (bot) [Sun, 30 Sep 2018 18:19:15 +0000 (11:19 -0700)] 
bpo-34854: Fix compiling string annotations containing lambdas. (GH-9645)

* Compiling a string annotation containing a lambda with keyword-only
argument without default value caused a crash.

* Remove the final "*" (it is incorrect syntax) in the representation of
lambda without *args and keyword-only arguments when compile from AST.

* Improve the representation of lambda without arguments.
(cherry picked from commit 2a2940e5c3e6d92f4fac5e9d361a1e224bb2f12e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 years agobpo-27351: Fix ConfigParser.read() documentation and docstring (GH-8123)
Miss Islington (bot) [Sat, 29 Sep 2018 16:33:05 +0000 (09:33 -0700)] 
bpo-27351: Fix ConfigParser.read() documentation and docstring (GH-8123)

Switch "list" with "iterable" to match with the implementation.
(cherry picked from commit e45473e3ca31e5b78dc85cab575f5bb60d5b7f8f)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
7 years agoFix astuple in dataclasses documentation (GH-9631)
Miss Islington (bot) [Sat, 29 Sep 2018 10:55:14 +0000 (03:55 -0700)] 
Fix astuple in dataclasses documentation (GH-9631)

(cherry picked from commit 508d8205121868ef24cca99f1f952558b1ff2f2e)

Co-authored-by: 방성범 (Bang Seongbeom) <bangseongbeom@hotmail.com>
7 years agoFix incorrect error handling in _pickle.Unpickler.__init__() (GH-9630)
Miss Islington (bot) [Sat, 29 Sep 2018 06:01:48 +0000 (23:01 -0700)] 
Fix incorrect error handling in _pickle.Unpickler.__init__() (GH-9630)

_pickle.Unpickler.__init__() should return -1 if Pdata_New() fails, not 1.
(cherry picked from commit 4b430e5f6954ef4b248e95bfb4087635dcdefc6d)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
7 years agobpo-34521: Fix tests in test_multiprocessing_spawn to use correctly CMSG_SPACE (GH...
Miss Islington (bot) [Fri, 28 Sep 2018 13:07:56 +0000 (06:07 -0700)] 
bpo-34521: Fix tests in test_multiprocessing_spawn to use correctly CMSG_SPACE (GH-9613) (GH-9619)

After some failures in AMD64 FreeBSD CURRENT Debug 3.x buildbots
regarding tests in test_multiprocessing_spawn and after examining
similar failures in test_socket, some errors in the calculation of
ancillary data buffers were found in multiprocessing.reduction.

CMSG_LEN() can often be used as the buffer size for recvmsg() to
receive a single item of ancillary data, but RFC 3542 requires portable
applications to use CMSG_SPACE() and thus include space for padding,
even when the item will be the last in the buffer.

The failures we experience are due to the usage of CMSG_LEN() instead of
CMSG_SPACE().
(cherry picked from commit 077061a7b24917aaf31057885c69919c5a553c88)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
7 years agobpo-34736: improve error message for invalid length b64decode inputs (GH-9563)
Miss Islington (bot) [Fri, 28 Sep 2018 06:12:54 +0000 (23:12 -0700)] 
bpo-34736: improve error message for invalid length b64decode inputs (GH-9563)

Improvements:
1. Include the number of valid data characters in the error message.
2. Mention "number of data characters" rather than "length".

https://bugs.python.org/issue34736
(cherry picked from commit 1fba2ffc37da52c08db51fe4360459990b0311c9)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
7 years agobpo-34802: Fix asyncio.iscoroutine() docs (GH-9611)
Miss Islington (bot) [Thu, 27 Sep 2018 19:53:18 +0000 (12:53 -0700)] 
bpo-34802: Fix asyncio.iscoroutine() docs (GH-9611)

(cherry picked from commit 59ee5b12938efbf534f2a19300a847bf6b23a77d)

Co-authored-by: Yury Selivanov <yury@magic.io>
7 years ago[3.7] bpo-34762: Update PyContext* refs to PyObject* in asyncio and decimal (GH-9610)
Yury Selivanov [Thu, 27 Sep 2018 19:33:23 +0000 (15:33 -0400)] 
[3.7] bpo-34762: Update PyContext* refs to PyObject* in asyncio and decimal (GH-9610)

7 years agoFix markup for xml.sax entry in 3.7.1 notes (GH-9602)
Andrés Delfino [Thu, 27 Sep 2018 15:25:47 +0000 (12:25 -0300)] 
Fix markup for xml.sax entry in 3.7.1 notes (GH-9602)

7 years agoFix tests in test_socket to use correctly CMSG_LEN (GH-9594)
Miss Islington (bot) [Thu, 27 Sep 2018 13:30:47 +0000 (06:30 -0700)] 
Fix tests in test_socket to use correctly CMSG_LEN (GH-9594)

After some failures in AMD64 FreeBSD CURRENT Debug 3.x buildbots
regarding tests in test_socket that are using
testFDPassSeparateMinSpace(), FreeBDS revision 337423 was pointed
out to be the reason the test started to fail.

A close examination of the manpage for cmsg_space(3) reveals that
the number of file descriptors needs to be taken into account when
using CMSG_LEN().

This commit fixes tests in test_socket to use correctly CMSG_LEN, taking
into account the number of FDs.
(cherry picked from commit 7291108d88ea31d205da4db19d202d6cbffc6d93)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
7 years agobpo-34819: Use a monotonic clock to compute timeouts in concurrent.futures (GH-9599)
Miss Islington (bot) [Thu, 27 Sep 2018 11:46:38 +0000 (04:46 -0700)] 
bpo-34819: Use a monotonic clock to compute timeouts in concurrent.futures (GH-9599)

Use a monotonic clock to compute timeouts in :meth:`Executor.map` and :func:`as_completed`, in order to prevent timeouts from deviating when the system clock is adjusted.

This may not be sufficient on all systems. On POSIX for example, the actual waiting (e.g. in ``sem_timedwait``) is specified to rely on the CLOCK_REALTIME clock.
(cherry picked from commit a94ee12c26aa8dd7dce01373779df8055aff765b)

Co-authored-by: orlnub123 <orlnub123@gmail.com>
7 years agoPost release bump
Ned Deily [Thu, 27 Sep 2018 00:12:10 +0000 (20:12 -0400)] 
Post release bump

7 years agoMerge tag 'v3.7.1rc1' into 3.7
Ned Deily [Thu, 27 Sep 2018 00:04:22 +0000 (20:04 -0400)] 
Merge tag 'v3.7.1rc1' into 3.7

7 years agoClarify that Type[SomeTypeVar] is legal (GH-9585)
Miss Islington (bot) [Wed, 26 Sep 2018 15:21:15 +0000 (08:21 -0700)] 
Clarify that Type[SomeTypeVar] is legal (GH-9585)

Currently, the docs state that when doing `Type[X]`, X is only allowed to
be a class, a union of classes, and Any. This pull request amends
that sentence to clarify X may also be a typevar (or a union involving
classes, Any, and TypeVars).
(cherry picked from commit 130717fe58abb2ab9e7938207df0c130a2562747)

Co-authored-by: Michael Lee <michael.lee.0x2a@gmail.com>
7 years agoDrop confusing commented out code in pystrtod.c (GH-6072) (GH-9586)
Victor Stinner [Wed, 26 Sep 2018 14:45:19 +0000 (07:45 -0700)] 
Drop confusing commented out code in pystrtod.c (GH-6072) (GH-9586)

Fix the following warning:

Python/pystrtod.c: In function 'format_float_short':
Python/pystrtod.c:1007:13: warning: 'strncpy' output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation]
             strncpy(p, "ERR", 3);

(cherry picked from commit 9fb84157595a385f15799e5d0729c1e1b0ba9d38)

7 years ago3.7.1rc1 v3.7.1rc1
Ned Deily [Wed, 26 Sep 2018 06:16:09 +0000 (02:16 -0400)] 
3.7.1rc1

7 years agoFix pickletools doc for NEWFALSE. (GH-9432)
Miss Islington (bot) [Wed, 26 Sep 2018 05:19:08 +0000 (22:19 -0700)] 
Fix pickletools doc for NEWFALSE. (GH-9432)

Also make docs for NEWFALSE and NEWTRUE more consistent
with docs for other opcodes.
(cherry picked from commit 488cfb78c8b81075942b5e4cc9630e7a6dd9dc28)

Co-authored-by: Krzysztof Wroblewski <krzysiek.wr@gmail.com>
7 years agobpo-34370: Update Tk 8.6 used with macOS installers
Ned Deily [Wed, 26 Sep 2018 03:38:11 +0000 (23:38 -0400)] 
bpo-34370: Update Tk 8.6 used with macOS installers

Have macOS 10.9+ installer builds for 3.7.1rc and 3.6.7rc use a development
snapshot of Tk 8.6 (post-8.6.8) to mitigate certain scroller issues seen
with IDLE and tkinter apps.

7 years agobpo-34320: Fix dict(o) didn't copy order of dict subclass (GH-8624)
Miss Islington (bot) [Wed, 26 Sep 2018 04:17:52 +0000 (21:17 -0700)] 
bpo-34320: Fix dict(o) didn't copy order of dict subclass (GH-8624)

When dict subclass overrides order (`__iter__()`, `keys()`, and `items()`), `dict(o)`
should use it instead of dict ordering.

https://bugs.python.org/issue34320
(cherry picked from commit 2aaf98c16ae3070378de523a173e29644037d8bd)

Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
7 years ago[3.7] asyncio/docs: Replace Python 4.0 -> 3.10 (GH-9580)
Yury Selivanov [Tue, 25 Sep 2018 22:00:15 +0000 (18:00 -0400)] 
[3.7] asyncio/docs: Replace Python 4.0 -> 3.10 (GH-9580)

7 years agobpo-34790: [docs] Passing coroutines to asyncio.wait() can be confusing. (GH-9543)
Miss Islington (bot) [Tue, 25 Sep 2018 18:57:49 +0000 (11:57 -0700)] 
bpo-34790: [docs] Passing coroutines to asyncio.wait() can be confusing. (GH-9543)

(cherry picked from commit 996859a90df51f84eab47351702cb59c6db4428a)

Co-authored-by: Yury Selivanov <yury@magic.io>
7 years agobpo-34162: idlelib/NEWS.txt entry for squeezer (GH-9573)
Miss Islington (bot) [Tue, 25 Sep 2018 18:02:06 +0000 (11:02 -0700)] 
bpo-34162: idlelib/NEWS.txt entry for squeezer (GH-9573)

(cherry picked from commit 22ef31d0b4b497eda5e356528c3e1d29584d6757)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
7 years agobpo-1529353: IDLE - Squeezer What's New for 3.7.1 (GH-9568)
Miss Islington (bot) [Tue, 25 Sep 2018 16:17:57 +0000 (09:17 -0700)] 
bpo-1529353: IDLE - Squeezer What's New for 3.7.1 (GH-9568)

(cherry picked from commit ea718d377db3941ecfc86288a3465fce653cc682)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
7 years agobpo-1529353: IDLE: Squeezer What's New for 3.6.7 (GH-9567)
Miss Islington (bot) [Tue, 25 Sep 2018 16:15:14 +0000 (09:15 -0700)] 
bpo-1529353: IDLE: Squeezer What's New for 3.6.7 (GH-9567)

(cherry picked from commit dac712d51667227ce3862fc61be6a8094b1066fa)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
7 years agobpo-33937: Catch ENOMEM error in test_socket (GH-9557)
Miss Islington (bot) [Tue, 25 Sep 2018 15:49:28 +0000 (08:49 -0700)] 
bpo-33937: Catch ENOMEM error in test_socket (GH-9557)

Fix test_socket.SendmsgSCTPStreamTest: catch ENOMEM error.
testSendmsgTimeout() and testSendmsgDontWait() randomly fail on
Travis CI with: "OSError: [Errno 12] Cannot allocate memory".
(cherry picked from commit 46f40be8b907854deb81c6132b7cb038e9e5202a)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
7 years agobpo-1529353: IDLE: squeeze large output in the shell (GH-7626)
Miss Islington (bot) [Tue, 25 Sep 2018 12:38:45 +0000 (05:38 -0700)] 
bpo-1529353: IDLE: squeeze large output in the shell (GH-7626)

(cherry picked from commit 604e7b9931f9e7881a2941816e538f5f15930db8)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
7 years agobpo-34770: Fix a possible null pointer dereference in pyshellext.cpp (GH-9497) 9558/head
Miss Islington (bot) [Tue, 25 Sep 2018 04:44:11 +0000 (21:44 -0700)] 
bpo-34770: Fix a possible null pointer dereference in pyshellext.cpp (GH-9497)

The GlobalLock() call in UpdateDropDescription() was not checked for
failure.

https://bugs.python.org/issue34770
(cherry picked from commit f6c8007a29b95b3ea3ca687a9b4924769a696328)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
7 years agoFix wrong exception reference: BrokenThreadPool -> BrokenProcessPool (GH-9533)
Miss Islington (bot) [Tue, 25 Sep 2018 03:35:46 +0000 (20:35 -0700)] 
Fix wrong exception reference: BrokenThreadPool -> BrokenProcessPool (GH-9533)

(cherry picked from commit b60b4683f6c995e9205f68439023c80a0b628f39)

Co-authored-by: Joni Kähärä <joni.kahara@gmail.com>
7 years agobpo-34162: Update idlelib/NEWS.txt to 2018-9-24. (GH-9551)
Miss Islington (bot) [Tue, 25 Sep 2018 00:23:07 +0000 (17:23 -0700)] 
bpo-34162: Update idlelib/NEWS.txt to 2018-9-24. (GH-9551)

(cherry picked from commit 16fba6231458cc1ff82db8695ee772b74131cc83)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
7 years ago[3.7]Documentation minor update related to 3.6 - 3.7 migration (GH-9501)
Christophe Nanteuil [Mon, 24 Sep 2018 16:33:44 +0000 (18:33 +0200)] 
[3.7]Documentation minor update related to 3.6 - 3.7 migration (GH-9501)

Change version from 3.6 to 3.7 in the documentation when it addresses newcomers.

original request from python/python-docs-fr#273

7 years agobpo-34783: Add test_cmd_line_script.test_nonexisting_script() (GH-9535)
Miss Islington (bot) [Mon, 24 Sep 2018 15:28:23 +0000 (08:28 -0700)] 
bpo-34783: Add test_cmd_line_script.test_nonexisting_script() (GH-9535)

Make sure that "./python script.py" does not crash if the script
file doesn't exist.
(cherry picked from commit a46467ff198c42c8f34768c7be4b4562f6f44736)

Co-authored-by: Victor Stinner <vstinner@redhat.com>