]> granicus.if.org Git - python/log
python
4 years ago3.7.4rc1 v3.7.4rc1
Ned Deily [Tue, 18 Jun 2019 21:02:54 +0000 (17:02 -0400)]
3.7.4rc1

4 years agoChangelog fixups for 3.7.3rc1
Ned Deily [Tue, 18 Jun 2019 20:45:32 +0000 (16:45 -0400)]
Changelog fixups for 3.7.3rc1

4 years agoUpdate macOS installer welcome and readme for 3.7.4
Ned Deily [Tue, 18 Jun 2019 20:33:11 +0000 (16:33 -0400)]
Update macOS installer welcome and readme for 3.7.4

4 years agobpo-36231: Support building on macOS without /usr/include (GH-13773) (GH-14208)
Ned Deily [Tue, 18 Jun 2019 20:28:13 +0000 (16:28 -0400)]
bpo-36231:  Support building on macOS without /usr/include (GH-13773) (GH-14208)

4 years agobpo-34903: Document that some strptime formats only require 1 digit (GH-14149)
Miss Islington (bot) [Tue, 18 Jun 2019 18:55:27 +0000 (11:55 -0700)]
bpo-34903: Document that some strptime formats only require 1 digit (GH-14149)

For datetime.datetime.strptime(), the leading zero for some two-digit formats is optional.

This adds a footnote to the strftime/strptime documentation to reflect this fact, and adds some tests to ensure that it is true.

bpo-34903
(cherry picked from commit 6b9c204ee77a0de87d6f51a3d4547a18604cef9e)

Co-authored-by: Mike Gleen <mike.gleen@gmail.com>
4 years agobpo-35360: Update macOS installer to use SQLite 3.28.0 (GH-14180)
Miss Islington (bot) [Tue, 18 Jun 2019 10:24:20 +0000 (03:24 -0700)]
bpo-35360: Update macOS installer to use SQLite 3.28.0 (GH-14180)

(cherry picked from commit d8f336fdc10decdd82d3bc81a63aea8be149c0c8)

Co-authored-by: animalize <animalize@users.noreply.github.com>
4 years agobpo-35031: also disable TLS 1.3 for test_start_tls_server_1 on macOS (GH-14188) ...
Miss Islington (bot) [Tue, 18 Jun 2019 09:45:10 +0000 (02:45 -0700)]
bpo-35031: also disable TLS 1.3 for test_start_tls_server_1 on macOS (GH-14188) (GH-14192)

(cherry picked from commit a514f782b822bd7bca7c8d78be7bd53bc25c1908)

Co-authored-by: Ned Deily <nad@python.org>
4 years agobpo-34631: Updated OpenSSL to 1.1.1c in macOS installer (GH-14187)
Miss Islington (bot) [Tue, 18 Jun 2019 08:40:05 +0000 (01:40 -0700)]
bpo-34631: Updated OpenSSL to 1.1.1c in macOS installer (GH-14187)

(cherry picked from commit f3fb8393e3cbbdc0ec79e0fdefaadec6977e1491)

Co-authored-by: Ned Deily <nad@python.org>
4 years agobpo-5680: IDLE: Customize running a module (GH-13763)
Miss Islington (bot) [Tue, 18 Jun 2019 02:47:55 +0000 (19:47 -0700)]
bpo-5680: IDLE: Customize running a module (GH-13763)

The initialize options are 1) add command line options, which are appended to sys.argv as if passed on a real command line, and 2) skip the shell restart. The customization dialog is accessed by a new entry on the Run menu.
(cherry picked from commit 201bc2d18b60adb05810d2a6ab396047bc527088)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
4 years agobpo-34631: Updated OpenSSL to 1.1.1c in Windows installer (GH-14163)
Steve Dower [Mon, 17 Jun 2019 22:26:43 +0000 (15:26 -0700)]
bpo-34631: Updated OpenSSL to 1.1.1c in Windows installer (GH-14163)

4 years agobpo-37321: Edit IDLE subprocess connection error messages. (GH-14170)
Miss Islington (bot) [Mon, 17 Jun 2019 21:50:48 +0000 (14:50 -0700)]
bpo-37321: Edit IDLE subprocess connection error messages. (GH-14170)

Mainly, add a doc reference to message in pyshell.
(cherry picked from commit 8fac1221097aaf6ac37ed9ea727ee7892085e183)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 years agobpo-37039: Make IDLE's Zoom Height adjust to users' screens (GH-13678)
Miss Islington (bot) [Mon, 17 Jun 2019 20:06:39 +0000 (13:06 -0700)]
bpo-37039: Make IDLE's Zoom Height adjust to users' screens (GH-13678)

Measure required height by quickly maximizing once per screen.
A search for a better method failed.
(cherry picked from commit 5bff3c86ab77e9d831b3cd19b45654c7eef22931)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
4 years agobpo-37194: Complete PyObject_CallXXX() docs (GH-14156) (GH-14158)
Victor Stinner [Mon, 17 Jun 2019 13:23:52 +0000 (15:23 +0200)]
bpo-37194: Complete PyObject_CallXXX() docs (GH-14156) (GH-14158)

Mention explicitly that PyObject_CallXXX() functions raise an
exception an failure.

(cherry picked from commit 1ce2656f13e726b3b99d4c968926908cff1f460a)

4 years agobpo-35031, test_asycio: disable TLS 1.3 in test_start_tls_server_1() (GH-14148)
Miss Islington (bot) [Mon, 17 Jun 2019 10:10:48 +0000 (03:10 -0700)]
bpo-35031, test_asycio: disable TLS 1.3 in test_start_tls_server_1() (GH-14148)

