]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
5 years agobpo-41113: Fix test_warnings on non-Western locales. (GH-21143)
Miss Islington (bot) [Thu, 25 Jun 2020 12:04:56 +0000 (05:04 -0700)] 
bpo-41113: Fix test_warnings on non-Western locales. (GH-21143)

(cherry picked from commit 0f8ec1fff01173803645ad6a8aea24997bf66fc1)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agobpo-40204: Pin Sphinx version to 2.3.1 in ``Doc/Makefile``. (GH-21141) (GH-21147)
Ned Deily [Thu, 25 Jun 2020 11:44:14 +0000 (07:44 -0400)] 
bpo-40204: Pin Sphinx version to 2.3.1 in ``Doc/Makefile``. (GH-21141) (GH-21147)

5 years agobpo-35773: Fix test_bdb on non-UTF-8 locales. (GH-21136)
Miss Islington (bot) [Thu, 25 Jun 2020 11:37:38 +0000 (04:37 -0700)] 
bpo-35773: Fix test_bdb on non-UTF-8 locales. (GH-21136)

(cherry picked from commit 94eee69e9b3a7e7d33142a47ffea560beb8f1596)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agobpo-39580: add check for CLI installation on macOS (GH-20271)
Miss Islington (bot) [Thu, 25 Jun 2020 10:56:14 +0000 (03:56 -0700)] 
bpo-39580: add check for CLI installation on macOS (GH-20271)

Adds a simple check for whether or not the package is being installed in the GUI or using installer on the command line. This addresses an issue where CLI-based software management tools (such as Munki) unexpectedly open Finder windows into a GUI session during installation runs.
(cherry picked from commit 5f190d2cc60cd82a604cbffb58b6ca8f40350a7a)

Co-authored-by: Rick Heil <rickheil@partnersandsimons.com>
5 years agoForward port macOS installer updates from 3.7 (GH-21132) (GH-21137)
Ned Deily [Thu, 25 Jun 2020 10:15:37 +0000 (06:15 -0400)] 
Forward port macOS installer updates from 3.7 (GH-21132) (GH-21137)

- fix installer builds when using latest versions of Python 3
- fix installer builds on newer macOS releases with SIP
- Python Launcher app factory defaults now use python3
- 3.x installer now updates the Current symlink in framework

5 years agobpo-41074: Fix support of non-ASCII names and SQL in msilib. (GH-21126)
Miss Islington (bot) [Thu, 25 Jun 2020 09:12:41 +0000 (02:12 -0700)] 
bpo-41074: Fix support of non-ASCII names and SQL in msilib. (GH-21126)

* Fix support of non-ASCII names in functions OpenDatabase()
  and init_database().
* Fix support of non-ASCII SQL in method Database.OpenView().
(cherry picked from commit 55939b1708d6fc0d36d2be11ccdc6bf207e1bd41)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agobpo-40773: Fix rendering for 'retval' on the pdb page (GH-21081)
Miss Islington (bot) [Wed, 24 Jun 2020 22:03:11 +0000 (15:03 -0700)] 
bpo-40773: Fix rendering for 'retval' on the pdb page (GH-21081)

Automerge-Triggered-By: @merwok
(cherry picked from commit cf18c9e9d4d44f6671a3fe6011bb53d8ee9bd92b)

Co-authored-by: Arisaka97 <solitaire2312@gmail.com>
5 years agobpo-41094: Additional fix for PYTHONSTARTUP. (GH-21119)
Miss Islington (bot) [Wed, 24 Jun 2020 17:03:51 +0000 (10:03 -0700)] 
bpo-41094: Additional fix for PYTHONSTARTUP. (GH-21119)

(cherry picked from commit a7dc71470156680f1fd5243290c6d377824b7ef4)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agobpo-41094: Fix decoding errors with audit when open files. (GH-21095)
Miss Islington (bot) [Wed, 24 Jun 2020 16:45:38 +0000 (09:45 -0700)] 
bpo-41094: Fix decoding errors with audit when open files. (GH-21095)

(cherry picked from commit 6c6810d98979add7a89391c3c38990d0859f7a29)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agobpo-41038: Fix non-ASCII string corruption in Win32 resource files (GH-20985)
Miss Islington (bot) [Wed, 24 Jun 2020 16:42:55 +0000 (09:42 -0700)] 
bpo-41038: Fix non-ASCII string corruption in Win32 resource files (GH-20985)

In absence of explicit declaration, resource compiler uses system
codepage. When this codepage is DBCS or UTF-8, Python's copyright
string is corrupted, because it contains copyright sign encoded
as \xA9.

The fix is to explicitly declare codepage 1252.
(cherry picked from commit 33b79b11b891adea5a916df8e3779505b37aabe7)

Co-authored-by: Nikita Nemkin <nikita@nemkin.ru>
5 years agobpo-41005: Fixed perrmission error (GH-20936) (GH-21052)
Miss Islington (bot) [Wed, 24 Jun 2020 12:58:27 +0000 (05:58 -0700)] 
bpo-41005: Fixed perrmission error (GH-20936) (GH-21052)

* fixed issue 41005: webbrowser fails when xdg-settings cannot be executed

Co-authored-by: KrishnaSai2020 <krishnasai.chivukula@gmal.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
(cherry picked from commit 9e27bc0c1efc7478872f98729f87886e9333548f)

