]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
6 years agobpo-38175: Fix a memory leak in comparison of sqlite3.Row objects. (GH-16155)
Miss Islington (bot) [Tue, 17 Sep 2019 06:14:30 +0000 (23:14 -0700)] 
bpo-38175: Fix a memory leak in comparison of sqlite3.Row objects. (GH-16155)

(cherry picked from commit 8debfa50407107ff2329d01081cdc12d359f1d12)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agoDoc: Add list(dict) in stdtypes library (GH-16209) (GH-16211)
Miss Islington (bot) [Tue, 17 Sep 2019 05:04:19 +0000 (22:04 -0700)] 
Doc: Add list(dict) in stdtypes library (GH-16209) (GH-16211)

(cherry picked from commit 63dedef48bba9d54f13b958237696505fa665796)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
6 years agobpo-38183: Test_idle ignores user config directory GH-16198)
Miss Islington (bot) [Tue, 17 Sep 2019 03:33:06 +0000 (20:33 -0700)] 
bpo-38183: Test_idle ignores user config directory GH-16198)

It no longer tries to create or access .idlerc or any files within.
Users must run IDLE to discover problems with saving settings.
(cherry picked from commit 0048afc16a7e7301d5c565237db271505e5fbed9)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-28556: Update the opening note in typing docs (GH-16204)
Miss Islington (bot) [Mon, 16 Sep 2019 22:10:11 +0000 (15:10 -0700)] 
bpo-28556: Update the opening note in typing docs (GH-16204)

This PR replaces the old note mentioning that `typing` is a provisional module with a new one mentioning types are not enforced at runtime. I am not sure if there was any official announcement about making `typing` non-provisional, but _de-facto_ no new features were added during Python 3.7, and no backwards incompatible changes were made except for few small things that were considered bugs.
(cherry picked from commit 81528ba2e81c39f4d6bca5b785e818c7d08b8501)

Co-authored-by: Ivan Levkivskyi <levkivskyi@gmail.com>
6 years ago[3.7] bpo-33936: Don't call obsolete init methods with OpenSSL 1.1.0+ (GH-16140)...
Miss Islington (bot) [Mon, 16 Sep 2019 19:49:07 +0000 (12:49 -0700)] 
[3.7] bpo-33936: Don't call obsolete init methods with OpenSSL 1.1.0+ (GH-16140) (GH-16200)

``OPENSSL_VERSION_1_1`` was never defined in ``_hashopenssl.c``.

https://bugs.python.org/issue33936
(cherry picked from commit 724f1a57231f9287c37255adf0e4364d12cf693d)

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

Automerge-Triggered-By: @tiran
6 years agoDoc: Fix Wikipedia link for functools.lru_cache (GH-16183)
Miss Islington (bot) [Mon, 16 Sep 2019 18:55:43 +0000 (11:55 -0700)] 
Doc: Fix Wikipedia link for functools.lru_cache (GH-16183)

(cherry picked from commit 336b3064d8981bc7f76c5cc6f6a0527df69771d6)

Co-authored-by: amist <amistern0@gmail.com>
6 years ago[3.7] bpo-38100: Fix spelling error in unittest.mock code (GH-16195)
Stéphane Wirtel [Mon, 16 Sep 2019 18:16:34 +0000 (20:16 +0200)] 
[3.7] bpo-38100: Fix spelling error in unittest.mock code (GH-16195)

https://bugs.python.org/issue38100

Automerge-Triggered-By: @matrixise
6 years agoDoc: Add link of GNU Readline library to interpreter tutorial (GH-16152) (GH-16188)
Miss Islington (bot) [Mon, 16 Sep 2019 16:29:50 +0000 (09:29 -0700)] 
Doc: Add link of GNU Readline library to interpreter tutorial (GH-16152) (GH-16188)

(cherry picked from commit f18242be16714da2cfe013dbadfaf2e31d971562)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
6 years agobpo-38117: Update bundled Windows OpenSSL to 1.1.1d (GH-16184)
Steve Dower [Mon, 16 Sep 2019 14:55:07 +0000 (15:55 +0100)] 
bpo-38117: Update bundled Windows OpenSSL to 1.1.1d (GH-16184)