bpo-35031, bpo-35998: Reintroduce workaround on Windows and FreeBSD
in test_start_tls_server_1() of test_asyncio: disable TLS v1.3 on the
client context.
(cherry picked from commit c034b7824f5a7c50f2946ab3931633200e31d903)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
4 years agobpo-37267: Do not check for FILE_TYPE_CHAR in os.dup() on Windows (GH-14051) (GH...
Miss Islington (bot) [Mon, 17 Jun 2019 08:45:04 +0000 (01:45 -0700)]
bpo-37267: Do not check for FILE_TYPE_CHAR in os.dup() on Windows (GH-14051) (GH-14141)

On Windows, os.dup() no longer creates an inheritable fd when handling a
character file.
(cherry picked from commit 28fca0c422b425a6be43be31add0a5328c16b0b8)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
4 years agobpo-36688: Adding an implementation of RLock in _dummy_thread (GH-12943)
Miss Islington (bot) [Mon, 17 Jun 2019 08:28:43 +0000 (01:28 -0700)]
bpo-36688: Adding an implementation of RLock in _dummy_thread (GH-12943)

(cherry picked from commit c5905f39bcf4ef895d42eede41bb5a2f071a501d)

Co-authored-by: Joost Lek <vlabakje@gmail.com>
4 years agobpo-28805: document METH_FASTCALL (GH-14079)
Miss Islington (bot) [Sun, 16 Jun 2019 23:24:06 +0000 (16:24 -0700)]
bpo-28805: document METH_FASTCALL (GH-14079)

(cherry picked from commit 5600b5e1b24a3491e83f1b3038a7ea047a34c0bf)

Co-authored-by: Jeroen Demeyer <J.Demeyer@UGent.be>
4 years agobpo-37220: Fix 2.7 test -R crash on Windows. (GH-13957)
Miss Islington (bot) [Sun, 16 Jun 2019 20:52:25 +0000 (13:52 -0700)]
bpo-37220: Fix 2.7 test -R crash on Windows. (GH-13957)

The patch needed for 2.7 should make the test more stable on 3.x also.
(cherry picked from commit 66d47da86aff15be34adbec02596bb3188684c0d)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 years agoDoc: Remove an ugly space before a dot. (GH-14123)
Miss Islington (bot) [Sun, 16 Jun 2019 14:37:02 +0000 (07:37 -0700)]
Doc: Remove an ugly space before a dot. (GH-14123)

(cherry picked from commit 552951563cd5968d25e95306362e41f07d661a88)

Co-authored-by: Julien Palard <julien@palard.fr>
4 years agobpo-35922: Fix RobotFileParser when robots.txt has no relevant crawl delay or request...
Miss Islington (bot) [Sun, 16 Jun 2019 07:10:06 +0000 (00:10 -0700)]
bpo-35922: Fix RobotFileParser when robots.txt has no relevant crawl delay or request rate (GH-11791)

Co-Authored-By: Tal Einat <taleinat+github@gmail.com>
(cherry picked from commit 8047e0e1c620f69cc21f9ca48b24bf2cdd5c3668)

Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
4 years ago[3.7] Doc: Add an optional obsolete header. (GH-13638). (GH-13655)
Julien Palard [Sat, 15 Jun 2019 18:27:11 +0000 (20:27 +0200)]
[3.7] Doc: Add an optional obsolete header. (GH-13638). (GH-13655)

* [3.7] Doc: Add an optional obsolete header. (GH-13638).
(cherry picked from commit 46ed90dd014010703c7a3b2a61c4927644fa8210)

Co-authored-by: Julien Palard <julien@palard.fr>
4 years agobpo-37289: Remove 'if False' handling in the peephole optimizer (GH-14099) (GH-14111)
Miss Islington (bot) [Sat, 15 Jun 2019 15:22:34 +0000 (08:22 -0700)]
bpo-37289: Remove 'if False' handling in the peephole optimizer (GH-14099) (GH-14111)

(cherry picked from commit 7a68f8c28bb78d957555a5001dac4df6345434a0)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
4 years agoFix typo in Lib/concurrent/futures/thread.py (GH-13953)
Miss Islington (bot) [Sat, 15 Jun 2019 12:11:15 +0000 (05:11 -0700)]
Fix typo in Lib/concurrent/futures/thread.py (GH-13953)

(cherry picked from commit 552ace7498722f1add9f3782751b0d365f4c24c8)

Co-authored-by: ubordignon <48903745+ubordignon@users.noreply.github.com>
4 years ago[3.7] bpo-37279: Fix asyncio sendfile support when extra data are sent in fallback...
Andrew Svetlov [Sat, 15 Jun 2019 11:56:27 +0000 (14:56 +0300)]
[3.7] bpo-37279: Fix asyncio sendfile support when  extra data are sent in fallback mode. (GH-14075). (GH-14103)

(cherry picked from commit ef2152354f03a165c5e3adb53e2276934fabd50a)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
4 years agoUpdate weakref.rst (GH-14098)
Miss Islington (bot) [Sat, 15 Jun 2019 11:50:11 +0000 (04:50 -0700)]
Update weakref.rst (GH-14098)

(cherry picked from commit f475729a714a9fb13672f8989c4abbafb783e09b)

Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
4 years agoUse threadpool for reading from file in sendfile fallback mode (GH-14076)
Miss Islington (bot) [Sat, 15 Jun 2019 11:27:10 +0000 (04:27 -0700)]
Use threadpool for reading from file in sendfile fallback mode (GH-14076)

(cherry picked from commit 0237265e8287141c40faa8719da3a2d21d511d0d)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
4 years agobpo-19865: ctypes.create_unicode_buffer() supports non-BMP strings on Windows (GH...
Miss Islington (bot) [Fri, 14 Jun 2019 16:30:27 +0000 (09:30 -0700)]
bpo-19865: ctypes.create_unicode_buffer() supports non-BMP strings on Windows (GH-14081)

(cherry picked from commit 9765efcb39fc03d5b1abec3924388974470a8bd5)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
4 years agobpo-35998: Avoid TimeoutError in test_asyncio: test_start_tls_server_1() (GH-14080...
Victor Stinner [Fri, 14 Jun 2019 16:26:37 +0000 (18:26 +0200)]
bpo-35998: Avoid TimeoutError in test_asyncio: test_start_tls_server_1() (GH-14080) (GH-14086)

(cherry picked from commit f0749da9a535375f05a2015e8960e8ae54877349)

4 years agoUpdate concurrent.futures.rst (GH-14061)
Miss Islington (bot) [Fri, 14 Jun 2019 14:52:14 +0000 (07:52 -0700)]
Update concurrent.futures.rst (GH-14061)

This PR adds missing details in the [`concurrent.futures`](https://docs.python.org/3/library/concurrent.futures.html) documentation:

* the mention that `Future.cancel` also returns `False` if the call finished running;
* the mention of the states for `Future` that did not complete: pending or running.
(cherry picked from commit 431478d5d74d880692817323198b9605af972fa5)

Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
4 years ago[3.7] bpo-37269: Correctly optimise conditionals with constant booleans (GH-14071...
Pablo Galindo [Fri, 14 Jun 2019 06:18:51 +0000 (07:18 +0100)]
[3.7] bpo-37269: Correctly optimise conditionals with constant booleans (GH-14071) (GH-14073)

Fix a regression introduced by af8646c8054d0f4180a2013383039b6a472f9698 that was causing code of the form:

if True and False:
   do_something()

to be optimized incorrectly, eliminating the block..
(cherry picked from commit 05f831865545b08c9a21cfb7773af58b76ec64cb)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
4 years agobpo-36779: time.tzname returns empty string on Windows if default cod… (GH-13073)
Miss Islington (bot) [Thu, 13 Jun 2019 13:42:46 +0000 (06:42 -0700)]
bpo-36779: time.tzname returns empty string on Windows if default cod… (GH-13073)

Calling setlocale(LC_CTYPE, "") on a system where GetACP() returns CP_UTF8 results in empty strings in _tzname[].

This causes time.tzname to be an empty string.
I have reported the bug to the UCRT team and will follow up, but it will take some time get a fix into production.

In the meantime one possible workaround is to temporarily change the locale by calling setlocale(LC_CTYPE, "C") before calling _tzset and restore the current locale after if the GetACP() == CP_UTF8 or CP_UTF7

@zooba

https://bugs.python.org/issue36779
(cherry picked from commit b4c7defe58695a6670a8fdeaef67a638bbb47e42)

Co-authored-by: Paul Monson <paulmon@users.noreply.github.com>
4 years agobpo-36402: Fix threading._shutdown() race condition (GH-13948) (GH-14050) (GH-14054)
Miss Islington (bot) [Thu, 13 Jun 2019 12:22:20 +0000 (05:22 -0700)]
bpo-36402: Fix threading._shutdown() race condition (GH-13948) (GH-14050) (GH-14054)

* bpo-36402: Fix threading._shutdown() race condition (GH-13948)

Fix a race condition at Python shutdown when waiting for threads.
Wait until the Python thread state of all non-daemon threads get
deleted (join all non-daemon threads), rather than just wait until
Python threads complete.

* Add threading._shutdown_locks: set of Thread._tstate_lock locks
  of non-daemon threads used by _shutdown() to wait until all Python
  thread states get deleted. See Thread._set_tstate_lock().
* Add also threading._shutdown_locks_lock to protect access to
  threading._shutdown_locks.
* Add test_finalization_shutdown() test.

(cherry picked from commit 468e5fec8a2f534f1685d59da3ca4fad425c38dd)

* bpo-36402: Fix threading.Thread._stop() (GH-14047)

Remove the _tstate_lock from _shutdown_locks, don't remove None.

(cherry picked from commit 6f75c873752a16a7ad8f35855b1e29f59d048e84)
(cherry picked from commit e40a97a721d46307dfdc2b0322028ccded6eb571)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
4 years agobpo-35070: test_getgrouplist may fail on macOS if too many groups (GH-13071)
Miss Islington (bot) [Thu, 13 Jun 2019 07:18:26 +0000 (00:18 -0700)]
bpo-35070: test_getgrouplist may fail on macOS if too many groups (GH-13071)

(cherry picked from commit 8725c83ed5ca8959195ad8326db99d564a921749)

Co-authored-by: Jeffrey Kintscher <49998481+websurfer5@users.noreply.github.com>
4 years agobpo-31829: Make protocol 0 pickles be loadable in text mode in Python 2. (GH-11859)
Miss Islington (bot) [Wed, 12 Jun 2019 11:50:11 +0000 (04:50 -0700)]
bpo-31829: Make protocol 0 pickles be loadable in text mode in Python 2. (GH-11859)

Escape ``\r``, ``\0`` and ``\x1a`` (end-of-file on Windows) in Unicode strings.
(cherry picked from commit 38ab7d4721b422547f7b46b9d68968863fa70573)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-29505: Fuzz json module, enforce size limit on int(x) fuzz (GH-13991)
Miss Islington (bot) [Wed, 12 Jun 2019 04:47:42 +0000 (21:47 -0700)]
bpo-29505: Fuzz json module, enforce size limit on int(x) fuzz (GH-13991)

* bpo-29505: Enable fuzz testing of the json module, enforce size limit on int(x) fuzz and json input size to avoid timeouts.

Contributed by by Ammar Askar for Google.
(cherry picked from commit a6e190e94b47324f14e22a09200c68b722d55699)

Co-authored-by: Ammar Askar <aaskar@google.com>
4 years agobpo-32625: Updated documentation for EXTENDED_ARG. (GH-13985)
Miss Islington (bot) [Wed, 12 Jun 2019 03:51:42 +0000 (20:51 -0700)]
bpo-32625: Updated documentation for EXTENDED_ARG. (GH-13985)

Python 3.6 changed the size of bytecode instruction, while the documentation for `EXTENDED_ARG` was not updated accordingly.
(cherry picked from commit 405f648db7c44b07348582b5101d4716e0ce5ac3)

Co-authored-by: Yao Zuo <laike9m@users.noreply.github.com>
4 years ago[3.7] bpo-36520: Email header folded incorrectly (GH-13608) (GH-13910)
Abhilash Raj [Tue, 11 Jun 2019 23:27:06 +0000 (19:27 -0400)]
[3.7] bpo-36520: Email header folded incorrectly (GH-13608) (GH-13910)

* [bpo-36520](https://bugs.python.org/issue36520): reset the encoded word offset when starting a new
line during an email header folding operation

* 📜🤖 Added by blurb_it.

* [bpo-36520](https://bugs.python.org/issue36520): add an additional test case, and provide descriptive
comments for the test_folding_with_utf8_encoding_* tests

* [bpo-36520](https://bugs.python.org/issue36520): fix whitespace issue

* [bpo-36520](https://bugs.python.org/issue36520): changes per reviewer request -- remove extraneous
backslashes; add whitespace between terminating quotes and
line-continuation backslashes; use "bpo-" instead of
"issue GH-" in comments
(cherry picked from commit f6713e84afc5addcfa8477dbdf2c027787f711c0)

Co-authored-by: websurfer5 <49998481+websurfer5@users.noreply.github.com>
https://bugs.python.org/issue36520

4 years agoFix test_posix if RWF_HIPRI is defined but not preadv2. (GH-13980)
Miss Islington (bot) [Tue, 11 Jun 2019 17:33:36 +0000 (10:33 -0700)]
Fix test_posix if RWF_HIPRI is defined but not preadv2. (GH-13980)

If preadv2 is not available, preadv will raise NotImplementedError.
(cherry picked from commit 44867bb9376e324493f0149ac8b3c33f23c9050d)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
4 years agocloses bpo-33758: Skip test_get_type_hints_modules_forwardref. (GH-13977)
Miss Islington (bot) [Tue, 11 Jun 2019 16:52:15 +0000 (09:52 -0700)]
closes bpo-33758: Skip test_get_type_hints_modules_forwardref. (GH-13977)

This test "works" if things are run in the right order, so it's better to use @skip than @expectedFailure here.
(cherry picked from commit 910b3fcb01c29f18ffd53086e36cd2cb9e5fae55)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
4 years agobpo-36607: Eliminate RuntimeError raised by asyncio.all_tasks() (GH-13971)
Miss Islington (bot) [Tue, 11 Jun 2019 16:01:20 +0000 (09:01 -0700)]
bpo-36607: Eliminate RuntimeError raised by asyncio.all_tasks() (GH-13971)

If internal tasks weak set is changed by another thread during iteration.

https://bugs.python.org/issue36607
(cherry picked from commit 65aa64fae89a24491aae84ba0329eb8f3c68c389)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
4 years ago[3.7] bpo-37219: Remove erroneous optimization for differencing an empty set (GH...
Raymond Hettinger [Tue, 11 Jun 2019 09:01:06 +0000 (02:01 -0700)]
[3.7] bpo-37219: Remove erroneous optimization for differencing an empty set (GH-13965) (GH-13968)

4 years ago[3.7] bpo-37216: Fix version and filename in Mac using document (GH-13963)
Makdon [Tue, 11 Jun 2019 05:38:25 +0000 (13:38 +0800)]
[3.7] bpo-37216: Fix version and filename in Mac using document (GH-13963)

4 years agocloses bpo-35184: Fix XML_POOR_ENTROPY option that breaks makesetup parsing of pyexpa...
Miss Islington (bot) [Tue, 11 Jun 2019 02:15:24 +0000 (19:15 -0700)]
closes bpo-35184: Fix XML_POOR_ENTROPY option that breaks makesetup parsing of pyexpat line in Setup. (GH-13064)

When the line is uncommented, the equals character causes it to be incorrectly interpreted
as a macro definition by makesetup.  This results in invalid Makefile output.

The expat code only requires XML_POOR_ENTROPY to be defined; the value is unnecessary.
(cherry picked from commit 408a2ef1aceff1f4270c44552fa39ef93d9283e3)

Co-authored-by: aaronpaulhurst <aaronpaulhurst@gmail.com>
4 years agoStop using deprecated logging API in Sphinx suspicious checker (GH-9875)
Miss Islington (bot) [Sun, 9 Jun 2019 00:53:20 +0000 (17:53 -0700)]
Stop using deprecated logging API in Sphinx suspicious checker (GH-9875)

(cherry picked from commit ee171a26c1169abfae534b08acc0d95c6e45a22a)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
4 years agobpo-37173: Show passed class in inspect.getfile error (GH-13861)
Miss Islington (bot) [Sat, 8 Jun 2019 15:27:06 +0000 (08:27 -0700)]
bpo-37173: Show passed class in inspect.getfile error (GH-13861)

Currently, inspect.getfile(str) will report nonsense:

```pytb
>>> inspect.getfile(str)
TypeError: <module 'builtins' (built-in)> is a built-in class
```

This fixes that

https://bugs.python.org/issue37173
(cherry picked from commit d407d2a7265f6102e51a1d62b3fd28b4f7a78d16)

Co-authored-by: Philipp A <flying-sheep@web.de>
4 years agobpo-34886: Fix subprocess.run handling of exclusive arguments (GH-11727)
Miss Islington (bot) [Sat, 8 Jun 2019 15:24:10 +0000 (08:24 -0700)]
bpo-34886: Fix subprocess.run handling of exclusive arguments (GH-11727)

Fix an unintended ValueError from :func:`subprocess.run` when checking for
conflicting `input` and `stdin` or `capture_output` and `stdout` or `stderr` args
when they were explicitly provided but with `None` values within a passed in
`**kwargs` dict rather than as passed directly by name.
(cherry picked from commit 8cc605acdda5aff250ab4c9b524a7560f90ca9f3)

Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
4 years agobpo-29505: Fix interpreter in fuzzing targets to be relocatable (GH-13907)
Miss Islington (bot) [Sat, 8 Jun 2019 15:03:46 +0000 (08:03 -0700)]
bpo-29505: Fix interpreter in fuzzing targets to be relocatable (GH-13907)

(cherry picked from commit a15a7bcaea54e1845ab2abe27e6f583294cd715b)

Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
4 years ago[3.7] bpo-37170: Fix the cast on error in PyLong_AsUnsignedLongLongMask() (GH-13860...
Zackery Spytz [Fri, 7 Jun 2019 15:41:10 +0000 (09:41 -0600)]
[3.7] bpo-37170: Fix the cast on error in PyLong_AsUnsignedLongLongMask() (GH-13860) (GH-13896)

(cherry picked from commit dc2476500d91082f0c907772c83a044bf49af279)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
4 years agoUse assertEqual(). (#13886)
Miss Islington (bot) [Fri, 7 Jun 2019 09:47:16 +0000 (02:47 -0700)]
Use assertEqual(). (#13886)

4 years agoIDLE: Standardize naming convention for DummyEditwin in tests (GH-13876)
Miss Islington (bot) [Fri, 7 Jun 2019 09:29:03 +0000 (02:29 -0700)]
IDLE: Standardize naming convention for DummyEditwin in tests (GH-13876)

* Change from Dummy_Editwin to DummyEditwin to match other tests.
(cherry picked from commit 7f8a38a7c47823c17adab469fcb4f762f4e945b7)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
4 years agobpo-37188: Fix a divide-by-zero in arrays of size-0 objects (GH-13881) (#13882)
Miss Islington (bot) [Fri, 7 Jun 2019 08:34:14 +0000 (01:34 -0700)]
bpo-37188: Fix a divide-by-zero in arrays of size-0 objects (GH-13881) (#13882)

4 years agobpo-37177: make IDLE's search dialogs transient (GH-13869)
Miss Islington (bot) [Fri, 7 Jun 2019 06:37:32 +0000 (23:37 -0700)]
bpo-37177: make IDLE's search dialogs transient (GH-13869)

This avoids the search dialogs being hidden behind the editor window.
(cherry picked from commit 554450fb4e95066e825bdb4a2d544a490daeebdc)

Co-authored-by: Tal Einat <taleinat@gmail.com>
4 years agobpo-21315: Fix parsing of encoded words with missing leading ws. (GH-13425) (#13846)
Miss Islington (bot) [Thu, 6 Jun 2019 17:08:43 +0000 (10:08 -0700)]
bpo-21315: Fix parsing of encoded words with missing leading ws. (GH-13425) (#13846)

* bpo-21315: Fix parsing of encoded words with missing leading ws.

Because of missing leading whitespace, encoded word would get parsed as
unstructured token. This patch fixes that by looking for encoded words when
splitting tokens with whitespace.

Missing trailing whitespace around encoded word now register a defect
instead.

Original patch suggestion by David R. Murray on bpo-21315.
(cherry picked from commit 66c4f3f38b867d8329b28c032bb907fd1a2f22d2)

Co-authored-by: Abhilash Raj <maxking@users.noreply.github.com>
4 years agoDon't report deleted attributes in __dir__ (GHGH-10148)
Miss Islington (bot) [Thu, 6 Jun 2019 10:39:30 +0000 (03:39 -0700)]
Don't report deleted attributes in __dir__ (GHGH-10148)

When an attribute is deleted from a Mock, a sentinel is added rather
than just deleting the attribute. This commit checks for such sentinels
when returning the child mocks in the __dir__ method as users won't
expect deleted attributes to appear when performing dir(mock).
(cherry picked from commit 0df635c7f8aa69e56a092bd4f142f0f164741ab2)

Co-authored-by: Mario Corchero <mariocj89@gmail.com>
4 years agobpo-30835: email: Fix AttributeError when parsing invalid CTE (GH-13598)
Miss Islington (bot) [Wed, 5 Jun 2019 10:23:37 +0000 (03:23 -0700)]
bpo-30835: email: Fix AttributeError when parsing invalid CTE (GH-13598)

* bpo-30835: email: Fix AttributeError when parsing invalid Content-Transfer-Encoding

Parsing an email containing a multipart Content-Type, along with a
Content-Transfer-Encoding containing an invalid (non-ASCII-decodable) byte
will fail. email.feedparser.FeedParser._parsegen() gets the header and
attempts to convert it to lowercase before comparing it with the accepted
encodings, but as the header contains an invalid byte, it's returned as a
Header object rather than a str.

Cast the Content-Transfer-Encoding header to a str to avoid this.

Found using the AFL fuzzer.

Reported-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Andrew Donnellan <andrew@donnellan.id.au>
* Add email and NEWS entry for the bugfix.
(cherry picked from commit aa79707262f893428665ef45b5e879129abca4aa)

Co-authored-by: Abhilash Raj <maxking@users.noreply.github.com>
4 years agobpo-35763: Make IDLE calltip note about '/' less obtrusive (GH-13791)
Miss Islington (bot) [Wed, 5 Jun 2019 02:15:48 +0000 (19:15 -0700)]
bpo-35763: Make IDLE calltip note about '/' less obtrusive (GH-13791)

Add it to the end of the first line if there is room.  Tests were reworked.
(cherry picked from commit 949fe976d5c62ae63ed505ecf729f815d0baccfc)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 years agoDoc: Python 3.9 in sidebar and version switcher. (GH-13824)
Miss Islington (bot) [Tue, 4 Jun 2019 23:21:34 +0000 (16:21 -0700)]
Doc: Python 3.9 in sidebar and version switcher. (GH-13824)

(cherry picked from commit 59e7bbcaa4d0d556591f774c5ea4869c41fa95b0)

Co-authored-by: Julien Palard <julien@palard.fr>
4 years agobpo-37153: test_venv.test_mutiprocessing() calls pool.terminate() (GH-13816) (GH...
Miss Islington (bot) [Tue, 4 Jun 2019 19:07:03 +0000 (12:07 -0700)]
bpo-37153: test_venv.test_mutiprocessing() calls pool.terminate() (GH-13816) (GH-13819)

test_venv.test_mutiprocessing() now explicitly calls pool.terminate()
to wait until the pool completes.
(cherry picked from commit bc6469f79ca13217b784fb47da7ec83484a3debe)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
4 years agobpo-36742: Corrects fix to handle decomposition in usernames (GH-13812)
Miss Islington (bot) [Tue, 4 Jun 2019 16:15:13 +0000 (09:15 -0700)]
bpo-36742: Corrects fix to handle decomposition in usernames (GH-13812)

(cherry picked from commit 8d0ef0b5edeae52960c7ed05ae8a12388324f87e)

Co-authored-by: Steve Dower <steve.dower@python.org>
4 years agobpo-30699: Improve example on datetime tzinfo instances (GH-4290)
Miss Islington (bot) [Tue, 4 Jun 2019 15:25:16 +0000 (08:25 -0700)]
bpo-30699: Improve example on datetime tzinfo instances (GH-4290)

* Improve example on tzinfo instances

Move from GMTX to TZX when naming the classes, as GMT1 might be rather
confusing as seen in the reported issue.
In addition, move to UTC over GMT and improve the tzname implementation.

* Simplify datetime with tzinfo example

Move the example in the documentation to just use timezone.utc and a
user defined Kabul timezone rather than having two user defined
timezones with DST.

Kabul timezone is still interesting as it changes its offset but not
based on DST. This is more accurate as the previous example was missing
information about the fold attribute. Additionally, implementing the fold
attribute was rather complex and probably not relevant enough for the
section "datetime with tzinfo".
(cherry picked from commit f0b5ae4567637b24035ecda93a3240efc96b6dd9)

Co-authored-by: Mario Corchero <mcorcherojim@bloomberg.net>
4 years agobpo-36868: Fix what's new for SSLContext.hostname_checks_common_name (GH-13248)
Miss Islington (bot) [Mon, 3 Jun 2019 19:02:11 +0000 (12:02 -0700)]
bpo-36868: Fix what's new for SSLContext.hostname_checks_common_name (GH-13248)

What's new now mentions SSLContext.hostname_checks_common_name instead of SSLContext.host_flags.

https://bugs.python.org/issue36868
(cherry picked from commit 47eb2234061524562a4b484e3a395f4fdd6c1b76)

Co-authored-by: Christian Heimes <christian@python.org>
4 years ago[3.7] bpo-37081: Test with OpenSSL 1.1.1c (GH-13631) (GH-13782)
Miss Islington (bot) [Mon, 3 Jun 2019 18:39:57 +0000 (11:39 -0700)]
[3.7] bpo-37081: Test with OpenSSL 1.1.1c (GH-13631) (GH-13782)

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 06651ee418b5e4e013195d6b702763a1220706a7)

Co-authored-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue37081

4 years agoDoc fix: duplicate object description of email.message (GH-13742)
Miss Islington (bot) [Mon, 3 Jun 2019 15:25:52 +0000 (08:25 -0700)]
Doc fix: duplicate object description of email.message (GH-13742)

(cherry picked from commit 141da44bb45bc182886303fce92cbbae5631cb4c)

Co-authored-by: Julien Palard <julien@palard.fr>
4 years agoIDLE: Fix typos in docs and comments (GH-13749)
Miss Islington (bot) [Mon, 3 Jun 2019 04:39:32 +0000 (21:39 -0700)]
IDLE: Fix typos in docs and comments (GH-13749)

(cherry picked from commit d9677f36fe486e86bb86f2cd59cb7fc3804bdac1)

Co-authored-by: Xtreak <tir.karthi@gmail.com>
4 years agoFix variable name copy/paste error in build-installer.py (GH-13038)
Miss Islington (bot) [Mon, 3 Jun 2019 03:36:33 +0000 (20:36 -0700)]
Fix variable name copy/paste error in build-installer.py (GH-13038)

(cherry picked from commit d337169156933eaf732566bf29eb968549ada5e8)

Co-authored-by: cclauss <cclauss@me.com>
4 years ago[3.7] bpo-27987: align PyGC_Head to alignof(long double) (GH-13335) (GH-13581)
Inada Naoki [Mon, 3 Jun 2019 01:51:32 +0000 (10:51 +0900)]
[3.7] bpo-27987: align PyGC_Head to alignof(long double) (GH-13335) (GH-13581)

This reverts commit 2156fec1f7a8f9972e90cdbaf404e3fd9eaccb35.

Now that https://github.com/python/cpython/commit/1b85f4ec45a5d63188ee3866bd55eb29fdec7fbf is in, this change makes sense.

4 years agobpo-19184: Update the documentation of dis module. (GH-13652) (GH-13755)
Miss Islington (bot) [Sun, 2 Jun 2019 23:18:50 +0000 (16:18 -0700)]
bpo-19184: Update the documentation of dis module. (GH-13652) (GH-13755)

* bpo-19184: Update the documentation of dis module

* Explain the behavior of the number of arguments of RAISE_VARGARGS
  opcode.

* bpo-19184: Update blurb.

* bpo-19184: Fix typo in the dis Documentation.

* bpo-19184: Address review comments and improve the doc

* bpo-19184: Remove news file.
(cherry picked from commit e1179a5096fb12297ececd7a1c79969aa5747e28)

Co-authored-by: Michele Angrisano <michele.angrisano@gmail.com>
4 years agobpo-37014: Update docstring and Documentation of fileinput.FileInput(). (GH-13545...
Miss Islington (bot) [Sun, 2 Jun 2019 21:36:34 +0000 (14:36 -0700)]
bpo-37014: Update docstring and Documentation of fileinput.FileInput(). (GH-13545) (GH-13753)

* bpo-37014: Update docstring and Documentation of fileinput.FileInput()

* Explain the behavior of fileinput.FileInput() when reading stdin.

* Update blurb.

* bpo-37014: Fix typo in the docstring and documentation.
(cherry picked from commit aca273e2401ca3151e15e984f400233b7f255e15)

Co-authored-by: Michele Angrisano <michele.angrisano@gmail.com>
4 years agobpo-35610: IDLE - Replace .context_use_ps1 with .prompt_last_line (GH-11307)
Miss Islington (bot) [Sun, 2 Jun 2019 19:35:53 +0000 (12:35 -0700)]
bpo-35610: IDLE - Replace .context_use_ps1 with .prompt_last_line (GH-11307)

Changes in bpo- 31858 made the less informative 'context_use_ps1' redundant.
(cherry picked from commit 6bdc4dee01788599808c7858e2fe9fdd72cf6792)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
4 years agoImprove version added references in `typing` module docs (GH-13457)
Miss Islington (bot) [Sun, 2 Jun 2019 00:23:40 +0000 (17:23 -0700)]
Improve version added references in `typing` module docs (GH-13457)

(cherry picked from commit b7daabd711274a009e70556020efeae502a85f0b)

Co-authored-by: Anthony Sottile <asottile@umich.edu>
4 years agobpo-32411: IDLE: Remove line number sort in browser.py (GH-5011)
Miss Islington (bot) [Sat, 1 Jun 2019 22:26:00 +0000 (15:26 -0700)]
bpo-32411: IDLE: Remove line number sort in browser.py (GH-5011)

Insertion in line order makes sorting keys by line order unneeded.
(cherry picked from commit 1a4d9ffa1aecd7e750195f2be06d3d16c7a3a88f)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
4 years agoFix the error handling in bytesio_sizeof(). (GH-10459)
Miss Islington (bot) [Sat, 1 Jun 2019 21:58:33 +0000 (14:58 -0700)]
Fix the error handling in bytesio_sizeof(). (GH-10459)

bytesio_sizeof() must check if an error has occurred in _PySys_GetSizeOf().
(cherry picked from commit 36dcaab7fde5d2e54cdeff5b705b5adcb27726dd)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
4 years agoDoc: Correct the creation year and the credits of the Logo Programming language ...
Miss Islington (bot) [Sat, 1 Jun 2019 11:47:15 +0000 (04:47 -0700)]
Doc: Correct the creation year and the credits of the Logo Programming language (GH-13520)

(cherry picked from commit 66501058fef76a5d77e6879f6da3282f0a9eef1b)

Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
4 years agobpo-36813: Fix QueueListener to call task_done() upon termination. (GH-13113)
Miss Islington (bot) [Sat, 1 Jun 2019 09:36:29 +0000 (02:36 -0700)]
bpo-36813: Fix QueueListener to call task_done() upon termination. (GH-13113)

Fixed QueueListener in order to avoid random deadlocks.
Unable to add regression tests atm due to time constraints, will add it in a bit.
Regarding implementation, although it's nested, it does not cause performance issues whatsoever, and does not call task_done() in case of an exception (which is the right thing to do IMHO).

https://bugs.python.org/issue36813
(cherry picked from commit 6b282e18877ec84e927b381b4ce187eaf4ba3dd7)

Co-authored-by: Bar Harel <bzvi7919@gmail.com>
4 years agobpo-18911: clarify that the minidom XML writer receives texts but not bytes (GH-13718)
Miss Islington (bot) [Sat, 1 Jun 2019 06:58:54 +0000 (23:58 -0700)]
bpo-18911: clarify that the minidom XML writer receives texts but not bytes (GH-13718)

(cherry picked from commit 5ac0b988fd5f1428efe35329c531c7b5c74d37f6)

Co-authored-by: Windson yang <wiwindson@outlook.com>
4 years agobpo-15115: Document deprecation of email.encoders in Python 3 (GH-5354)
Miss Islington (bot) [Fri, 31 May 2019 20:26:01 +0000 (13:26 -0700)]
bpo-15115: Document deprecation of email.encoders in Python 3 (GH-5354)

(cherry picked from commit a747c3a5edf21fa5670bc30f5e1d804de89ebf62)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
4 years agobpo-33361: Fix bug with seeking in StreamRecoders (GH-8278)
Miss Islington (bot) [Fri, 31 May 2019 20:03:22 +0000 (13:03 -0700)]
bpo-33361: Fix bug with seeking in StreamRecoders (GH-8278)

(cherry picked from commit a6ec1ce1ac05b1258931422e96eac215b6a05459)

Co-authored-by: Ammar Askar <ammar_askar@hotmail.com>
4 years agobpo-12639: msilib.Directory.start_component() fails if *keyfile* is not None (GH...
Miss Islington (bot) [Fri, 31 May 2019 17:22:14 +0000 (10:22 -0700)]
bpo-12639: msilib.Directory.start_component() fails if *keyfile* is not None (GH-13688)

msilib.Directory.start_component() was passing an extra argument to CAB.gen_id().
(cherry picked from commit c8d5bf6c3fa09b43f6a5ee779d493d251dbcc53c)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
4 years agobpo-25735: math.factorial doc should mention integer return type (GH-6420)
Miss Islington (bot) [Fri, 31 May 2019 16:58:27 +0000 (09:58 -0700)]
bpo-25735: math.factorial doc should mention integer return type (GH-6420)

(cherry picked from commit 4612671df2742eade8ecf8003a6ce1247973c135)

Co-authored-by: Akshay Sharma <akshay.sharma09695@gmail.com>
4 years agobpo-37094: Add example for TestCase.skipTest in unittest doc (GH-13645)
Miss Islington (bot) [Fri, 31 May 2019 16:31:53 +0000 (09:31 -0700)]
bpo-37094: Add example for TestCase.skipTest in unittest doc (GH-13645)

Also includes other minor test skipping doc improvements.

https://bugs.python.org/issue37094
(cherry picked from commit ffed76b6fc4d7dd0244b662d6e5738eb496d9def)

Co-authored-by: Makdon <makdon@makdon.me>
4 years agoIDLE - Capitalize search dialogs' 'Close' button label. (GH-13691)
Miss Islington (bot) [Fri, 31 May 2019 08:44:29 +0000 (01:44 -0700)]
IDLE - Capitalize search dialogs' 'Close' button label. (GH-13691)

It seems to be the only widget label not capitalized.
(cherry picked from commit ba0430211f5101c9d748d72b03926ca79c5252a8)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years agobpo-30969: Fix docs about the comparison in absence of __contains__ (GH-2761)
Miss Islington (bot) [Thu, 30 May 2019 20:41:06 +0000 (13:41 -0700)]
bpo-30969: Fix docs about the comparison in absence of __contains__ (GH-2761)

(cherry picked from commit 2f5b9dcc0a89cbde1499c76df81c36bfd5ef9aa8)

Co-authored-by: Antti Haapala <antti@haapala.name>
5 years agobpo-24564: shutil.copystat(): ignore EINVAL on os.setxattr() (GH-13369)
Miss Islington (bot) [Thu, 30 May 2019 05:58:30 +0000 (22:58 -0700)]
bpo-24564: shutil.copystat(): ignore EINVAL on os.setxattr() (GH-13369)

(cherry picked from commit a16387ab2d85f19665920bb6ff91a7e57f59dd2a)

Co-authored-by: Ying Wang <me@yingw787.com>
5 years ago[3.7] bpo-36983: Fix typing.__all__ and add test for exported names (GH-13456) (GH...
Anthony Sottile [Thu, 30 May 2019 04:05:33 +0000 (21:05 -0700)]
[3.7] bpo-36983: Fix typing.__all__ and add test for exported names (GH-13456) (GH-13662)

https://bugs.python.org/issue36983

Fixes issue 36983

5 years agobpo-36794: Document that Lock.acquire is fair. (GH-13082)
Miss Islington (bot) [Wed, 29 May 2019 18:24:32 +0000 (11:24 -0700)]
bpo-36794: Document that Lock.acquire is fair. (GH-13082)

https://bugs.python.org/issue36794
(cherry picked from commit 34f4f5efea730504216ee19f237734e0bb0104ee)

Co-authored-by: Hrvoje Nikšić <hniksic@gmail.com>
5 years agobpo-36739: Update controlflow.rst (GH-12983)
Miss Islington (bot) [Wed, 29 May 2019 03:48:12 +0000 (20:48 -0700)]
bpo-36739: Update controlflow.rst (GH-12983)

in addition to global-statement also mention nonlocal-statement
(in the paragraph describing access to variables which are non local to a function
(cherry picked from commit e1f95e77e0647aff602e0660ba3c282b71045875)

Co-authored-by: pbhd <p-bauer-schriesheim@t-online.de>
5 years ago[3.7] Fix a possible crash due to PyType_FromSpecWithBases() (GH-10304) (GH-13495)
Petr Viktorin [Wed, 29 May 2019 03:35:33 +0000 (05:35 +0200)]
[3.7] Fix a possible crash due to PyType_FromSpecWithBases() (GH-10304) (GH-13495)

If the PyObject_MALLOC() call failed in PyType_FromSpecWithBases(),
PyObject_Free() would be called on a static string in type_dealloc().
(cherry picked from commit 0613c1e481440aa8f54ba7f6056924c175fbcc13)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years agobpo-26903: Limit ProcessPoolExecutor to 61 workers on Windows (GH-13132) (GH-13643)
Miss Islington (bot) [Wed, 29 May 2019 03:12:30 +0000 (20:12 -0700)]
bpo-26903: Limit ProcessPoolExecutor to 61 workers on Windows (GH-13132) (GH-13643)

Co-Authored-By: brianquinlan <brian@sweetapp.com>
(cherry picked from commit 39889864c09741909da4ec489459d0197ea8f1fc)

Co-authored-by: Brian Quinlan <brian@sweetapp.com>
5 years agobpo-22102: Fixes zip files with disks set to 0 (GH-5985)
Miss Islington (bot) [Tue, 28 May 2019 23:33:21 +0000 (16:33 -0700)]
bpo-22102: Fixes zip files with disks set to 0 (GH-5985)

(cherry picked from commit ab0716ed1ea2957396054730afbb80c1825f9786)

Co-authored-by: Francisco Facioni <fran6co@gmail.com>
5 years agoDocs: FIX broken links. (GH-13491)
Miss Islington (bot) [Tue, 28 May 2019 23:09:14 +0000 (16:09 -0700)]
Docs: FIX broken links. (GH-13491)

(cherry picked from commit 7114c6504a60365b8b0cd718da0ec8a737599fb9)

Co-authored-by: Julien Palard <julien@palard.fr>
5 years ago[3.7] Fix typo in docs for socket.CAN_RAW_FD_FRAMES (GH-13635) (GH-13637)
karl ding [Tue, 28 May 2019 19:32:12 +0000 (12:32 -0700)]
[3.7] Fix typo in docs for socket.CAN_RAW_FD_FRAMES (GH-13635) (GH-13637)

There is an extra "one" in the text description for the constant
socket.CAN_RAW_FD_FRAMES
(cherry picked from commit 1b05aa219041eb1c9dbcb4ec6c1fa5b20f060bf5)

5 years agoDoc: Add missing forward reference in the tutorial. (GH-13499)
Miss Islington (bot) [Tue, 28 May 2019 13:20:58 +0000 (06:20 -0700)]
Doc: Add missing forward reference in the tutorial. (GH-13499)

(cherry picked from commit 51ddab8dae056867f3595ab3400bffc93f67c8d4)

Co-authored-by: Julien Palard <julien@palard.fr>
5 years agobpo-26423: Fix possible overflow in wrap_lenfunc() (GH-13606)
Miss Islington (bot) [Tue, 28 May 2019 13:17:43 +0000 (06:17 -0700)]
bpo-26423: Fix possible overflow in wrap_lenfunc() (GH-13606)

Fix possible overflow in wrap_lenfunc() when
sizeof(long) < sizeof(Py_ssize_t) (e.g., 64-bit Windows).
(cherry picked from commit 05f16416d99dc9fc76fef11e56f16593e7a5955e)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years agoDoc: Space breaking whole definition. (GH-13615)
Miss Islington (bot) [Tue, 28 May 2019 12:28:34 +0000 (05:28 -0700)]
Doc: Space breaking whole definition. (GH-13615)

(cherry picked from commit 0811f2d81a12a3415dc2cb2744b41520c48d4db5)

Co-authored-by: Julien Palard <julien@palard.fr>
5 years agoRemove outdated time.monotonic reference (GH-13264)
Miss Islington (bot) [Tue, 28 May 2019 10:56:05 +0000 (03:56 -0700)]
Remove outdated time.monotonic reference (GH-13264)

Per ae58649, time.monotonic is always available, making the old note outdated.
(cherry picked from commit 293e9f86b8d10fcd88d6a2015babae76e9a8bd8f)

Co-authored-by: Brad <brad.solomon.1124@gmail.com>
5 years agoFix broken :ref: in asyncio docs (GH-11805)
Miss Islington (bot) [Tue, 28 May 2019 04:22:25 +0000 (21:22 -0700)]
Fix broken :ref: in asyncio docs (GH-11805)

(cherry picked from commit 5033e315d28d54a41bcd987d04e6e6453d5b275f)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years agobpo-36856: Handle possible overflow in faulthandler_stack_overflow (GH-13205)
Miss Islington (bot) [Tue, 28 May 2019 00:14:21 +0000 (17:14 -0700)]
bpo-36856: Handle possible overflow in faulthandler_stack_overflow (GH-13205)

(cherry picked from commit 6236c9823ef3e8e2229b0598d3d8189adf5e00f2)

Co-authored-by: Xi Ruoyao <xry111@mengyan1223.wang>
5 years agobpo-37054, _pyio: Fix BytesIO and TextIOWrapper __del__() (GH-13601)
Miss Islington (bot) [Tue, 28 May 2019 00:05:49 +0000 (17:05 -0700)]
bpo-37054, _pyio: Fix BytesIO and TextIOWrapper __del__() (GH-13601)

Fix destructor _pyio.BytesIO and _pyio.TextIOWrapper: initialize
their _buffer attribute as soon as possible (in the class body),
because it's used by __del__() which calls close().
(cherry picked from commit a3568417c49f36860393075b21c93996a5f6799b)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
5 years agobpo-37039: IDLE - zoomheight fixes (GH-13576)
Miss Islington (bot) [Mon, 27 May 2019 23:48:04 +0000 (16:48 -0700)]
bpo-37039: IDLE - zoomheight fixes (GH-13576)

Move doc entry to match menu and refactor zoom function.
A followup patch will include a blurb.
(cherry picked from commit df9b032f47e4edaf306d95449370e565ee470018)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years agobpo-37051: Refine note on what objects are hashable (GH-13587) (GH-13595)
Miss Islington (bot) [Mon, 27 May 2019 17:43:18 +0000 (10:43 -0700)]
bpo-37051: Refine note on what objects are hashable (GH-13587) (GH-13595)

(cherry picked from commit cc1c582f6fe450ce1c7de849137039e9b5fab8eb)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>