Co-authored-by: Krishna Chivukula <63070026+KrishnaSai2020@users.noreply.github.com>
Co-authored-by: Krishna Chivukula <63070026+KrishnaSai2020@users.noreply.github.com>
5 years agoFix typo in dataclasses module (GH-21109) (#21111)
Miss Islington (bot) [Wed, 24 Jun 2020 11:14:10 +0000 (04:14 -0700)] 
Fix typo in dataclasses module (GH-21109) (#21111)

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

Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
5 years agobpo-40707: Document that Popen.communicate sets the returncode attribute (GH-20283)
Miss Islington (bot) [Wed, 24 Jun 2020 03:19:35 +0000 (20:19 -0700)] 
bpo-40707: Document that Popen.communicate sets the returncode attribute (GH-20283)

(cherry picked from commit bf2e515fa43406d4bd9c4c53ecc9364034d8f9f6)

Co-authored-by: Gareth Rees <gdr@garethrees.org>
5 years ago[3.8] bpo-31938: Fix default-value signatures of several functions in the select...
Anthony Sottile [Tue, 23 Jun 2020 22:17:02 +0000 (15:17 -0700)] 
[3.8] bpo-31938: Fix default-value signatures of several functions in the select module (GH-21066) (GH-21098)

(cherry picked from commit d051801052211b533c46a593b1c1bccf649a171c)

Automerge-Triggered-By: @vstinner
5 years agobpo-39699: Remove accidentally committed test change (GH-21089)
Ammar Askar [Tue, 23 Jun 2020 18:28:25 +0000 (11:28 -0700)] 
bpo-39699: Remove accidentally committed test change (GH-21089)

5 years agobpo-41085: Fix array.array.index() on 64-bit Windows (GH-21071)
Miss Islington (bot) [Tue, 23 Jun 2020 13:40:47 +0000 (06:40 -0700)] 
bpo-41085: Fix array.array.index() on 64-bit Windows (GH-21071)

Fix integer overflow in the :meth:`array.array.index` method on 64-bit Windows
for index larger than ``2**31``.
(cherry picked from commit 1d3dad5f96ed445b958ec53dfa0d46812f2162d9)

Co-authored-by: WildCard65 <WildCard65@users.noreply.github.com>
5 years agoImprove asyncio.loop.call_soon() documentation (GH-20883)
Miss Islington (bot) [Tue, 23 Jun 2020 02:23:49 +0000 (19:23 -0700)] 
Improve asyncio.loop.call_soon() documentation (GH-20883)

* Add a glossary entry for the term "callback"
* Link to it in loop.call_soon() and in the "Concurrency and Multithreading" section

Co-authored-by: Kyle Stanley <aeros167@gmail.com>
(cherry picked from commit a16d6970496cae5ecab5aaea2b416a4b77527cc2)

Co-authored-by: Roger Iyengar <ri@rogeriyengar.com>
5 years agobpo-41068: Fix read after write in zipfile for non-ASCII files names. (GH-21040)
Miss Islington (bot) [Mon, 22 Jun 2020 08:40:05 +0000 (01:40 -0700)] 
bpo-41068: Fix read after write in zipfile for non-ASCII files names. (GH-21040)

(cherry picked from commit 36ff513f82e372ed3cea0bf7cbdf15a1ef6dab9e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agobpo-40824: Do not mask errors in __iter__ in "in" and the operator module. (GH-20537)
Miss Islington (bot) [Mon, 22 Jun 2020 08:21:04 +0000 (01:21 -0700)] 
bpo-40824: Do not mask errors in __iter__ in "in" and the operator module. (GH-20537)

Unexpected errors in calling the __iter__ method are no longer
masked by TypeError in the "in" operator and functions
operator.contains(), operator.indexOf() and operator.countOf().
(cherry picked from commit cafe1b6e9d3594a34aba50e872d4198296ffaadf)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agobpo-41056: Fix reference to deallocated stack in pathconfig (Coverity) (GH-21013)
Miss Islington (bot) [Mon, 22 Jun 2020 07:43:41 +0000 (00:43 -0700)] 
bpo-41056: Fix reference to deallocated stack in pathconfig (Coverity) (GH-21013)

Reported by Coverity.  (CID 1457554 RETURN_LOCAL)

path0 is assigned as a pointer to this right before it goes out of scope.
(cherry picked from commit 81328f30703bd7225e7e73aedb0994a7293ce190)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
5 years agobpo-41058: Use source file encoding in pdb.find_function(). (GH-21010)
Miss Islington (bot) [Sun, 21 Jun 2020 19:36:23 +0000 (12:36 -0700)] 
bpo-41058: Use source file encoding in pdb.find_function(). (GH-21010)

(cherry picked from commit 19fcffa92773e008e4f5efb80047420a0cfafeec)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agobpo-41056: Fix a NULL pointer dereference on MemoryError within the ssl module. ...
Miss Islington (bot) [Sun, 21 Jun 2020 19:11:29 +0000 (12:11 -0700)] 
bpo-41056: Fix a NULL pointer dereference on MemoryError within the ssl module. (GH-21009)

Detected by Coverity.
(cherry picked from commit eb0d5c38de7f970d8cd8524f4163d831c7720f51)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
5 years agoAdd link to .pypirc specification (GH-20680) (#21019)
Miss Islington (bot) [Sat, 20 Jun 2020 21:12:27 +0000 (14:12 -0700)] 
Add link to .pypirc specification (GH-20680) (#21019)

Related to https://github.com/pypa/twine/issues/638 and https://github.com/pypa/packaging.python.org/issues/730, I wrote a spec based on the one that was removed in https://github.com/python/cpython/pull/13087. However, a Google search for "pypirc" turned up at least one [blog post](https://truveris.github.io/articles/configuring-pypirc/) that links to https://docs.python.org/3/distutils/packageindex.htmlGH-the-pypirc-file, which now just links to this document. So, I thought a link to the spec would be handy.

Automerge-Triggered-By: @jaraco
(cherry picked from commit af157fad286c00ff204e86d8556648cbb53ba99e)

Co-authored-by: Brian Rutledge <brian@bhrutledge.com>
Co-authored-by: Brian Rutledge <brian@bhrutledge.com>
5 years agobpo-41040: Fix test_modulefinder. (GH-20991)
Miss Islington (bot) [Fri, 19 Jun 2020 21:25:25 +0000 (14:25 -0700)] 
bpo-41040: Fix test_modulefinder. (GH-20991)

(cherry picked from commit a041e116db5f1e78222cbf2c22aae96457372680)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 years agobpo-38377: Fix skip_if_broken_multiprocessing_synchronize() on macOS (GH-20984)
Miss Islington (bot) [Fri, 19 Jun 2020 16:19:38 +0000 (09:19 -0700)] 
bpo-38377: Fix skip_if_broken_multiprocessing_synchronize() on macOS (GH-20984)

skip_if_broken_multiprocessing_synchronize() only attempts for create
a semaphore on Linux to fix multiprocessing
test_resource_tracker_reused() on macOS.
(cherry picked from commit 3358da4054b9b0b045eb47dc74dee3d58bfbb1d5)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years agoImprove readability of `formataddr` docstring (GH-20963)
Miss Islington (bot) [Fri, 19 Jun 2020 12:15:57 +0000 (05:15 -0700)] 
Improve readability of `formataddr` docstring (GH-20963)

For me as a non native English speaker, the sentence with its embedded clause was very hard to understand.

modified:   Lib/email/utils.py

Automerge-Triggered-By: @csabella
(cherry picked from commit 66a65ba43cb3e68a43e32469c988dd7a6cff049c)

Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
5 years agobpo-38377: Add support.skip_if_broken_multiprocessing_synchronize() (GH-20944) (GH...
Victor Stinner [Thu, 18 Jun 2020 16:56:43 +0000 (18:56 +0200)] 
bpo-38377: Add support.skip_if_broken_multiprocessing_synchronize() (GH-20944) (GH-20962) (GH-20966)

On Linux, skip tests using multiprocessing if the current user cannot
create a file in /dev/shm/ directory. Add the
skip_if_broken_multiprocessing_synchronize() function to the
test.support module.

(cherry picked from commit ddbeb2f3e02a510c5784ffd74c5e09e8c70b5881)
(cherry picked from commit b1e736113484c99acb57e4acb417b91a9e58e7ff)

5 years agobpo-41003: Fix test_copyreg when numpy is installed (GH-20935) (GH-20945) (GH-20946)
Victor Stinner [Wed, 17 Jun 2020 17:09:49 +0000 (19:09 +0200)] 
bpo-41003: Fix test_copyreg when numpy is installed (GH-20935) (GH-20945) (GH-20946)

Fix test_copyreg when numpy is installed: test.pickletester now
saves/restores warnings.filters when importing numpy, to ignore
filters installed by numpy.

Add the save_restore_warnings_filters() function to the
test.support.warnings_helper module.

(cherry picked from commit 8362893e3fe083df2ec8bb94c28b1a78383eadbf)
(cherry picked from commit b39d41ba1b77f7bc51c4d6f6d0e336693192cb3a)

5 years agobpo-40993: Don't run Travis CI coverage on PRs (GH-20916)
Miss Islington (bot) [Tue, 16 Jun 2020 15:47:16 +0000 (08:47 -0700)] 
bpo-40993: Don't run Travis CI coverage on PRs (GH-20916)

C and Python coverage jobs of Travis CI are no longer run on pull
requests, only on branches like master.
(cherry picked from commit fc710ee266e9461fdba9933ec6004318db588820)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years agobpo-38488: Upgrade bundled versions of pip & setuptools (GH-20491) (GH-20900)
Ned Deily [Mon, 15 Jun 2020 21:42:22 +0000 (17:42 -0400)] 
bpo-38488: Upgrade bundled versions of pip & setuptools (GH-20491) (GH-20900)

Co-authored-by: Xavier Fernandez <xav.fernandez@gmail.com>
5 years agobpo-40448: ensurepip: Do not use cache (GH-19812)
Miss Islington (bot) [Mon, 15 Jun 2020 17:45:21 +0000 (10:45 -0700)] 
bpo-40448: ensurepip: Do not use cache (GH-19812)

ensurepip optionally installs or upgrades 'pip' and 'setuptools' using
the version of those modules bundled with Python.  The internal PIP
installation routine by default temporarily uses its cache, if it
exists.  This is undesirable as Python builds and installations may be
independent of the user running the build, whilst PIP cache location
is dependent on the user's environment and outside of the build
environment.

At the same time, there's no value in using the cache while installing
bundled modules.

This change disables PIP caching when used in ensurepip.
(cherry picked from commit 4a3a682b12f93a03888e8b59f439bc5fe30d6055)

Co-authored-by: Krzysztof Konopko <kkonopko@users.noreply.github.com>
5 years agobpo-34226: fix cgi.parse_multipart without content_length (GH-8530)
Miss Islington (bot) [Mon, 15 Jun 2020 15:51:35 +0000 (08:51 -0700)] 
bpo-34226: fix cgi.parse_multipart without content_length (GH-8530)

In Python 3.7 the behavior of parse_multipart changed requiring CONTENT-LENGTH
header, this fix remove this header as required and fix FieldStorage
read_lines_to_outerboundary, by not using limit when it's negative,
since by default it's -1 if not content-length and keeps substracting what
was read from the file object.

Also added a test case for this problem.
(cherry picked from commit d8cf3514dd4682419a66f6e834bb384ee34afc95)

Co-authored-by: roger <rogerduran@gmail.com>
5 years agobpo-40855: Fix ignored mu and xbar parameters (GH-20835) (GH-20863)
Miss Islington (bot) [Sat, 13 Jun 2020 23:57:17 +0000 (16:57 -0700)] 
bpo-40855: Fix ignored mu and xbar parameters (GH-20835) (GH-20863)

5 years ago[3.8] bpo-37674: Tweak imp module deprecation note in the docs (GH-20480) (GH-20860)
Miss Islington (bot) [Sat, 13 Jun 2020 20:55:56 +0000 (13:55 -0700)] 
[3.8] bpo-37674: Tweak imp module deprecation note in the docs (GH-20480) (GH-20860)

(cherry picked from commit dea3223740127ac13f984c1d38f127ab6701af44)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Automerge-Triggered-By: @brettcannon
5 years agobpo-40957: Fix refleak in _Py_fopen_obj() (GH-20827)
Miss Islington (bot) [Sat, 13 Jun 2020 16:15:05 +0000 (09:15 -0700)] 
bpo-40957: Fix refleak in _Py_fopen_obj() (GH-20827)

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

Co-authored-by: Christian Heimes <christian@python.org>
5 years agobpo-40834: Fix truncate when sending str object with channel (GH-20555)
Miss Islington (bot) [Sat, 13 Jun 2020 12:44:50 +0000 (05:44 -0700)] 
bpo-40834: Fix truncate when sending str object with channel (GH-20555)

(cherry picked from commit 29c117202e386bad1d66ae336e2fefa1a1809ee0)

Co-authored-by: An Long <aisk@users.noreply.github.com>
5 years agobpo-40164: Update Windows OpenSSL to 1.1.1g (GH-20834)
Steve Dower [Fri, 12 Jun 2020 21:14:53 +0000 (22:14 +0100)] 
bpo-40164: Update Windows OpenSSL to 1.1.1g (GH-20834)

Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <thatiparthysreenivas@gmail.com>
5 years agobpo-40964: disable remote IMAP tests (GH-20836)
Christian Heimes [Fri, 12 Jun 2020 18:54:03 +0000 (20:54 +0200)] 
bpo-40964: disable remote IMAP tests (GH-20836)

Remote host cyrus.andrew.cmu.edu is blocking incoming connections and is
causing test suite to fail.

Signed-off-by: Christian Heimes <christian@python.org>
5 years agobpo-40626: Support HDF5 in mimetypes (GH-20042)
Miss Islington (bot) [Thu, 11 Jun 2020 19:32:37 +0000 (12:32 -0700)] 
bpo-40626: Support HDF5 in mimetypes (GH-20042)

Add hdf5 with .h5 file extension

See 'Recommendations' section for mime types from the HDF group:  https://www.hdfgroup.org/2018/06/citations-for-hdf-data-and-software/

Patch by Mark Schwab.
(cherry picked from commit 60c2a810e37994fc640c58d0ef45b6843354b770)

Co-authored-by: MARK SCHWAB <32745414+schwabm@users.noreply.github.com>
5 years agobpo-29620: iterate over a copy of sys.modules (GH-4800) (GH-20816)
Miss Islington (bot) [Thu, 11 Jun 2020 18:31:46 +0000 (11:31 -0700)] 
bpo-29620: iterate over a copy of sys.modules (GH-4800) (GH-20816)

unittest.TestCase.assertWarns no longer raises a RuntimeException
when accessing a module's ``__warningregistry__`` causes importation of a new
module, or when a new module is imported in another thread.
(cherry picked from commit 46398fba4d66ad342cf2504ef947b5fb857423b2)

Co-authored-by: kernc <kerncece@gmail.com>
5 years agobpo-34401: Fix test_gdb for HP GDB version string (GH-20804)
Miss Islington (bot) [Thu, 11 Jun 2020 14:07:39 +0000 (07:07 -0700)] 
bpo-34401: Fix test_gdb for HP GDB version string (GH-20804)

The GDB provided by HPE on HP-UX contains a modified version string. Therefore
the tests fail. Adapt the regex to match that string.

Patch by Michael Osipov.

Co-Authored-by: Michael Osipov <michael.osipov@siemens.com>
(cherry picked from commit b2dca49ca3769cb60713f5c2b43e5d5bbdc1f9c7)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years ago[3.8] bpo-40895: Update weakref documentation to remove old warnings (GH-20687) ...
Antoine Pitrou [Wed, 10 Jun 2020 20:38:42 +0000 (22:38 +0200)] 
[3.8] bpo-40895: Update weakref documentation to remove old warnings (GH-20687) (GH-20792)

The doccumentation at https://docs.python.org/3.10/library/weakref.html cautions that the `WeakKeyDictionary` and `WeakValueDictionary` are susceptible to the problem of dictionary mutation during iteration.

These notes present the user with a problem that has no easy solution.

I dug into the implementation and found that fortunately, Antoine Pitrou already addressed this challenge (10 years ago!) by introducing an `_IterationGuard` context manager to the implementation, which delays mutation while an iteration is in progress.

I asked for confirmation and @pitrou agreed that these notes could be removed:
https://github.com/python/cpython/commit/c1baa601e2b558deb690edfdf334fceee3b03327GH-commitcomment-39514438.
(cherry picked from commit 1642c0ef750f96664a98cadb09301d492098d2fb)

Co-authored-by: Daniel Fortunov <asqui@users.noreply.github.com>
Automerge-Triggered-By: @pitrou
5 years agobpo-40826: Fix test_repl.test_close_stdin() on Windows (GH-20779) (GH-20785) (GH...
Victor Stinner [Wed, 10 Jun 2020 17:45:47 +0000 (19:45 +0200)] 
bpo-40826: Fix test_repl.test_close_stdin() on Windows (GH-20779) (GH-20785) (GH-20787)

test_repl.test_close_stdin() now calls
support.suppress_msvcrt_asserts() to fix the test on Windows.

* Move suppress_msvcrt_asserts() from test.libregrtest.setup to
  test.support. Make its verbose parameter optional: verbose=False by
  default.
* SuppressCrashReport now uses SetErrorMode() of the msvcrt module,
  rather than using ctypes.
* Remove also an unused variable (deadline) in wait_process().

(cherry picked from commit f6e58aefde2e57e4cb11ea7743955da53a3f1e80)
(cherry picked from commit 4a4f660cfde8b683634c53e6214a6baa51de43b1)

5 years ago[3.8] bpo-34003: Re-add versionchanged entry in csv docs (GH-20657) (GH-20771)
Miss Islington (bot) [Wed, 10 Jun 2020 01:26:16 +0000 (18:26 -0700)] 
[3.8] bpo-34003: Re-add versionchanged entry in csv docs (GH-20657) (GH-20771)

Follow-up to GH-8014
(cherry picked from commit 7aed0524d4129766a6032326949ef7f91f6f6dfc)

Co-authored-by: Éric Araujo <merwok@netwok.org>
Automerge-Triggered-By: @merwok
5 years ago[3.8] Revert bpo-39576: Prevent memory error for overly optimistic precisions (GH...
Stefan Krah [Mon, 8 Jun 2020 23:57:11 +0000 (01:57 +0200)] 
[3.8] Revert bpo-39576: Prevent memory error for overly optimistic precisions (GH-20747)

This reverts commit b6271025c640c228505dc9f194362a0c2ab81c61.

5 years ago[3.8] Revert bpo-39576: docs: set context for decimal arbitrary precision arithmetic...
Stefan Krah [Mon, 8 Jun 2020 23:33:08 +0000 (01:33 +0200)] 
[3.8] Revert bpo-39576: docs: set context for decimal arbitrary precision arithmetic (GH-20745)

This reverts commit d6965ff026f35498e554bc964ef2be8f4d80eb7f.

5 years ago[3.8] Revert bpo-39576: Clarify the word size for the 32-bit build. (GH-20743)
Stefan Krah [Mon, 8 Jun 2020 23:20:58 +0000 (01:20 +0200)] 
[3.8] Revert bpo-39576: Clarify the word size for the 32-bit build. (GH-20743)

This reverts commit c6ecd9c14081a787959e13df33e250102a658154.

5 years agobpo-24914: mention Python supports multiple paradigms in the FAQ (GH-20658) (GH-20738)
Miss Islington (bot) [Mon, 8 Jun 2020 18:53:25 +0000 (11:53 -0700)] 
bpo-24914: mention Python supports multiple paradigms in the FAQ (GH-20658) (GH-20738)

(cherry picked from commit 3ab3475c42c8ee5580f4ea1aeda73ebc8e5d5478)

Co-authored-by: Brett Cannon <brett@python.org>
Co-authored-by: Brett Cannon <brett@python.org>
5 years agobpo-40861: Enable optimizations when building liblzma (GH-20724)
Miss Islington (bot) [Mon, 8 Jun 2020 17:07:27 +0000 (10:07 -0700)] 
bpo-40861: Enable optimizations when building liblzma (GH-20724)

(cherry picked from commit 3a3a30c5a4622e18be9f7e4a239dc9e0d7c8054c)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 years agobpo-22021: Update root_dir and base_dir documentation in shutil (GH-10367)
Miss Islington (bot) [Mon, 8 Jun 2020 05:08:51 +0000 (22:08 -0700)] 
bpo-22021: Update root_dir and base_dir documentation in shutil (GH-10367)

Also added an example in shutil in order to make more clear how they are to be used.

Initially reported by Weinan Li on bpo.
(cherry picked from commit 7633371dace67aaa21eb4b86f889441571ec4167)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
5 years agobpo-40741: Update macOS installer to use SQLite 3.32.2. (GH-20705)
Miss Islington (bot) [Mon, 8 Jun 2020 02:43:35 +0000 (19:43 -0700)] 
bpo-40741: Update macOS installer to use SQLite 3.32.2. (GH-20705)

(cherry picked from commit 37eed5a9ee7c802e7151ee9939ed604032886639)

Co-authored-by: Ned Deily <nad@python.org>
5 years agobpo-40870: Invalidate usage of some constants with ast.Name (GH-20649)
Miss Islington (bot) [Sat, 6 Jun 2020 17:04:47 +0000 (10:04 -0700)] 
bpo-40870: Invalidate usage of some constants with ast.Name (GH-20649)

(cherry picked from commit 68874a8502da440a1dc4746cf73262648b870aee)

Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
5 years agobpo-40614: Respect feature version for f-string debug expressions (GH-20196) (GH...
Shantanu [Sat, 6 Jun 2020 10:08:48 +0000 (03:08 -0700)] 
bpo-40614: Respect feature version for f-string debug expressions (GH-20196) (GH-20466)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
(cherry picked from commit c116c94ff119485761460f1033cdee425bed0310)

5 years agobpo-40807: Show warnings once from codeop._maybe_compile (GH-20486)
Miss Islington (bot) [Sat, 6 Jun 2020 08:24:45 +0000 (01:24 -0700)] 
bpo-40807: Show warnings once from codeop._maybe_compile (GH-20486)

* bpo-40807: Show warnings once from codeop._maybe_compile

* Move catch_warnings

* news

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit 052d3fc0907be253cfd64b2c737a0b0aca586011)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
5 years ago[3.8] bpo-40807: Backport test_codeop change [GH-19670]
Terry Jan Reedy [Fri, 5 Jun 2020 02:42:44 +0000 (22:42 -0400)] 
[3.8] bpo-40807: Backport test_codeop change [GH-19670]

A tiny sliver of a 3.9 PEG parser patch needed to backport the test added by #20486.

5 years agoFix spacing in docs for tarfile (GH-20629)
Miss Islington (bot) [Thu, 4 Jun 2020 20:19:47 +0000 (13:19 -0700)] 
Fix spacing in docs for tarfile (GH-20629)

Before
```
content.txt is 42 bytes in size and isa regular file.
folder is 420 bytes in size and isa directory.
magic is 4200 bytes in size and issomething else.
```

After:
```
content.txt is 42 bytes in size and is a regular file.
folder is 420 bytes in size and is a directory.
magic is 4200 bytes in size and is something else.
```

Automerge-Triggered-By: @orsenthil
(cherry picked from commit 7a280197f4162e5fcdde6f34701a9fa6e669190d)

Co-authored-by: Harsha Laxman <HarshaLaxman@users.noreply.github.com>
5 years ago[3.9] bpo-40826: Fix GIL usage in PyOS_Readline() (GH-20613) (GH-20616)
Victor Stinner [Wed, 3 Jun 2020 16:28:18 +0000 (18:28 +0200)] 
[3.9] bpo-40826: Fix GIL usage in PyOS_Readline() (GH-20613) (GH-20616)

* bpo-40826: Fix GIL usage in PyOS_Readline() (GH-20579)

Fix GIL usage in PyOS_Readline(): lock the GIL to set an exception.

Pass tstate to my_fgets() and _PyOS_WindowsConsoleReadline(). Cleanup
these functions.

(cherry picked from commit c353764fd564e401cf47a5d9efab18c72c60014e)

* bpo-40826: Add _PyOS_InterruptOccurred(tstate) function (GH-20599)

my_fgets() now calls _PyOS_InterruptOccurred(tstate) to check for
pending signals, rather calling PyOS_InterruptOccurred().

my_fgets() is called with the GIL released, whereas
PyOS_InterruptOccurred() must be called with the GIL held.

test_repl: use text=True and avoid SuppressCrashReport in
test_multiline_string_parsing().

Fix my_fgets() on Windows: fgets(fp) does crash if fileno(fp) is closed.

(cherry picked from commit fa7ab6aa0f9a4f695e5525db5a113cd21fa93787)

5 years agobpo-40767: Allow pure Wayland to get default XDG web browser (GH-20382)
Miss Islington (bot) [Wed, 3 Jun 2020 13:02:33 +0000 (06:02 -0700)] 
bpo-40767: Allow pure Wayland to get default XDG web browser (GH-20382)

Would be nice to backport to python 3.7+. I don't think it's worth the hassle to backport this all the way down to 3.10. But I'll let the maintainers decide.

This is hard to test because the test setup already includes this [environment variable](https://github.com/python/cpython/blob/master/Lib/test/pythoninfo.pyGH-L292)

Let me know if something doesn't match the PR guidelines. This is my first PR in the python source code.
(cherry picked from commit c822efeda9a0afe87cf3429724732fc8e19a01fb)

Co-authored-by: Jeremy Attali <jeremy.attali@gmail.com>
5 years agoEnsure correct version of Sphinx is used for Windows builds (GH-20582)
Miss Islington (bot) [Mon, 1 Jun 2020 21:25:32 +0000 (14:25 -0700)] 
Ensure correct version of Sphinx is used for Windows builds (GH-20582)

(cherry picked from commit fe5dd78182dbf4937bcc2b113ca7526bfad0192b)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 years agobpo-40831: Remove an incorrect statement in the Windows docs (GH-20570)
Miss Islington (bot) [Mon, 1 Jun 2020 15:53:33 +0000 (08:53 -0700)] 
bpo-40831: Remove an incorrect statement in the Windows docs (GH-20570)

(cherry picked from commit c8966667bbdb284c3780ef6cec8a3870935a6bb7)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years agobpo-30008: Fix OpenSSL no-deprecated compilation (GH-20397)
Miss Islington (bot) [Mon, 1 Jun 2020 07:17:16 +0000 (00:17 -0700)] 
bpo-30008: Fix OpenSSL no-deprecated compilation (GH-20397)

Fix :mod:`ssl`` code to be compatible with OpenSSL 1.1.x builds that use
``no-deprecated`` and ``--api=1.1.0``.

Note: Tests assume full OpenSSL API and fail with limited API.

Signed-off-by: Christian Heimes <christian@python.org>
Co-authored-by: Mark Wright <gienah@gentoo.org>
(cherry picked from commit a871f692b4a2e6c7d45579693e787edc0af1a02c)

Co-authored-by: Christian Heimes <christian@python.org>
5 years agobpo-40798: Generate a different message for already removed elements (GH-20483)
Miss Islington (bot) [Sat, 30 May 2020 07:54:58 +0000 (00:54 -0700)] 
bpo-40798: Generate a different message for already removed elements (GH-20483)

(cherry picked from commit 735d902b363b759df9ff00e58bbf4f7e2bde78cd)

Co-authored-by: Florian Dahlitz <f2dahlitz@freenet.de>
5 years agocloses bpo-29017: Update the bindings for Qt information with PySide2 (GH-20149)
Miss Islington (bot) [Sat, 30 May 2020 02:04:24 +0000 (19:04 -0700)] 
closes bpo-29017: Update the bindings for Qt information with PySide2 (GH-20149)

Reference to PySide has been removed has it is for Qt 4, which has reached end of life.
(cherry picked from commit 4649202ea75d48e1496e99911709824ca2d3170e)

Co-authored-by: Samuel Gaist <samuel.gaist@idiap.ch>
5 years agobpo-39885: Make IDLE context menu cut and copy work again (GH-18951)
Miss Islington (bot) [Fri, 29 May 2020 23:13:00 +0000 (16:13 -0700)] 
bpo-39885: Make IDLE context menu cut and copy work again (GH-18951)

Leave selection when right click within.  This exception to clearing selections when right-clicking was omitted from the previous commit, 4ca060d.  I did not realize that this completely disabled the context menu entries, and  I should have merged a minimal fix immediately.  An automated test should follow.
(cherry picked from commit 97e4e0f53d6690db6b942678489716a30925b8af)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years agobpo-40784: Fix sqlite3 deterministic test (GH-20448)
Miss Islington (bot) [Fri, 29 May 2020 12:46:34 +0000 (05:46 -0700)] 
bpo-40784: Fix sqlite3 deterministic test (GH-20448)

(cherry picked from commit c610d970f5373b143bf5f5900d4645e6a90fb460)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
5 years ago[3.8] bpo-25872: Fix KeyError in linecache when multithreaded (GH-18007) (GH-20092)
Andrew Kuchling [Fri, 29 May 2020 11:59:44 +0000 (07:59 -0400)] 
[3.8] bpo-25872: Fix KeyError in linecache when multithreaded (GH-18007) (GH-20092)

Backporting to 3.8 and adding a NEWS item (I should have added one to the master branch -- oh well).

5 years agobpo-39040: Fix parsing of email mime headers with whitespace between encoded-words...
Miss Islington (bot) [Fri, 29 May 2020 11:43:27 +0000 (04:43 -0700)] 
bpo-39040: Fix parsing of email mime headers with whitespace between encoded-words. (gh-17620)

* bpo-39040: Fix parsing of email headers with encoded-words inside a quoted string.

It is fairly common to find malformed mime headers (especially content-disposition
headers) where the parameter values, instead of being encoded to RFC
standards, are "encoded" by doing RFC 2047 "encoded word" encoding, and
then enclosing the whole thing in quotes.  The processing of these malformed
headers was incorrectly leaving the spaces between encoded words in the decoded
text (whitespace between adjacent encoded words is supposed to be stripped on
decoding).  This changeset fixes the encoded word processing inside quoted strings
(bare-quoted-string) to do correct RFC 2047 decoding by stripping that
whitespace.
(cherry picked from commit 21017ed904f734be9f195ae1274eb81426a9e776)

Co-authored-by: Abhilash Raj <maxking@users.noreply.github.com>
5 years agoNote the output ordering of combinatoric functions (GH-19732) (GH-20502)
Miss Islington (bot) [Thu, 28 May 2020 20:33:57 +0000 (13:33 -0700)] 
Note the output ordering of combinatoric functions (GH-19732) (GH-20502)

5 years agoImprove IO tutorial's "Old string formatting" section (GH-16251)
Miss Islington (bot) [Thu, 28 May 2020 01:41:31 +0000 (18:41 -0700)] 
Improve IO tutorial's "Old string formatting" section (GH-16251)

* Use a more universal explanation of string interpolation rather than specifically referencing sprintf(), which depends on the reader having a C background.

Co-authored-by: Kyle Stanley <aeros167@gmail.com>
(cherry picked from commit eaca2aa117d663acf8160a0b4543ee2c7006fcc7)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
5 years agobpo-40795: ctypes calls unraisablehook with an exception (GH-20452)
Miss Islington (bot) [Wed, 27 May 2020 22:56:36 +0000 (15:56 -0700)] 
bpo-40795: ctypes calls unraisablehook with an exception (GH-20452)

If ctypes fails to convert the result of a callback or if a ctypes
callback function raises an exception, sys.unraisablehook is now
called with an exception set. Previously, the error was logged into
stderr by PyErr_Print().
(cherry picked from commit 10228bad0452d94e66c964b625a0b61befa08e59)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 years agobpo-40025: Require _generate_next_value_ to be defined before members(GH-19763)
Miss Islington (bot) [Wed, 27 May 2020 20:12:08 +0000 (13:12 -0700)] 
bpo-40025: Require _generate_next_value_ to be defined before members(GH-19763)

require `_generate_next_value_` to be defined before members

5 years agobpo-13097: ctypes: limit callback to 1024 arguments (GH-19914)
Miss Islington (bot) [Wed, 27 May 2020 15:53:03 +0000 (08:53 -0700)] 
bpo-13097: ctypes: limit callback to 1024 arguments (GH-19914)

ctypes now raises an ArgumentError when a callback
is invoked with more than 1024 arguments.

The ctypes module allocates arguments on the stack in
ctypes_callproc() using alloca(), which is problematic
when large numbers of arguments are passed. Instead
of a stack overflow, this commit raises an ArgumentError
if more than 1024 parameters are passed.
(cherry picked from commit 29a1384c040d39659e7d01f1fd7b6eb71ef2634e)

Co-authored-by: Sean Gillespie <sean@swgillespie.me>
5 years agobpo-39073: validate Address parts to disallow CRLF (GH-19007)
Miss Islington (bot) [Wed, 27 May 2020 13:37:40 +0000 (06:37 -0700)] 
bpo-39073: validate Address parts to disallow CRLF (GH-19007)

 Disallow CR or LF in email.headerregistry.Address arguments to guard against header injection attacks.
(cherry picked from commit 614f17211c5fc0e5b828be1d3320661d1038fe8f)

Co-authored-by: Ashwin Ramaswami <aramaswamis@gmail.com>
5 years agoClean up compatibility code in importlib fixtures (GH-19156) (#19543)
Miss Islington (bot) [Wed, 27 May 2020 13:05:03 +0000 (06:05 -0700)] 
Clean up compatibility code in importlib fixtures (GH-19156) (#19543)

(cherry picked from commit 574547a75c79b506261520c5773ae08a1dcea1b9)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
5 years agoFix the link to ncurses patch download in macos installer build script (GH-20421)
Miss Islington (bot) [Wed, 27 May 2020 10:28:45 +0000 (03:28 -0700)] 
Fix the link to ncurses patch download in macos installer build script (GH-20421)

Reason: the link `ftp://invisible-island.net/ncurses//5.9/ncurses-5.9-20120616-patch.sh.bz2` is dead, which prevents `Mac/BuildScript/build-installer.py` from completing. Looks like the host of the FTP server was changed to `ftp.invisible-island.net`, thus this proposal.

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
(cherry picked from commit 7da46b676aed7111de34b57c8b942a7f3bb80327)

Co-authored-by: Oleg Höfling <hoefling@users.noreply.github.com>
5 years agobpo-39244: multiprocessing return default start method first on macOS (GH-18625)
Miss Islington (bot) [Tue, 26 May 2020 15:13:59 +0000 (08:13 -0700)] 
bpo-39244: multiprocessing return default start method first on macOS (GH-18625)

(cherry picked from commit db098bc1f05bd0773943e59f83489f05f28dedf8)

Co-authored-by: idomic <michael.ido@gmail.com>
5 years ago[3.8] bpo-38580: Document that select() accepts iterables, not just sequences (GH...
Tal Einat [Tue, 26 May 2020 12:59:32 +0000 (15:59 +0300)] 
[3.8] bpo-38580: Document that select() accepts iterables, not just sequences (GH-16832)

(cherry picked from commit 372ee27d4958302dac7ad6a8711f6fd04771b2e6)

Co-authored-by: Jakub Stasiak <jakub@stasiak.at>
5 years ago[3.8] bpo-35714: Reject null characters in struct format strings (GH-16928) (GH-20419)
Zackery Spytz [Tue, 26 May 2020 08:57:09 +0000 (02:57 -0600)] 
[3.8] bpo-35714: Reject null characters in struct format strings (GH-16928) (GH-20419)

struct.error is now raised if there is a null character in a struct
format string.
(cherry picked from commit 3f59b55316f4c6ab451997902579aa69020b537c)

5 years agobpo-39301: State that floor division is used for right shift operations (GH-20347...
Miss Islington (bot) [Tue, 26 May 2020 08:33:42 +0000 (01:33 -0700)] 
bpo-39301: State that floor division is used for right shift operations (GH-20347) (GH-20415)

* bpo-39301: State that floor division is used for right shift operations

* Remove "without overflow check"
(cherry picked from commit af7553ac95a96713be847dd45bc5a8aeb0a75955)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years agobpo-39830: Add zipfile.Path to __all__ (GH-19115) (GH-19116)
Miss Islington (bot) [Tue, 26 May 2020 06:44:57 +0000 (23:44 -0700)] 
bpo-39830: Add zipfile.Path to __all__ (GH-19115) (GH-19116)

(cherry picked from commit 9a81ab107a54b8ca320fb703f7c68e14ccd9d016)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years agobpo-40745: Fix typos in NewType docs (GH-20379)
Miss Islington (bot) [Tue, 26 May 2020 04:52:55 +0000 (21:52 -0700)] 
bpo-40745: Fix typos in NewType docs (GH-20379)

(cherry picked from commit 2b0e654f91f28379c6c7ef5fd80e8754afb70935)

Co-authored-by: ziheng <zihenglv@gmail.com>
5 years agocloses bpo-40774: Fix docs indentation for asyncio.create_subprocess_shell() (GH...
Miss Islington (bot) [Tue, 26 May 2020 04:15:52 +0000 (21:15 -0700)] 
closes bpo-40774: Fix docs indentation for asyncio.create_subprocess_shell() (GH-20403)

(cherry picked from commit 4a0ac42c52a4d9ccfb0a78ab02aa03172ce0e31a)

Co-authored-by: sth <sth.dev@tejp.de>
5 years agobpo-38972: Fix typos in PowerShell Execution Policies links (GH-20383)
Miss Islington (bot) [Mon, 25 May 2020 15:11:39 +0000 (08:11 -0700)] 
bpo-38972: Fix typos in PowerShell Execution Policies links (GH-20383)

(cherry picked from commit ef16958d17e83723334a51428f410f726d6492a7)

Co-authored-by: Miro Hrončok <miro@hroncok.cz>
5 years agobpo-36290: Fix keytword collision handling in AST node constructors (GH-12382)
Miss Islington (bot) [Sun, 24 May 2020 21:31:47 +0000 (14:31 -0700)] 
bpo-36290: Fix keytword collision handling in AST node constructors (GH-12382)

(cherry picked from commit c73914a562580ae72048876cb42ed8e76e2c83f9)

Co-authored-by: Rémi Lapeyre <remi.lapeyre@lenstra.fr>
5 years ago[3.8] bpo-37309: Update IDLE NEWS.txt for 3.8.4 (GH-20355)
Terry Jan Reedy [Sun, 24 May 2020 13:57:29 +0000 (09:57 -0400)] 
[3.8] bpo-37309: Update IDLE NEWS.txt for 3.8.4 (GH-20355)

5 years agobpo-40723: Make IDLE autocomplete test run without __main__.__file__ (GH-20311)
Miss Islington (bot) [Sun, 24 May 2020 11:08:04 +0000 (04:08 -0700)] 
bpo-40723: Make IDLE autocomplete test run without __main__.__file__ (GH-20311)

This was the only failure running unittest.main(test.test_idle) after imports.
(cherry picked from commit 905b3cd05f8d2c29e1605d109900e3e9d07af4d3)

Co-authored-by: Florian Dahlitz <f2dahlitz@freenet.de>
5 years agobpo-40405: Fix asyncio.as_completed docs (GH-19753)
Miss Islington (bot) [Sat, 23 May 2020 23:24:03 +0000 (16:24 -0700)] 
bpo-40405: Fix asyncio.as_completed docs (GH-19753)

* Fix as_completed docs to correctly state the function return value.
* Also, improves the general wording of the as_completed documentation.

Co-Authored-By: Rémi Lapeyre <remi.lapeyre@henki.fr>
Co-Authored-By: Kyle Stanley <aeros167@gmail.com>
Co-Authored-By: Yury Selivanov <yury@edgedb.com>
(cherry picked from commit 13206b52d16c2489f4c7dd2dce2a7f48a554b5ed)

Co-authored-by: Bar Harel <bzvi7919@gmail.com>
5 years agobpo-40439: Update broken link in lexical analysis docs (GH-20184)
Miss Islington (bot) [Sat, 23 May 2020 01:20:01 +0000 (18:20 -0700)] 
bpo-40439: Update broken link in lexical analysis docs (GH-20184)

Automerge-Triggered-By: @csabella
(cherry picked from commit af23f0d3cf19343512e6ca1fe1d46a5dbe425719)

Co-authored-by: Matteo Bertucci <matteobertucci2004@gmail.com>
5 years ago[3.8] bpo-40663: Correctly handle annotations with subscripts in ast_unparse.c (GH...
Batuhan Taskaya [Fri, 22 May 2020 22:32:40 +0000 (01:32 +0300)] 
[3.8] bpo-40663: Correctly handle annotations with subscripts in ast_unparse.c (GH-20156). (GH-20191)

(cherry picked from commit 2135e10dc717c00d10d899d232bebfc59bb25032)

Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com>
5 years agobpo-40214: Fix ctypes WinDLL test with insecure flags (GH-19652)
Miss Islington (bot) [Fri, 22 May 2020 22:24:45 +0000 (15:24 -0700)] 
bpo-40214: Fix ctypes WinDLL test with insecure flags (GH-19652)

(cherry picked from commit 9b498939009f49b8c772c89e8fc80efbfd8afcb5)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 years agobpo-40327: Improve atomicity, speed, and memory efficiency of the items() loop (GH...
Miss Islington (bot) [Fri, 22 May 2020 22:22:51 +0000 (15:22 -0700)] 
bpo-40327: Improve atomicity, speed, and memory efficiency of the items() loop (GH-19628)

(cherry picked from commit 75bedbe2ed4119ff18a2ea86c544b3cf08a92e75)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
5 years agoReword aware/naive introduction sentence (GH-20175)
Miss Islington (bot) [Fri, 22 May 2020 21:43:51 +0000 (14:43 -0700)] 
Reword aware/naive introduction sentence (GH-20175)

This is more informative and avoids the question of whether the period should go inside or outside the quotation marks.

See also GH-20007.
(cherry picked from commit 2e76820a50b8ce2a9a5f6cdef6cef1859a89c460)

Co-authored-by: Mathieu Dupuy <mathieu.dupuy@doctolib.com>
5 years ago[doc] Remove references to obsolete BuildApplet on macOS. (GH-20023)
Miss Islington (bot) [Thu, 21 May 2020 23:34:46 +0000 (16:34 -0700)] 
[doc] Remove references to obsolete BuildApplet on macOS. (GH-20023)

(cherry picked from commit 7864f11cdf12807555d62c7a132c191eb41ecc02)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
5 years agobpo-40651: Improve LRU recipe in the OrderedDict documentation (GH-GH-20139) (GH...
Miss Islington (bot) [Thu, 21 May 2020 04:21:02 +0000 (21:21 -0700)] 
bpo-40651: Improve LRU recipe in the OrderedDict documentation  (GH-GH-20139) (GH-20167)

5 years agos/wakup/wakeup (GH-20250)
Miss Islington (bot) [Wed, 20 May 2020 17:58:55 +0000 (10:58 -0700)] 
s/wakup/wakeup (GH-20250)

(as title)

Automerge-Triggered-By: @Mariatta
(cherry picked from commit f2947e354c95d246b1836ac78d4c820c420e259b)

Co-authored-by: Kunal Bhalla <bhalla.kunal@gmail.com>
5 years agoUse v2 of GitHub Actions where available (GH-20232)
Miss Islington (bot) [Wed, 20 May 2020 16:59:40 +0000 (09:59 -0700)] 
Use v2 of GitHub Actions where available (GH-20232)

Automerge-Triggered-By: @Mariatta
(cherry picked from commit 7fbe65dbc42985d002d9538fe9a9887e6e6af66c)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
5 years agobpo-39631: Adds NEWS entry (GH-20227)
Miss Islington (bot) [Tue, 19 May 2020 22:19:26 +0000 (15:19 -0700)] 
bpo-39631: Adds NEWS entry (GH-20227)

(cherry picked from commit 92327a9913150f5bb55b2727a2c5d50f9b7b6e55)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 years agobpo-39631: Fix file association MIME type in the Windows installer (GH-20205)
Miss Islington (bot) [Tue, 19 May 2020 12:42:52 +0000 (05:42 -0700)] 
bpo-39631: Fix file association MIME type in the Windows installer (GH-20205)

Use text/x-python instead of text/plain to avoid issues with tools assuming that "ShellExecute(script)" is a non-executable operation.
(cherry picked from commit 8c862e51248c5ebfec787badec88eb58c9267e1e)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years agobpo-40677: Define IO_REPARSE_TAG_APPEXECLINK explicitly (GH-20206)
Miss Islington (bot) [Tue, 19 May 2020 12:39:06 +0000 (05:39 -0700)] 
bpo-40677: Define IO_REPARSE_TAG_APPEXECLINK explicitly (GH-20206)

This allows building with older versions of the Windows SDK where the value is not defined.
(cherry picked from commit 711f9e180a48baba62301735b7f1a58ef0d0e93a)

Co-authored-by: Minmin Gong <gongminmin@msn.com>
5 years agoDoc: Python 3.10 in sidebar and version switcher. (GH-20209)
Miss Islington (bot) [Tue, 19 May 2020 12:34:01 +0000 (05:34 -0700)] 
Doc: Python 3.10 in sidebar and version switcher. (GH-20209)

(cherry picked from commit 19e3e0026417caa92ffe21a67157363b45da9aa2)

Co-authored-by: Julien Palard <julien@palard.fr>