6 years ago[3.7] bpo-33095: Add reference to isolated mode in -m and script option (GH-7764...
Julien Palard [Mon, 16 Sep 2019 12:30:33 +0000 (14:30 +0200)] 
[3.7] bpo-33095: Add reference to isolated mode in -m and script option (GH-7764) (GH-16181)

Attempt to make isolated mode easier to discover via additional inline documentation.

Co-Authored-By: Julien Palard <julien@palard.fr>.
(cherry picked from commit bdd6945d4dbd1fe6a7fcff95f7d6908db7d791a1)

Co-authored-by: Xtreak <tir.karthi@gmail.com>
6 years ago[3.7] bpo-38168: Fix a possbile refleak in setint() of mmapmodule.c (GH-16136) (GH...
Miss Islington (bot) [Mon, 16 Sep 2019 06:27:38 +0000 (23:27 -0700)] 
[3.7] bpo-38168: Fix a possbile refleak in setint() of mmapmodule.c (GH-16136) (GH-16175)

(cherry picked from commit 56a45142e70a1ccf3233d43cb60c47255252e89a)

Co-authored-by: Hai Shi <shihai1992@gmail.com>
Automerge-Triggered-By: @zhangyangyu
6 years agobpo-38117: Updated OpenSSL to 1.1.1d in macOS installer. (GH-16170)
Miss Islington (bot) [Mon, 16 Sep 2019 02:56:04 +0000 (19:56 -0700)] 
bpo-38117: Updated OpenSSL to 1.1.1d in macOS installer. (GH-16170)

(cherry picked from commit 24d1597e430498ebe2d3d18fba2cacb3957b494d)

Co-authored-by: Ned Deily <nad@python.org>
6 years agobpo-38178: Don't explicitly pass "loop" to EchoClientProtocol. (GH-16159)
Miss Islington (bot) [Sun, 15 Sep 2019 17:12:13 +0000 (10:12 -0700)] 
bpo-38178: Don't explicitly pass "loop" to EchoClientProtocol. (GH-16159)

https://bugs.python.org/issue38178
(cherry picked from commit c717c73fa33a2f3591442059eaf6e7a673e2c725)

Co-authored-by: Hrvoje Nikšić <hniksic@gmail.com>
6 years agobpo-37635: Update arg name for seek() in IO tutorial (GH-16147)
Miss Islington (bot) [Sat, 14 Sep 2019 20:47:39 +0000 (13:47 -0700)] 
bpo-37635: Update arg name for seek() in IO tutorial (GH-16147)

Typically, the second positional argument for ``seek()`` is *whence*. That is the POSIX standard name (http://man7.org/linux/man-pages/man3/lseek.3p.html) and the name listed in the documentation for ``io`` module (https://docs.python.org/3/library/io.htmlGH-io.IOBase.seek).

The tutorial for IO is the only location where the second positional argument for ``seek()`` is referred to as *from_what*. I suspect this was created at an early point in Python's history, and was never updated (as this section predates the GitHub repository):

```
$ git grep "from_what"
Doc/tutorial/inputoutput.rst:To change the file object's position, use ``f.seek(offset, from_what)``.  The position is computed
Doc/tutorial/inputoutput.rst:the *from_what* argument.  A *from_what* value of 0 measures from the beginning
Doc/tutorial/inputoutput.rst:the reference point.  *from_what* can be omitted and defaults to 0, using the
```

For consistency, I am suggesting that the tutorial be updated to use the same argument name as the IO documentation and POSIX standard for ``seek()``, particularly since this is the only location where *from_what* is being used.

Note: In the POSIX standard, *whence* is technically the third positional argument, but the first argument *fildes* (file descriptor) is implicit in Python.

https://bugs.python.org/issue37635
(cherry picked from commit ff603f6c3d3dc0e9ea8c1c51ce907c4821f42c54)

Co-authored-by: Kyle Stanley <aeros167@gmail.com>
6 years agoDoc: Fix link to window.getch in curses documentation (GH-16132)
Miss Islington (bot) [Sat, 14 Sep 2019 06:23:20 +0000 (23:23 -0700)] 
Doc: Fix link to window.getch in curses documentation (GH-16132)

(cherry picked from commit a26ace19bddea2d7a999a6de8286b3f27b132f35)

Co-authored-by: Anthony Sottile <asottile@umich.edu>
6 years agoFix typo in test_api.py. (GH-16119)
Miss Islington (bot) [Fri, 13 Sep 2019 17:48:02 +0000 (10:48 -0700)] 
Fix typo in test_api.py. (GH-16119)

(cherry picked from commit 0bc17ea2f5966f429b5b8d6b4ccb9c01f1f610d0)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
6 years agobpo-34706: Preserve subclassing in inspect.Signature.from_callable (GH-16108) (GH...
Miss Islington (bot) [Fri, 13 Sep 2019 17:42:53 +0000 (10:42 -0700)] 
bpo-34706: Preserve subclassing in inspect.Signature.from_callable (GH-16108) (GH-16114)

https://bugs.python.org/issue34706

Specifically in the case of a class that does not override its
constructor signature inherited from object.

These are Buck Evan @bukzor's changes cherrypicked from GH-9344.
(cherry picked from commit 5b9ff7a0dcb16d6f5c3cd4f1f52e0ca6a4bde586)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
6 years agobpo-32790: Add info about alt format using GH- for 'g' in chart (GH-6624)
Miss Islington (bot) [Fri, 13 Sep 2019 17:26:51 +0000 (10:26 -0700)] 
bpo-32790: Add info about alt format using GH- for 'g' in chart (GH-6624)

(cherry picked from commit d44542f9a231bf725ecd82eb640a672c759a8227)

Co-authored-by: bchhabra2490 <bchhabra2490@gmail.com>
6 years agoRun autoreconf. (GH-16106)
Miss Islington (bot) [Fri, 13 Sep 2019 14:51:15 +0000 (07:51 -0700)] 
Run autoreconf. (GH-16106)

(cherry picked from commit f3095b0b58ad9d59cf221bb6498f5aa673c0b25a)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
6 years agocloses bpo-36002: Use AC_PATH_TOOL to find llvm-profdata and llvm-ar. (GH-14998)
Miss Islington (bot) [Fri, 13 Sep 2019 13:55:11 +0000 (06:55 -0700)] 
closes bpo-36002: Use AC_PATH_TOOL to find llvm-profdata and llvm-ar. (GH-14998)

(cherry picked from commit 0519d497b04b252f50dfff9101fb7f4b9e33f1c4)

Co-authored-by: Doyle Rowland <doyle.rowland@reliaqual.com>
6 years ago [3.7] bpo-12144: Handle cookies with expires attribute in CookieJar.make_cookies...
Xtreak [Fri, 13 Sep 2019 12:22:12 +0000 (13:22 +0100)] 
 [3.7] bpo-12144: Handle cookies with expires attribute in CookieJar.make_cookies (GH-13921) (GH-16092)

* [3.7] bpo-12144: Handle cookies with expires attribute in CookieJar.make_cookies (GH-13921)

Handle time comparison for cookies with `expires` attribute when `CookieJar.make_cookies` is called.

Co-authored-by: Demian Brecht <demianbrecht@gmail.com>
https://bugs.python.org/issue12144

Automerge-Triggered-By: @asvetlov
(cherry picked from commit bb41147)

Co-authored-by: Xtreak <tir.karthi@gmail.com>
* Use warnings module instead of test.support.check_no_warnings

* [3.7] bpo-12144: Handle cookies with expires attribute in CookieJar.make_cookies (GH-13921)

Handle time comparison for cookies with `expires` attribute when `CookieJar.make_cookies` is called.

Co-authored-by: Demian Brecht <demianbrecht@gmail.com>
https://bugs.python.org/issue12144

Automerge-Triggered-By: @asvetlov.
(cherry picked from commit bb41147eab15a2958f4ad38261e5bf608f6ace1b)

Co-authored-by: Xtreak <tir.karthi@gmail.com>
6 years agoFix the ImportWarning regarding __spec__ and __package__ being None (GH-16003)
Miss Islington (bot) [Fri, 13 Sep 2019 10:54:34 +0000 (03:54 -0700)] 
Fix the ImportWarning regarding __spec__ and __package__ being None (GH-16003)

(cherry picked from commit 6e1a30b15e73ebc82e6790495fd54cc8971723ec)

Co-authored-by: Xtreak <tir.karthi@gmail.com>
6 years agoRevert "bpo-37785: Fix xgettext warning in argparse (GH-15161)" (GH-16082)
Julien Palard [Fri, 13 Sep 2019 10:20:14 +0000 (12:20 +0200)] 
Revert "bpo-37785: Fix xgettext warning in argparse (GH-15161)" (GH-16082)

This reverts commit b50eff65906f8e9b4597cb0128ea1729341346fc because
it's an incompatible change that would have broken the existing
translations.

6 years agobpo-37785: Fix xgettext warning in argparse (GH-15161)
Miss Islington (bot) [Fri, 13 Sep 2019 09:44:04 +0000 (02:44 -0700)] 
bpo-37785: Fix xgettext warning in argparse (GH-15161)

(cherry picked from commit 42671aea2db6cbc54369617da0fd3545048e0a45)

Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
6 years agoEmphasize the need to always call PySequence_Fast. (GH-11140)
Miss Islington (bot) [Thu, 12 Sep 2019 16:25:55 +0000 (09:25 -0700)] 
Emphasize the need to always call PySequence_Fast. (GH-11140)

(cherry picked from commit 57b7dbc46e71269d855e644d30826d33eedee2a1)

Co-authored-by: Matti Picus <matti.picus@gmail.com>
6 years agocloses bpo-37803: pdb: fix handling of options (--help / --version) (GH-15193)
Miss Islington (bot) [Thu, 12 Sep 2019 16:04:34 +0000 (09:04 -0700)] 
closes bpo-37803: pdb: fix handling of options (--help / --version) (GH-15193)

The "--" should not be included with long options passed to
getopt.getopt.

Fixes https://bugs.python.org/issue37803
(cherry picked from commit 855df7f273c3988c72f01e51ba57091887ec38b2)

Co-authored-by: Daniel Hahler <github@thequod.de>
6 years agobpo-38096: Complete the "structseq" and "named tuple" cleanup (GH-16010) (GH-16063)
Miss Islington (bot) [Thu, 12 Sep 2019 15:20:07 +0000 (08:20 -0700)] 
bpo-38096:  Complete the "structseq" and "named tuple" cleanup (GH-16010) (GH-16063)

(cherry picked from commit 4210ad5ebd5769f585035e022876e161cd0e9a3e)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
6 years agobpo-21872: fix lzma library decompresses data incompletely (GH-14048)
Miss Islington (bot) [Thu, 12 Sep 2019 14:41:30 +0000 (07:41 -0700)] 
bpo-21872: fix lzma library decompresses data incompletely (GH-14048)

* 1. add test case with wrong behavior
* 2. fix bug when max_length == -1
* 3. allow b"" as valid input data for decompress_buf()
* 4. when max_length >= 0, let needs_input mechanism works
* add more asserts to test case
(cherry picked from commit 4ffd05d7ec47cfd0d7fc95dce851633be9663255)

Co-authored-by: animalize <animalize@users.noreply.github.com>
6 years agobpo-26868: Fix example usage of PyModule_AddObject. (GH-15725)
Miss Islington (bot) [Thu, 12 Sep 2019 12:29:09 +0000 (05:29 -0700)] 
bpo-26868: Fix example usage of PyModule_AddObject. (GH-15725)

* Add a note to the PyModule_AddObject docs.

* Correct example usages of PyModule_AddObject.

* Whitespace.

* Clean up wording.

* 📜🤖 Added by blurb_it.

* First code review.

* Add < 0 in the tests with PyModule_AddObject
(cherry picked from commit 224b8aaa7e8f67f748e8b7b6a4a77a25f6554651)

Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
6 years agobpo-35325: Doc: imp.find_module() return value documentation discrepancy (GH-11040)
Miss Islington (bot) [Thu, 12 Sep 2019 12:24:56 +0000 (05:24 -0700)] 
bpo-35325: Doc: imp.find_module() return value documentation discrepancy (GH-11040)

(cherry picked from commit 967b84c913c7b09ae2fc86272cb9373415e2beaf)

Co-authored-by: Windson yang <wiwindson@outlook.com>
6 years agobpo-32008: Prefer client or TLSv1_2 in examples (GH-5797) (GH-16026)
Miss Islington (bot) [Thu, 12 Sep 2019 11:20:41 +0000 (04:20 -0700)] 
bpo-32008: Prefer client or TLSv1_2 in examples (GH-5797) (GH-16026)

Prefer client or TLSv1_2 in examples

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

Co-authored-by: Christian Heimes <christian@python.org>
6 years agocloses bpo-38127: _ctypes: PyObject_IsSubclass() should be checked for failure. ...
Miss Islington (bot) [Thu, 12 Sep 2019 10:30:55 +0000 (03:30 -0700)] 
closes bpo-38127: _ctypes: PyObject_IsSubclass() should be checked for failure. (GH-16011)

An exception may occur during a PyObject_IsSubclass() call.
(cherry picked from commit ea683deccc505a78bbbb1eb8c6a88b0835ad5151)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agoDoc: Update pickle.rst (GH-14128) (GH-16015)
Miss Islington (bot) [Thu, 12 Sep 2019 08:19:33 +0000 (01:19 -0700)] 
Doc: Update pickle.rst (GH-14128) (GH-16015)

* Edits for readability and grammar
(cherry picked from commit 362f5350eb5e2c7bfb0b0a8c306a2e128c3aee93)

Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
6 years agobpo-38096: Clean up the "struct sequence" / "named tuple" docs (GH-15895) (GH-15962)
Paul Ganssle [Thu, 12 Sep 2019 02:50:52 +0000 (03:50 +0100)] 
bpo-38096: Clean up the "struct sequence" / "named tuple" docs (GH-15895) (GH-15962)

6 years agocloses bpo-38124: Fix bounds check in PyState_AddModule. (GH-16007)
Miss Islington (bot) [Thu, 12 Sep 2019 00:02:50 +0000 (17:02 -0700)] 
closes bpo-38124: Fix bounds check in PyState_AddModule. (GH-16007)

The >=, checking whether a module index was in already in the module-by-index list, needed to be strict.

Also, fold nested ifs into one and fix some bad spacing.
(cherry picked from commit 39de95b746c990e6a2fe9af5fad01747f58b2e5f)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
6 years agoDoc: Fix missing negation. (GH-14640) (GH-15985)
Miss Islington (bot) [Wed, 11 Sep 2019 17:53:56 +0000 (10:53 -0700)] 
Doc: Fix missing negation. (GH-14640) (GH-15985)

Reported by Hug Capella on docs@.

Automerge-Triggered-By: @matrixise
(cherry picked from commit 1fae844451b120b93880d9360f288c70e125520c)

Co-authored-by: Julien Palard <julien@palard.fr>
6 years agoImprove clarity of try-return-finally-return (GH-15677) (GH-15982)
Miss Islington (bot) [Wed, 11 Sep 2019 17:42:09 +0000 (10:42 -0700)] 
Improve clarity of try-return-finally-return (GH-15677) (GH-15982)

Clarify execution in try-return-finally-return case.
(cherry picked from commit 0cc27417f2cd399c432d7dda9aeca1d81af76936)

Co-authored-by: toonarmycaptain <toonarmycaptain@hotmail.com>
6 years ago[3.7] bpo-38117: Test with OpenSSL 1.1.1d (GH-15983) (GH-15994)
Stéphane Wirtel [Wed, 11 Sep 2019 17:36:06 +0000 (19:36 +0200)] 
[3.7] bpo-38117: Test with OpenSSL 1.1.1d (GH-15983) (GH-15994)

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

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

Automerge-Triggered-By: @matrixise
6 years agobpo-37698: Update doc of PyBuffer_ToContiguous (GH-14992) (GH-15998)
Miss Islington (bot) [Wed, 11 Sep 2019 17:34:19 +0000 (10:34 -0700)] 
bpo-37698: Update doc of PyBuffer_ToContiguous (GH-14992) (GH-15998)

https://bugs.python.org/issue37698
(cherry picked from commit 15f5a7527b87e11fcf23069c147fd4cb7d42cfb0)

Co-authored-by: Hai Shi <shihai1992@gmail.com>
6 years agoDoc: recursive glob ** follows symlinks to directories (GH-12918)
Miss Islington (bot) [Wed, 11 Sep 2019 17:28:16 +0000 (10:28 -0700)] 
Doc: recursive glob ** follows symlinks to directories (GH-12918)

(cherry picked from commit e24594bfe75aff3e654665cb940ddc4d4acffd2f)

Co-authored-by: Marc <Marc.Herbert+github@gmail.com>
6 years agobpo-37750: Add doc of PyBuffer_FromContiguous (GH-15988) (GH-15991)
Miss Islington (bot) [Wed, 11 Sep 2019 17:10:23 +0000 (10:10 -0700)] 
bpo-37750: Add doc of PyBuffer_FromContiguous (GH-15988) (GH-15991)

https://bugs.python.org/issue37750

Automerge-Triggered-By: @matrixise
(cherry picked from commit 5a56ce4a0e820fefcd598b94715a7ff7e199858d)

Co-authored-by: Hai Shi <shihai1992@gmail.com>
6 years agobpo-37885: venv: Don't produce unbound variable warning on deactivate (GH-15974)
Miss Islington (bot) [Wed, 11 Sep 2019 15:56:27 +0000 (08:56 -0700)] 
bpo-37885: venv: Don't produce unbound variable warning on deactivate (GH-15974)

Before, running deactivate from a bash shell configured to treat undefined variables as errors (`set -u`) would produce a warning:

```
$ python3 -m venv test
$ source test/bin/activate
(test) $ deactivate
-bash: $1: unbound variable
```
(cherry picked from commit 5209e586b7cac9a43b2c44349a26b1b0af06ead3)

Co-authored-by: Daniel Abrahamsson <hamsson@gmail.com>
6 years agobpo-33187: Document ElementInclude (XInclude) support in ElementTree (GH-8861) (GH...
Miss Islington (bot) [Wed, 11 Sep 2019 15:36:41 +0000 (08:36 -0700)] 
bpo-33187: Document ElementInclude (XInclude) support in ElementTree (GH-8861) (GH-15972)

(cherry picked from commit 97b817eae34b77be1ced382e15098a112f547848)

Co-authored-by: Anjali Bansal <anjali.mca17.du@gmail.com>
6 years agobpo-36634: Fixes activate.bat when existing values contain double quotes (GH-15924)
Miss Islington (bot) [Wed, 11 Sep 2019 15:23:07 +0000 (08:23 -0700)] 
bpo-36634: Fixes activate.bat when existing values contain double quotes (GH-15924)

(cherry picked from commit 574b324bdc9a126b5a4488c3613f11ad2555415e)

Co-authored-by: Steve Dower <steve.dower@python.org>
6 years ago[3.7] Turn off AppVeyor CI (GH-15929) (GH-15943)
Zachary Ware [Wed, 11 Sep 2019 14:39:52 +0000 (15:39 +0100)] 
[3.7] Turn off AppVeyor CI (GH-15929) (GH-15943)

(cherry picked from commit 6f55b0394bce8e64a59c61f465fec8079a00e55c)

6 years agobpo-36919: make test_source_encoding.test_issue2301 implementation-independent (GH...
Miss Islington (bot) [Wed, 11 Sep 2019 14:36:36 +0000 (07:36 -0700)] 
bpo-36919: make test_source_encoding.test_issue2301 implementation-independent (GH-13639) (GH-15953)

* bpo-36919: make test_issue2301 implementation-independent
(cherry picked from commit b6643dcfc26859f935e4b3a6a2a203e8ef5320e2)

Co-authored-by: Pavel Koneski <pavel.koneski@gmail.com>
6 years agobpo-33459: Fix "tuple displays" term in Expressions.rst (GH-6760) (GH-15939)
Miss Islington (bot) [Wed, 11 Sep 2019 13:37:49 +0000 (06:37 -0700)] 
bpo-33459: Fix "tuple displays" term in Expressions.rst (GH-6760) (GH-15939)

https://bugs.python.org/issue33459

Automerge-Triggered-By: @matrixise
(cherry picked from commit dc269971091710563a0d730a0d4b084901826c15)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
6 years agobpo-35649: update http client example (GH-11441) (GH-15931)
Miss Islington (bot) [Wed, 11 Sep 2019 13:13:55 +0000 (06:13 -0700)] 
bpo-35649: update http client example (GH-11441) (GH-15931)

(cherry picked from commit 62cf6981425c6a6b136c5e2abef853364f535e9d)

Co-authored-by: Ashwin Ramaswami <aramaswamis@gmail.com>
6 years ago[3.8] bpo-37409: fix relative import with no parent (GH-14956) (GH-15913)
Miss Islington (bot) [Wed, 11 Sep 2019 12:50:14 +0000 (05:50 -0700)] 
[3.8] bpo-37409: fix relative import with no parent (GH-14956) (GH-15913)

Relative imports use resolve_name to get the absolute target name,
which first seeks the current module's absolute package name from the globals:
If __package__ (and __spec__.parent) are missing then
import uses __name__, truncating the last segment if
the module is a submodule rather than a package __init__.py
(which it guesses from whether __path__ is defined).

The __name__ attempt should fail if there is no parent package (top level modules),
if __name__ is '__main__' (-m entry points), or both (scripts).
That is, if both __name__ has no subcomponents and the module does not seem
to be a package __init__ module then import should fail..
(cherry picked from commit 92420b3e679959a7d0ce875875601a4cee45231e)

Co-authored-by: Ben Lewis <benjimin@users.noreply.github.com>
(cherry picked from commit 0a6693a469cfb1dd5c8048d8cb4231a7b5883251)

Co-authored-by: Brett Cannon <54418+brettcannon@users.noreply.github.com>
6 years ago[3.7] bpo-35168: Make shlex.punctuation_chars read-only (GH-11631) (GH-15926)
Vinay Sajip [Wed, 11 Sep 2019 12:39:08 +0000 (13:39 +0100)] 
[3.7] bpo-35168: Make shlex.punctuation_chars read-only (GH-11631) (GH-15926)

(cherry picked from commit 972cf5c06a5ba16ad243a442dbb9c15307fbed95)

Co-authored-by: Alex <a.v.shkop@gmail.com>
6 years agobpo-20504 : in cgi.py, fix bug when a multipart/form-data request has… (GH-10638)
Miss Islington (bot) [Wed, 11 Sep 2019 12:22:38 +0000 (05:22 -0700)] 
bpo-20504 : in cgi.py, fix bug when a multipart/form-data request has… (GH-10638)

* bpo-20504 : in cgi.py, fix bug when a multipart/form-data request has no content-length header

* Add Misc/NEWS.d/next file.

* Add rst formatting for NEWS.d/next file

* Reaplce assert by self.assertEqual
(cherry picked from commit 2d7cacacc310b65b43e7e2de89e7722291dea6a4)

Co-authored-by: Pierre Quentel <pierre.quentel@gmail.com>
6 years agobpo-35066: Make trailing percent test more portable. (GH-15907)
Miss Islington (bot) [Wed, 11 Sep 2019 11:51:01 +0000 (04:51 -0700)] 
bpo-35066: Make trailing percent test more portable. (GH-15907)

Different libc implementations have different behavior when presented with trailing % in strftime strings. To make test_strftime_trailing_percent more portable, compare the output of datetime.strftime directly to that of time.strftime rather than hardcoding.
(cherry picked from commit f2173ae38fa49235c3cdc28ae2ca2e19a375a596)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
6 years agobpo-25810: Clarify eval() docs, it does not keywords (GH-15173)
Miss Islington (bot) [Wed, 11 Sep 2019 10:55:29 +0000 (03:55 -0700)] 
bpo-25810: Clarify eval() docs, it does not keywords (GH-15173)

(cherry picked from commit 7a0023e8d17566eb32c836b65c33663303a2224f)

Co-authored-by: smokephil <smokephil@gmail.com>
6 years agobpo-37585: Add clarification regarding comparing dict.values() (GH-14954)
Miss Islington (bot) [Wed, 11 Sep 2019 10:45:54 +0000 (03:45 -0700)] 
bpo-37585: Add clarification regarding comparing dict.values() (GH-14954)

(cherry picked from commit 6472ece5a0fe82809d3aa0ffb281796fcd252d76)

Co-authored-by: Kyle Stanley <aeros167@gmail.com>
6 years agobpo-16438: Doc: confusing text regarding numeric precedence corrected (GH-10521)
Miss Islington (bot) [Wed, 11 Sep 2019 10:41:28 +0000 (03:41 -0700)] 
bpo-16438: Doc: confusing text regarding numeric precedence corrected (GH-10521)

(cherry picked from commit 4576b5431bd597df7581fe3c852b315e47e4b230)

Co-authored-by: Anjali <anjali30malik@gmail.com>
6 years agobpo-37424: Avoid a hang in subprocess.run timeout output capture (GH-14490)
Miss Islington (bot) [Wed, 11 Sep 2019 10:05:58 +0000 (03:05 -0700)] 
bpo-37424: Avoid a hang in subprocess.run timeout output capture (GH-14490)

Fixes a possible hang when using a timeout on subprocess.run() while
capturing output. If the child process spawned its own children or otherwise
connected its stdout or stderr handles with another process, we could hang
after the timeout was reached and our child was killed when attempting to read
final output from the pipes.
(cherry picked from commit 580d2782f70f8e0bed7ec20abb03d740cb83b5da)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
6 years agobpo-38034: Fix typo in logging.handlers.rst (GH-15708) (GH-15894)
Miss Islington (bot) [Wed, 11 Sep 2019 06:56:50 +0000 (23:56 -0700)] 
bpo-38034: Fix typo in logging.handlers.rst (GH-15708) (GH-15894)

(cherry picked from commit efd5741ae953e50a6654e04cf731da86a1307296)

Co-authored-by: wwuck <301402+wwuck@users.noreply.github.com>
6 years agobpo-37574: Mention helper functions for find_spec documentation (GH-14739)
Miss Islington (bot) [Tue, 10 Sep 2019 17:16:03 +0000 (10:16 -0700)] 
bpo-37574: Mention helper functions for find_spec documentation (GH-14739)

(cherry picked from commit 9cbb97b29eac4b23e916a3233f26b60ac69e335b)

Co-authored-by: jdkandersson <51036209+jdkandersson@users.noreply.github.com>
6 years agobpo-38089: Move Azure Pipelines to latest VM versions and make macOS tests optional...
Steve Dower [Tue, 10 Sep 2019 17:06:38 +0000 (18:06 +0100)] 
bpo-38089: Move Azure Pipelines to latest VM versions and make macOS tests optional (GH-15851)

6 years agoDocs: Small tweaks to c-api/introGH-Include_Files (GH-14698)
Miss Islington (bot) [Tue, 10 Sep 2019 16:40:32 +0000 (09:40 -0700)] 
Docs: Small tweaks to c-api/introGH-Include_Files (GH-14698)

(cherry picked from commit b6dafe51399f5c6313a00529118a6052b466942f)

Co-authored-by: Kyle Stanley <aeros167@gmail.com>
6 years agoCorrect info about "f.read(size)". (GH13852)
Miss Islington (bot) [Tue, 10 Sep 2019 16:02:40 +0000 (09:02 -0700)] 
Correct info about "f.read(size)". (GH13852)

In text mode, the "size" parameter indicates the number of characters, not bytes.
(cherry picked from commit faff81c05f838b0b7a64bbc8c53c02a9b04bb79d)

Co-authored-by: William Andrea <william.j.andrea@gmail.com>
6 years ago[3.7] bpo-37531: Enhance regrtest multiprocess timeout (GH-15345) (GH-15874)
Victor Stinner [Tue, 10 Sep 2019 15:54:40 +0000 (17:54 +0200)] 
[3.7] bpo-37531: Enhance regrtest multiprocess timeout (GH-15345) (GH-15874)

bpo-37531: Enhance regrtest multiprocess timeout (GH-15345)

* Write a message when killing a worker process
* Put a timeout on the second popen.communicate() call
  (after killing the process)
* Put a timeout on popen.wait() call
* Catch popen.kill() and popen.wait() exceptions

(cherry picked from commit de2d9eed8bc628533e1628b843cc4c7a5010f6e5)

6 years agobpo-33602: Doc: Remove set and queue references from Data Types (GH-7055) (GH-15876)
Miss Islington (bot) [Tue, 10 Sep 2019 15:43:11 +0000 (08:43 -0700)] 
bpo-33602: Doc: Remove set and queue references from Data Types (GH-7055) (GH-15876)

(cherry picked from commit 912108891db52c2067889be1f4ce5713839807cd)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
6 years agobpo-37913: document that __length_hint__ can return NotImplemented (GH-15383)
Miss Islington (bot) [Tue, 10 Sep 2019 14:57:16 +0000 (07:57 -0700)] 
bpo-37913: document that __length_hint__ can return NotImplemented (GH-15383)

(cherry picked from commit ed99bb9ca68b37cfaec3629afa67d70289f3ffc7)

Co-authored-by: Steve Dower <steve.dower@python.org>
6 years agoFix subprocess docstring typo (GH-15812)
Miss Islington (bot) [Tue, 10 Sep 2019 14:48:22 +0000 (07:48 -0700)] 
Fix subprocess docstring typo (GH-15812)

(cherry picked from commit 182e1d1f849757439f2031504f142fa4e1251611)

Co-authored-by: Matthias <xmatthias@outlook.com>
6 years agobpo-37913: document that __length_hint__ can return NotImplemented (GH-15383)
Steve Dower [Tue, 10 Sep 2019 14:41:58 +0000 (15:41 +0100)] 
bpo-37913: document that __length_hint__ can return NotImplemented (GH-15383)

6 years agoFix calling order of PyEval_InitThreads. (GH-5833)
Miss Islington (bot) [Tue, 10 Sep 2019 14:37:34 +0000 (07:37 -0700)] 
Fix calling order of PyEval_InitThreads. (GH-5833)

As described in Doc/c-api/init.rst, PyEval_InitThreads() cannot be called
before Py_Initialize() function.
(cherry picked from commit 9e61066355b4b55c873d56f5f106a22463b56862)

Co-authored-by: Kenta Murata <mrkn@users.noreply.github.com>
6 years agobpo-38088: Fixes distutils not finding vcruntime140.dll with only v142 toolset instal...
Steve Dower [Tue, 10 Sep 2019 14:18:02 +0000 (15:18 +0100)] 
bpo-38088: Fixes distutils not finding vcruntime140.dll with only v142 toolset installed (GH-15849)

6 years agobpo-38087: Fix case sensitivity in test_pathlib and test_ntpath (GH-15850)
Steve Dower [Tue, 10 Sep 2019 14:17:42 +0000 (15:17 +0100)] 
bpo-38087: Fix case sensitivity in test_pathlib and test_ntpath (GH-15850)

6 years agocloses bpo-25461: Update os.walk() docstring to match the online docs. (GH-11836)
Miss Islington (bot) [Tue, 10 Sep 2019 13:34:03 +0000 (06:34 -0700)] 
closes bpo-25461: Update os.walk() docstring to match the online docs. (GH-11836)

(cherry picked from commit 734f1202a50641eb2c4bfbcd5b75247c1dc99a8f)

Co-authored-by: Bernt Røskar Brenna <bernt.brenna@gmail.com>
6 years agobpo-21018: added missing documentation about escaping characters for configparser...
Miss Islington (bot) [Tue, 10 Sep 2019 13:32:42 +0000 (06:32 -0700)] 
bpo-21018: added missing documentation about escaping characters for configparser (GH-6137) (GH-15845)

Document how $ and % can be escaped in configparser.
(cherry picked from commit 9a94093189417adddd6b59d6c80cc5544630c8aa)

Co-authored-by: Arun Persaud <arun@nubati.net>
6 years agobpo-34720: Fix test_importlib.test_bad_traverse for AIX (GH-14238)
Michael Felt [Tue, 10 Sep 2019 13:30:18 +0000 (14:30 +0100)] 
bpo-34720: Fix test_importlib.test_bad_traverse for AIX  (GH-14238)

6 years agoFix typo in dict object comment (GH-15814)
Miss Islington (bot) [Tue, 10 Sep 2019 10:15:43 +0000 (03:15 -0700)] 
Fix typo in dict object comment (GH-15814)

(cherry picked from commit 359143c68659d165f52320d368667e0eff279dc5)

Co-authored-by: dalgarno <32097481+dalgarno@users.noreply.github.com>
6 years agobpo-35941: Fix performance regression in SSL certificate code (GH-12610)
Steve Dower [Tue, 10 Sep 2019 08:46:40 +0000 (01:46 -0700)] 
bpo-35941: Fix performance regression in SSL certificate code (GH-12610)

Accumulate certificates in a set instead of doing a costly list contain
operation. A Windows cert store can easily contain over hundred
certificates. The old code would result in way over 5,000 comparison
operations

Signed-off-by: Christian Heimes <christian@python.org>
6 years agobpo-38077: IDLE no longer adds 'argv' to the user namespace (GH-15818)
Miss Islington (bot) [Tue, 10 Sep 2019 03:33:24 +0000 (20:33 -0700)] 
bpo-38077: IDLE no longer adds 'argv' to the user namespace (GH-15818)

This only happened when initializing the subprocess to run a module.
This recent bug only affected 3.7.4 and 3.8.0b2 to 3.8.0b4.
(cherry picked from commit c59295a1ca304f37ca136dd7efca9e560db27d28)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-38006: Avoid closure in weakref.WeakValueDictionary (GH-15641) (GH-15789)
Victor Stinner [Mon, 9 Sep 2019 22:31:20 +0000 (00:31 +0200)] 
bpo-38006: Avoid closure in weakref.WeakValueDictionary (GH-15641) (GH-15789)

weakref.WeakValueDictionary defines a local remove() function used as
callback for weak references. This function was created with a
closure.  Modify the implementation to avoid the closure.

(cherry picked from commit a2af05a0d3f0da06b8d432f52efa3ecf29038532)

6 years ago[3.7] bpo-34293: Fix PDF documentation paper size (GH-8585) (GH-15817)
Zachary Ware [Mon, 9 Sep 2019 22:11:34 +0000 (23:11 +0100)] 
[3.7] bpo-34293: Fix PDF documentation paper size (GH-8585) (GH-15817)

The "A4" pdfs were previously the wrong size due to a change in the options in Sphinx 1.5.

See also sphinx-doc/sphinxGH-5235.
(cherry picked from commit b5381f669718aa19690f42f3b8bd88f03045b9d2)

Authored-by: Jean-François B <jfbu@free.fr>
6 years agobpo-36502: Update link to UAX GH-44, the Unicode doc on the UCD. (GH-15301)
Miss Islington (bot) [Mon, 9 Sep 2019 18:40:03 +0000 (11:40 -0700)] 
bpo-36502: Update link to UAX GH-44, the Unicode doc on the UCD. (GH-15301)

The link we have points to the version from Unicode 6.0.0, dated 2010.
There have been numerous updates to it since then:
  https://www.unicode.org/reports/tr44/GH-Modifications

Change the link to one that points to the current version. Also, use HTTPS.
(cherry picked from commit 64c6ac74e254d31f93fcc74bf02b3daa7d3e3f25)

Co-authored-by: Greg Price <gnprice@gmail.com>
6 years agobpo-37649: Fix exec_prefix check (GH-14897)
Miss Islington (bot) [Mon, 9 Sep 2019 18:12:00 +0000 (11:12 -0700)] 
bpo-37649: Fix exec_prefix check (GH-14897)

(cherry picked from commit 09090d04ef8d2f4c94157b852d3d530a51e13d22)

Co-authored-by: Orivej Desh <orivej@gmx.fr>
6 years agoFix punctuation in `os.execvpe` docstring. (GH-15051)
Miss Islington (bot) [Mon, 9 Sep 2019 17:46:13 +0000 (10:46 -0700)] 
Fix punctuation in `os.execvpe` docstring. (GH-15051)

(cherry picked from commit fb6807b043ab586428225920373e551b0432bc40)

Co-authored-by: Hasan Ramezani <hasan.r67@gmail.com>
6 years agobpo-35803: Document and test dir=PathLike for tempfile (GH-11644)
Miss Islington (bot) [Mon, 9 Sep 2019 17:33:18 +0000 (10:33 -0700)] 
bpo-35803: Document and test dir=PathLike for tempfile (GH-11644)

Co-Authored-By: Ammar Askar <ammar_askar@hotmail.com>
(cherry picked from commit 370138ba9c29595df773cc057d17ea26fb6f21bd)

Co-authored-by: Anthony Sottile <asottile@umich.edu>
6 years agobpo-38059: Using sys.exit() over exit() in inspect.py (GH-15666)
Miss Islington (bot) [Mon, 9 Sep 2019 15:19:13 +0000 (08:19 -0700)] 
bpo-38059: Using sys.exit() over exit() in inspect.py (GH-15666)

Constants added by the site module like exit() "should not be used in programs"
(cherry picked from commit e3c59a75279b0df4e7553d6f0031e202de434e43)

Co-authored-by: Alan Yee <alanyee@users.noreply.github.com>
6 years agobpo-32587: Fixes unsafe downcast in PC/winreg.c (GH-15766)
Miss Islington (bot) [Mon, 9 Sep 2019 14:25:20 +0000 (07:25 -0700)] 
bpo-32587: Fixes unsafe downcast in PC/winreg.c (GH-15766)

(cherry picked from commit ef66f31ce21cd759cc0c618c5c42ba6da0a06834)

Co-authored-by: Steve Dower <steve.dower@python.org>
6 years agobpo-37702: Fix SSL's certificate-store leak on Windows (GH-15632)
Miss Islington (bot) [Mon, 9 Sep 2019 13:40:42 +0000 (06:40 -0700)] 
bpo-37702: Fix SSL's certificate-store leak on Windows (GH-15632)

ssl_collect_certificates function in _ssl.c has a memory leak.
Calling CertOpenStore() and CertAddStoreToCollection(), a store's refcnt gets incremented by 2.
But CertCloseStore() is called only once and the refcnt leaves 1.
(cherry picked from commit ed70129e15ea028469145111044a4349960a4e6f)

Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
6 years ago[3.7] bpo-37589: Add a few missing dependencies on .h files in the Makefile. (GH...
T. Wouters [Mon, 9 Sep 2019 13:38:37 +0000 (06:38 -0700)] 
[3.7] bpo-37589: Add a few missing dependencies on .h files in the Makefile. (GH-15757) (GH-15769)

The missing dependencies prevented incremental builds from working when you touched any
of these files. Based on GH-14758 by @vemakereporter..
(cherry picked from commit b4612f5d54aced5bc37f1b85bf50b4cafa2480f0)

https://bugs.python.org/issue37589

Automerge-Triggered-By: @gpshead
6 years agobpo-37283: Ensure command-line and unattend.xml setting override previously detected...
Miss Islington (bot) [Mon, 9 Sep 2019 13:15:27 +0000 (06:15 -0700)] 
bpo-37283: Ensure command-line and unattend.xml setting override previously detected states in Windows installer (GH-15759)

(cherry picked from commit 3a0ddbcdfcbc0f4372905fabf81e093f1b043e99)

Co-authored-by: Steve Dower <steve.dower@python.org>
6 years agobpo-37936: Avoid ignoring files that we actually do track. (GH-15451) (GH-15748)
Miss Islington (bot) [Mon, 9 Sep 2019 13:10:19 +0000 (06:10 -0700)] 
bpo-37936: Avoid ignoring files that we actually do track. (GH-15451) (GH-15748)

There were about 14 files that are actually in the repo but that are
covered by the rules in .gitignore.

Git itself takes no notice of what .gitignore says about files that
it's already tracking... but the discrepancy can be confusing to a
human that adds a new file unexpectedly covered by these rules, as
well as to non-Git software that looks at .gitignore but doesn't
implement this wrinkle in its semantics.  (E.g., `rg`.)

Several of these are from rules that apply more broadly than
intended: for example, `Makefile` applies to `Doc/Makefile` and
`Tools/freeze/test/Makefile`, whereas `/Makefile` means only the
`Makefile` at the repo's root.

https://bugs.python.org/issue37936
(cherry picked from commit 5e5e9515029f70836003a8cfb30433166fcc8db7)

Authored-by: Greg Price <gnprice@gmail.com>
6 years agobpo-37841: Remove python_uwp dependency on msvcp140.dll (GH-15253)
Miss Islington (bot) [Mon, 9 Sep 2019 11:41:28 +0000 (04:41 -0700)] 
bpo-37841: Remove python_uwp dependency on msvcp140.dll (GH-15253)

(cherry picked from commit b0dace3e979381426385c551b116d0f1434096ee)

Co-authored-by: Steve Dower <steve.dower@python.org>
6 years agobpo-37705: Improve the implementation of winerror_to_errno() (GH-15623)
Miss Islington (bot) [Mon, 9 Sep 2019 10:39:19 +0000 (03:39 -0700)] 
bpo-37705: Improve the implementation of winerror_to_errno() (GH-15623)

winerror_to_errno() is no longer automatically generated.
Do not rely on the old _dosmapperr() function.
Add ERROR_NO_UNICODE_TRANSLATION (1113) -> EILSEQ.
(cherry picked from commit 19052a11314e7be7ba003fd6cdbb5400a5d77d96)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agobpo-32587: Make winreg.REG_MULTI_SZ support zero-length strings (GH-13239)
Miss Islington (bot) [Mon, 9 Sep 2019 10:04:54 +0000 (03:04 -0700)] 
bpo-32587: Make winreg.REG_MULTI_SZ support zero-length strings (GH-13239)

* bpo-32587: Make winreg.REG_MULTI_SZ support PendingFileRenameOperations

* Address review comments.
(cherry picked from commit e223ba13d8d871ee58570dfca4e82a591189cc2f)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agobpo-37445: Include FORMAT_MESSAGE_IGNORE_INSERTS in FormatMessageW() calls (GH-14462)
Miss Islington (bot) [Mon, 9 Sep 2019 09:56:03 +0000 (02:56 -0700)] 
bpo-37445: Include FORMAT_MESSAGE_IGNORE_INSERTS in FormatMessageW() calls (GH-14462)

If FormatMessageW() is passed the FORMAT_MESSAGE_FROM_SYSTEM flag without FORMAT_MESSAGE_IGNORE_INSERTS, it will fail if there are insert sequences in the message definition.
(cherry picked from commit a6563650c835d50f7302971a5b145e94f9d0dc68)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agobpo-34410: Fix a crash in the tee iterator when re-enter it. (GH-15625)
Miss Islington (bot) [Mon, 9 Sep 2019 09:11:22 +0000 (02:11 -0700)] 
bpo-34410: Fix a crash in the tee iterator when re-enter it. (GH-15625)

RuntimeError is now raised in this case.
(cherry picked from commit 526a01467b3277f9fcf7f91e66c23321caa1245d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-36946:Fix possible signed integer overflow when handling slices. (GH-15639)
Miss Islington (bot) [Sun, 8 Sep 2019 10:36:38 +0000 (03:36 -0700)] 
bpo-36946:Fix possible signed integer overflow when handling slices. (GH-15639)

This is a complement to PR 13375.
(cherry picked from commit 3c87a667bb367ace1de6bd1577fdb4f66947da52)

Co-authored-by: HongWeipeng <hongweichen8888@sina.com>
6 years ago[3.8] Correct Roman-numeral example in Unicode HOWTO. (GH-15541). (GH-15728)
Miss Islington (bot) [Sun, 8 Sep 2019 10:28:40 +0000 (03:28 -0700)] 
[3.8] Correct Roman-numeral example in Unicode HOWTO. (GH-15541). (GH-15728)

(cherry picked from commit 32a960f8e1015b64b4b955b3d62920c5903d4c6f)

Co-authored-by: Greg Price <gnprice@gmail.com>
(cherry picked from commit 3be4b107490be27470cb9a101a8dfecf446fd992)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-20806: Reference both times(2) and times(3) and link to MSDN. (GH-15479)
Miss Islington (bot) [Sat, 7 Sep 2019 07:16:27 +0000 (00:16 -0700)] 
bpo-20806: Reference both times(2) and times(3) and link to MSDN. (GH-15479)

(cherry picked from commit 3ccdbc33385a849c60a268def578cb06b8d41be6)

Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
6 years agobpo-38041: Refine IDLE Shell restart lines. (GH-15709)
Miss Islington (bot) [Fri, 6 Sep 2019 18:19:30 +0000 (11:19 -0700)] 
bpo-38041: Refine IDLE Shell restart lines.  (GH-15709)

 Restart lines now always start with '=' and never end with ' ' and fill the width of the window unless that would require ending with ' ', which could be wrapped by itself and possible confusing the user.
(cherry picked from commit 38da805d563422cf1bb9cd9be24c73806840fe30)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-37380: subprocess: don't use _active on win (GH-14360) (GH-15706)
Miss Islington (bot) [Fri, 6 Sep 2019 09:14:24 +0000 (02:14 -0700)] 
bpo-37380: subprocess: don't use _active on win (GH-14360) (GH-15706)

As noted by @eryksun in [1] and [2], using _cleanup and _active(in
__del__) is not necessary on Windows, since:

> Unlike Unix, a process in Windows doesn't have to be waited on by
> its parent to avoid a zombie. Keeping the handle open will actually
> create a zombie until the next _cleanup() call, which may be never
> if Popen() isn't called again.

This patch simply defines `subprocess._active` as `None`, for which we already
have the proper logic in place in `subprocess.Popen.__del__`, that prevents it
from trying to append the process to the `_active`. This patch also defines
`subprocess._cleanup` as a noop for Windows.

[1] https://bugs.python.org/issue37380GH-msg346333
[2] https://bugs.python.org/issue36067GH-msg336262

Signed-off-by: Ruslan Kuprieiev <ruslan@iterative.ai>
(cherry picked from commit 042821ae3cf537e01963c9ec85d1a454d921e826)

Co-authored-by: Ruslan Kuprieiev <kupruser@gmail.com>
6 years agoCorrect minor gramatical mistake in sys.settrace doc (GH-15637)
Miss Islington (bot) [Thu, 5 Sep 2019 11:31:50 +0000 (04:31 -0700)] 
Correct minor gramatical mistake in sys.settrace doc (GH-15637)

(cherry picked from commit 3038e87ba848023470f571242a8bb5a206c24430)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
6 years agobpo-37902: IDLE: Add scrolling for IDLE browsers. (GH-15368)
Miss Islington (bot) [Thu, 5 Sep 2019 01:58:22 +0000 (18:58 -0700)] 
bpo-37902: IDLE: Add scrolling for IDLE browsers. (GH-15368)

Modify the wheel event handler so it can also be used for module, path, and stack browsers.
Patch by George Zhang.
(cherry picked from commit 2cd902585815582eb059e3b40e014ebe4e7fdee7)

Co-authored-by: GeeTransit <geetransit@gmail.com>
6 years ago[3.7] bpo-22347: Update mimetypes.guess_type to allow proper parsing of URLs (GH...
Dong-hee Na [Thu, 5 Sep 2019 01:16:39 +0000 (10:16 +0900)] 
[3.7] bpo-22347: Update mimetypes.guess_type to allow proper parsing of URLs (GH-15522) (GH-15687)

https://bugs.python.org/issue22347
(cherry picked from commit 87bd2071c756188b6cd577889fb1682831142ceb)

https://bugs.python.org/issue22347

Automerge-Triggered-By: @maxking