]> granicus.if.org Git - python/log
python
5 years agoAdd examples to elucidate the formulas (GH-14898) (GH-14899)
Miss Islington (bot) [Sun, 21 Jul 2019 23:39:08 +0000 (16:39 -0700)]
Add examples to elucidate the formulas (GH-14898) (GH-14899)

(cherry picked from commit b530a4460b7a6ea96f1fa81a7c5bb529ead574ef)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
5 years agobpo-37627: Add acknowledgment (GH-14883)
Miss Islington (bot) [Sun, 21 Jul 2019 20:38:09 +0000 (13:38 -0700)]
bpo-37627: Add acknowledgment (GH-14883)

(cherry picked from commit 4214f1ec3b3c73badd639229eff81eb5e57b82ec)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years agobpo-37627: Initialize IDLE Custom Run dialog with previous entries (GH-14870)
Miss Islington (bot) [Sun, 21 Jul 2019 20:25:43 +0000 (13:25 -0700)]
bpo-37627: Initialize IDLE Custom Run dialog with previous entries (GH-14870)

Repeat the command line arguments most recently entered before so the user can edit them.
(cherry picked from commit 35b87e6001bd991f625abe305951c77ddeb9a9c5)

Co-authored-by: Ngalim Siregar <ngalim.siregar@gmail.com>
5 years agoFix typo found by Min ho Kim (GH-14879)
Miss Islington (bot) [Sun, 21 Jul 2019 19:44:28 +0000 (12:44 -0700)]
Fix typo found by Min ho Kim (GH-14879)

(cherry picked from commit 8e3a7380ecb310b50e48f47d1f26190cc9c45eb6)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years agoMinor whitespace, indentation, and quoting changes to improve internal consistency...
Miss Islington (bot) [Sun, 21 Jul 2019 19:38:58 +0000 (12:38 -0700)]
Minor whitespace, indentation, and quoting changes to improve internal consistency and appease linters (GH-14888) (GH-14889)

(cherry picked from commit 1c0e9bb94b8cfb5970532a9f3499563360ea5532)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
5 years agoBpo-37644: update suspicious.csv for distutils/examples (GH-14885)
Miss Islington (bot) [Sun, 21 Jul 2019 18:08:57 +0000 (11:08 -0700)]
Bpo-37644: update suspicious.csv for distutils/examples (GH-14885)

(cherry picked from commit 22f0483d44b13140f6ea9927f0cf088c493e875a)

Co-authored-by: Ned Deily <nad@python.org>
5 years agobpo-36324: Make internal attributes for statistics.NormalDist() private. (GH-14871...
Miss Islington (bot) [Sun, 21 Jul 2019 07:55:13 +0000 (00:55 -0700)]
bpo-36324: Make internal attributes for statistics.NormalDist() private. (GH-14871) (GH-14875)

5 years agoAdjust builtins.zip() docstring to better communicate its signature (GH-14833)
Miss Islington (bot) [Fri, 19 Jul 2019 18:29:58 +0000 (11:29 -0700)]
Adjust builtins.zip() docstring to better communicate its signature (GH-14833)

(cherry picked from commit af2f5b1723b95e45e1f15b5bd52102b7de560f7c)

Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
5 years agobpo-36546: Clean-up comments (GH-14857) (#14859)
Miss Islington (bot) [Fri, 19 Jul 2019 09:17:53 +0000 (02:17 -0700)]
bpo-36546:  Clean-up comments (GH-14857) (#14859)

(cherry picked from commit eed5e9a9562d4dcd137e9f0fc7157bc3373c98cc)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
5 years agobpo-37624: Document weight assumptions for random.choices() (GH-14855) (GH-14858)
Miss Islington (bot) [Fri, 19 Jul 2019 09:17:21 +0000 (02:17 -0700)]
bpo-37624: Document weight assumptions for random.choices() (GH-14855) (GH-14858)

(cherry picked from commit 8dbe563aa6bd18b8c581951537dfb406d36e8063)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
5 years agobpo-37610: improve Using Python doc wrt Editors & IDE (GH-14850)
Miss Islington (bot) [Fri, 19 Jul 2019 01:31:41 +0000 (18:31 -0700)]
bpo-37610: improve Using Python doc wrt Editors & IDE (GH-14850)

Move the Editors and IDE section out of the Unix section, to its own section.

https://bugs.python.org/issue37610
(cherry picked from commit 8f040b7a9f442e7c2605ef1cad9c6b5eb7dd7af7)

Co-authored-by: aldwinaldwin <aldwinaldwin@users.noreply.github.com>
5 years agobpo-33610: IDLE's code-context always shows current context immediately (GH-14821...
Miss Islington (bot) [Thu, 18 Jul 2019 20:47:26 +0000 (13:47 -0700)]
bpo-33610: IDLE's code-context always shows current context immediately (GH-14821) (#14846)

Eliminate delay of up to 100ms and accompanying visual artifact.
Fix bug of never showing context when hide and show.
(cherry picked from commit e0a1f8fb5c60886dbddf1a3ccb5d47576bdd43e2)

Co-authored-by: Tal Einat <taleinat@gmail.com>
5 years agobpo-37552: Skip failing tests in strptime/strftime with UCRT version 17763.615 (GH...
Miss Islington (bot) [Thu, 18 Jul 2019 14:17:58 +0000 (07:17 -0700)]
bpo-37552: Skip failing tests in strptime/strftime with UCRT version 17763.615 (GH-14460)

A bug in MSVC UCRT version 17763.615 (which has been fixed in newer versions) is causing test failures in some strptime/strftime tests when the default code page is c65001. This change selectively skips the tests affected by this.
(cherry picked from commit 9cd39b16e2655f748f7aa8d20bca4812da00ba70)

Co-authored-by: Paul Monson <paulmon@users.noreply.github.com>
5 years agobpo-36390: Gather IDLE Format menu functions into format.py (GH-14827) (GH-14829)
Miss Islington (bot) [Thu, 18 Jul 2019 01:21:08 +0000 (18:21 -0700)]
bpo-36390: Gather IDLE Format menu functions into format.py (GH-14827) (GH-14829)

Add two indent spec methods from editor and Rstrip to existing file.
Tests are not added for indent methods because they need change
in lights of 3.x's prohibition on mixing tabs and spaces.
(cherry picked from commit 1b3892243433da7eae7f5f3a4f98f13d309c8926)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years agoFix IndexError when parsing unexpectedly ending quoted-string. (GH-14813)
Miss Islington (bot) [Wed, 17 Jul 2019 17:29:18 +0000 (10:29 -0700)]
Fix IndexError when parsing unexpectedly ending quoted-string. (GH-14813)

This exception was caused because the input ended unexpectedly with only one
single quote instead of a pair with some value inside it.
(cherry picked from commit 719a062bcb7b08a56e6576dcd75f4244e6053209)

Co-authored-by: Abhilash Raj <maxking@users.noreply.github.com>
5 years agobpo-37461: Fix infinite loop in parsing of specially crafted email headers (GH-14794)
Miss Islington (bot) [Wed, 17 Jul 2019 17:13:54 +0000 (10:13 -0700)]
bpo-37461: Fix infinite loop in parsing of specially crafted email headers (GH-14794)

* bpo-37461: Fix infinite loop in parsing of specially crafted email headers.

Some crafted email header would cause the get_parameter method to run in an
infinite loop causing a DoS attack surface when parsing those headers. This
patch fixes that by making sure the DQUOTE character is handled to prevent
going into an infinite loop.
(cherry picked from commit a4a994bd3e619cbaff97610a1cee8ffa87c672f5)

Co-authored-by: Abhilash Raj <maxking@users.noreply.github.com>
5 years agobpo-36390: IDLE: Combine region formatting methods. (GH-12481) (GH-14811)
Miss Islington (bot) [Wed, 17 Jul 2019 14:45:20 +0000 (07:45 -0700)]
bpo-36390: IDLE: Combine region formatting methods. (GH-12481) (GH-14811)

Rename paragraph.py to format.py and add region formatting methods
from editor.py.  Add tests for the latter.
(cherry picked from commit 82494aa6d947c4a320c09c58fe0f100cdcf7af0b)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
5 years agobpo-37530: simplify, optimize and clean up IDLE code context (GH-14675)
Miss Islington (bot) [Wed, 17 Jul 2019 08:44:55 +0000 (01:44 -0700)]
bpo-37530: simplify, optimize and clean up IDLE code context (GH-14675)

* Only create CodeContext instances for "real" editors windows, but
  not e.g. shell or output windows.
* Remove configuration update Tk event fired every second, by having
  the editor window ask its code context widget to update when
  necessary, i.e. upon font or highlighting updates.
* When code context isn't being shown, avoid having a Tk event fired
  every 100ms to check whether the code context needs to be updated.
* Use the editor window's getlineno() method where applicable.
* Update font of the code context widget before the main text widget
(cherry picked from commit 7036e1de3a87d36c7ef41b8a2b44ed6fc4d34be2)

Co-authored-by: Tal Einat <taleinat@gmail.com>
5 years agoDocs: Correct formatting of a multiline code block (GH-13806)
Miss Islington (bot) [Wed, 17 Jul 2019 08:32:53 +0000 (01:32 -0700)]
Docs: Correct formatting of a multiline code block (GH-13806)

(cherry picked from commit bd26a4466b507e196fc9a5e4a6cb7cd6d39f85aa)

Co-authored-by: Joseph Fox-Rabinovitz <madphysicist@users.noreply.github.com>
5 years agobpo-27452: IDLE: Cleanup config.py code (GH-14577) (GH-14802)
Miss Islington (bot) [Tue, 16 Jul 2019 21:19:10 +0000 (14:19 -0700)]
bpo-27452: IDLE: Cleanup config.py code (GH-14577) (GH-14802)

(cherry picked from commit f8d4cc7dbbf54b9c5435c3080582a4aa421a067d)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
5 years agoFix infinite loop in email folding logic (GH-12732)
Miss Islington (bot) [Tue, 16 Jul 2019 18:08:36 +0000 (11:08 -0700)]
Fix infinite loop in email folding logic (GH-12732)

As far as I can tell, this infinite loop would be triggered if:

1. The value being folded contains a single word (no spaces) longer than
   max_line_length
2. The max_line_length is shorter than the encoding's name + 9
   characters.

bpo-36564: https://bugs.python.org/issue36564
(cherry picked from commit f69d5c61981ea97d251db515c7ff280fcc17182d)

Co-authored-by: Paul Ganssle <pganssle@users.noreply.github.com>
5 years agoReplace backquote with command substitution in subprocess doc example (GH-13941)
Miss Islington (bot) [Tue, 16 Jul 2019 15:05:39 +0000 (08:05 -0700)]
Replace backquote with command substitution in subprocess doc example (GH-13941)

Replace backquotes with POSIXy command substitution in example.
(cherry picked from commit 6a61714cde7037cd9a1bcc11ecccb17fe3081295)

Co-authored-by: David Jones <drj@pobox.com>
5 years agobpo-37284: Add note to sys.implementation doc (GH-14328)
Miss Islington (bot) [Mon, 15 Jul 2019 14:45:12 +0000 (07:45 -0700)]
bpo-37284: Add note to sys.implementation doc (GH-14328)

Add a brief note to indicate that any new required attributes must go through the PEP process.

https://bugs.python.org/issue37284
(cherry picked from commit 52693c10e82622d883433b779a45d0bd792f17ed)

Co-authored-by: Giovanni Cappellotto <gcappellotto@fb.com>
5 years agobpo-37593: Swap the positions of posonlyargs and args in the constructor of ast.param...
Miss Islington (bot) [Sun, 14 Jul 2019 23:49:52 +0000 (16:49 -0700)]
bpo-37593: Swap the positions of posonlyargs and args in the constructor of ast.parameters nodes (GH-14778)

https://bugs.python.org/issue37593
(cherry picked from commit cd6e83b4810549c308ab2d7315dbab526e35ccf6)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years agoClarify that plistlib's load and dump functions take a binary file object (GH-9825)
Miss Islington (bot) [Sun, 14 Jul 2019 09:25:43 +0000 (02:25 -0700)]
Clarify that plistlib's load and dump functions take a binary file object (GH-9825)

The documentation says that the fp parameter to plistlib.load "should be a
readable and binary file object" but the docstring only mentions that it
should be readable. Similarly, plistlib.dump's docstring only mentions
"writable". This commit clarifies that fp should also be binary.

https://docs.python.org/3/library/plistlib.htmlGH-plistlib.load
https://docs.python.org/3/library/plistlib.htmlGH-plistlib.dump
(cherry picked from commit 0d4f4352efecf1b044c88e234e71774fe04b7d6c)

Co-authored-by: Collin Styles <collingstyles@gmail.com>
5 years agobpo-37590: Remove redundant docs of PyEval_EvalFrameEx (GH-14765)
Miss Islington (bot) [Sun, 14 Jul 2019 08:53:18 +0000 (01:53 -0700)]
bpo-37590: Remove redundant docs of PyEval_EvalFrameEx (GH-14765)

(cherry picked from commit 40d2226a69aed6252023d365731bd4ed39dc1a4f)

Co-authored-by: Hai Shi <shihai1992@gmail.com>
5 years agobpo-37571: Remove extra space in ctypes docs (GH14764)
Miss Islington (bot) [Sun, 14 Jul 2019 08:22:57 +0000 (01:22 -0700)]
bpo-37571: Remove extra space in ctypes docs (GH14764)

(cherry picked from commit 68c74d05c1fdaf59d8711431884af975ac2ac5f8)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 years agobpo-37571: Add 'b' to prevent the TypeError exception. (GH-14721)
Miss Islington (bot) [Sun, 14 Jul 2019 08:07:06 +0000 (01:07 -0700)]
bpo-37571: Add 'b' to prevent the TypeError exception. (GH-14721)

Co-Authored-By: Kyle Stanley <aeros167@gmail.com>
(cherry picked from commit 6b929580eb018cfef386db7f7f66b3a58532eada)

Co-authored-by: Michele Angrisano <michele.angrisano@gmail.com>
5 years agobpo-36261: Improve example of the preamble field in email docs (GH-14751)
Miss Islington (bot) [Sun, 14 Jul 2019 07:53:15 +0000 (00:53 -0700)]
bpo-36261: Improve example of the preamble field in email docs (GH-14751)

(cherry picked from commit 8efade91b12a13102a09a3856179021e579da5e9)

Co-authored-by: Carl Bordum Hansen <carl@bordum.dk>
5 years agobpo-26967: fix flag grouping with allow_abbrev=False (GH-14316) (GH-14759)
Miss Islington (bot) [Sun, 14 Jul 2019 05:59:56 +0000 (22:59 -0700)]
bpo-26967: fix flag grouping with allow_abbrev=False (GH-14316) (GH-14759)

The `allow_abbrev` option for ArgumentParser is documented and intended to disable support for unique prefixes of --options, which may sometimes be ambiguous due to deferred parsing.

However, the initial implementation also broke parsing of grouped short flags, such as `-ab` meaning `-a -b` (or `-a=b`).  Checking the argument for a leading `--` before rejecting it fixes this.

This was prompted by pytest-dev/pytestGH-5469, so a backport to at least 3.8 would be great :smile:
And this is my first PR to CPython, so please let me know if I've missed anything!

https://bugs.python.org/issue26967
(cherry picked from commit dffca9e925ee5c3072663cbe8d4d4768406d5307)

Co-authored-by: Zac Hatfield-Dodds <Zac-HD@users.noreply.github.com>
5 years agobpo-30088: Document that existing dir structure isn't verified by mailbox.Maildir...
Miss Islington (bot) [Sat, 13 Jul 2019 14:59:48 +0000 (07:59 -0700)]
bpo-30088: Document that existing dir structure isn't verified by mailbox.Maildir (GH-1163)

Hi,

I've faced an issue w/ `mailbox.Maildir()`. The case is following:
1. I create a folder with `tempfile.TemporaryDirectory()`, so it's empty
2. I pass that folder path as an argument when instantiating `mailbox.Maildir()`
3. Then I receive an exception happening because "there's no such file or directory" (namely `cur`, `tmp` or `new`) during interaction with Maildir

**Expected result:** subdirs are created during `Maildir()` instance creation.

**Actual result:** subdirs are assumed as existing which leads to exceptions during use.

**Workaround:** remove the actual dir before passing the path to `Maildir()`. It will be created automatically with all subdirs needed.

**Fix:** This PR. Basically it adds creation of subdirs regardless of whether the base dir existed before.

https://bugs.python.org/issue30088
(cherry picked from commit e44184749c2fd0921867ea5cd20b8e226c2146c2)

Co-authored-by: Sviatoslav Sydorenko <wk@sydorenko.org.ua>
5 years agobpo-37579: Improve equality behavior for pure Python datetime and time (GH-14726)
Miss Islington (bot) [Sat, 13 Jul 2019 13:59:37 +0000 (06:59 -0700)]
bpo-37579: Improve equality behavior for pure Python datetime and time (GH-14726)

Returns NotImplemented for timedelta and time in __eq__ for different types in Python implementation, which matches the C implementation.

This also adds tests to enforce that these objects will fall back to the right hand side's __eq__ and/or __ne__ implementation.

bpo-37579
(cherry picked from commit e6b46aafad3427463d6264a68824df4797e682f1)

Co-authored-by: Xtreak <tir.karthi@gmail.com>
5 years agobpo-37580: Fix typo in http.cookiejar documentation (GH-14731)
Miss Islington (bot) [Sat, 13 Jul 2019 10:24:48 +0000 (03:24 -0700)]
bpo-37580: Fix typo in http.cookiejar documentation (GH-14731)

[bpo-37580](https://bugs.python.org/issue37580): Markup typo in http.cookiejar doc

https://bugs.python.org/issue37580
(cherry picked from commit b5bbb8a740eaf46c78d122185de8b072e9deea2a)

Co-authored-by: Milan Oberkirch <milan.oberkirch@geops.de>
5 years agoEnable publish of Windows releases through Azure Pipelines (GH-14720)
Miss Islington (bot) [Sat, 13 Jul 2019 10:10:33 +0000 (03:10 -0700)]
Enable publish of Windows releases through Azure Pipelines (GH-14720)

(cherry picked from commit 994a3b88dca852696351358e2743313e546b5ecf)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 years agoFix typo in re.escape documentation (GH-14722)
Miss Islington (bot) [Sat, 13 Jul 2019 08:42:25 +0000 (01:42 -0700)]
Fix typo in re.escape documentation (GH-14722)

(cherry picked from commit fb6c1f8d3b116c7e3e3f814bf750d984a2f2ecbf)

Co-authored-by: Robert DiPietro <rdipietro@gmail.com>
5 years agocloses bpo-37347: Fix refcount problem in sqlite3. (GH-14268)
Miss Islington (bot) [Sat, 13 Jul 2019 03:33:53 +0000 (20:33 -0700)]
closes bpo-37347: Fix refcount problem in sqlite3. (GH-14268)

(cherry picked from commit b9a0376b0dedf16a2f82fa43d851119d1f7a2707)

Co-authored-by: gescheit <gescheit@yandex-team.ru>
5 years ago[3.8] bpo-37521: No longer treat insertion into sys.modules as optional in importlib...
Miss Islington (bot) [Fri, 12 Jul 2019 22:51:48 +0000 (15:51 -0700)]
[3.8] bpo-37521: No longer treat insertion into sys.modules as optional in importlib examples (GH-14723) (GH-14724)

Fix importlib examples to insert any newly created modules via importlib.util.module_from_spec() immediately into sys.modules instead of after calling loader.exec_module().

Thanks to Benjamin Mintz for finding the bug.

https://bugs.python.org/issue37521
(cherry picked from commit 0827064c955f88df8ba5621d8e3d81be3cfc26a9)

Co-authored-by: Brett Cannon <54418+brettcannon@users.noreply.github.com>
https://bugs.python.org/issue37521

5 years agobpo-37558: Shared memory tests are failing due to double slashes (GH-14703)
Miss Islington (bot) [Thu, 11 Jul 2019 18:38:37 +0000 (11:38 -0700)]
bpo-37558: Shared memory tests are failing due to double slashes (GH-14703)

With the addition of shared memory into Python 3.8, we now have three tests failing on Solaris, namely `test_multiprocessing_fork`, `test_multiprocessing_forkserver` and `test_multiprocessing_spawn`. The reason seems to be incorrect name handling which results in two slashes being prepended.

https://bugs.python.org/issue37558
(cherry picked from commit 4737265622251756a9480ab84af2442b6b986850)

Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
5 years agocloses bpo-37554: Remove `q:q` in os.rst documentation (GH-14692)
Miss Islington (bot) [Thu, 11 Jul 2019 17:45:36 +0000 (10:45 -0700)]
closes bpo-37554: Remove `q:q` in os.rst documentation (GH-14692)

https://bugs.python.org/issue37554
(cherry picked from commit 7cbef72902f32866a416ca6c4e732af4541951b8)

Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
5 years agobpo-36390: simplify classifyws(), rename it and add unit tests (GH-14500)
Miss Islington (bot) [Thu, 11 Jul 2019 14:55:05 +0000 (07:55 -0700)]
bpo-36390: simplify classifyws(), rename it and add unit tests (GH-14500)

(cherry picked from commit 9b5ce62cac27fec9dea473865d79c2c654312957)

Co-authored-by: Tal Einat <taleinat@gmail.com>
5 years agobpo-34369: make kqueue.control() docs better reflect that timeout is positional-only...
Miss Islington (bot) [Thu, 11 Jul 2019 14:16:03 +0000 (07:16 -0700)]
bpo-34369: make kqueue.control() docs better reflect that timeout is positional-only (GH-9499)

(cherry picked from commit 79042ac4348ccc09344014f20dd49401579f8795)

Co-authored-by: Tal Einat <taleinat@gmail.com>
5 years agoDocument default parameter of .seek() in the signature. (GH-14691)
Miss Islington (bot) [Thu, 11 Jul 2019 02:49:49 +0000 (19:49 -0700)]
Document default parameter of .seek() in the signature. (GH-14691)

(cherry picked from commit 2a3d4d9c53dd4831c3ecf56bc7c4a289c33030d6)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
5 years agobpo-26806: IDLE should run without docstrings (GH-14657) (GH-14677)
Miss Islington (bot) [Tue, 9 Jul 2019 18:59:19 +0000 (11:59 -0700)]
bpo-26806: IDLE should run without docstrings (GH-14657) (GH-14677)

After fcf1d00, IDLE startup failed with python compiled without docstrings.
(cherry picked from commit 6aeb2fe606408aae14c246470794f1303b3be812)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years agobpo-18374: fix tests to check the correct thing about line numbers (GH-14659) (GH...
Miss Islington (bot) [Tue, 9 Jul 2019 13:28:57 +0000 (06:28 -0700)]
bpo-18374: fix tests to check the correct thing about line numbers (GH-14659) (GH-14672)

(cherry picked from commit 430a9f44fe22f029ae8cfeecb46621d7e199414b)

Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de>
5 years agobpo-37322: ssl test_pha_required_nocert() ignores expected SSLError (GH-14670)
Miss Islington (bot) [Tue, 9 Jul 2019 12:55:08 +0000 (05:55 -0700)]
bpo-37322: ssl test_pha_required_nocert() ignores expected SSLError (GH-14670)

test_ssl.test_pha_required_nocert() now uses
support.catch_threading_exception() to ignore the expected SSLError
in ConnectionHandler of ThreadedEchoServer (it is only raised
sometimes on Windows).
(cherry picked from commit 73ea54620a6f91c3f2e53880373dd47813691a21)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
5 years agobpo-37120: Fix _ssl get_num_tickets() (GH-14668)
Miss Islington (bot) [Tue, 9 Jul 2019 12:42:49 +0000 (05:42 -0700)]
bpo-37120: Fix _ssl get_num_tickets() (GH-14668)

Replace PyLong_FromLong() with PyLong_FromSize_t():
SSL_CTX_get_num_tickets() return type is size_t.

https://bugs.python.org/issue37120
(cherry picked from commit 76611c7c0af6b2f4d0d98a5db827d34cff54ce25)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
5 years agobpo-37526: Add support.catch_threading_exception() (GH-14664) (GH-14666)
Miss Islington (bot) [Tue, 9 Jul 2019 11:35:59 +0000 (04:35 -0700)]
bpo-37526: Add support.catch_threading_exception() (GH-14664) (GH-14666)

Context manager catching threading.Thread exception using
threading.excepthook.
(cherry picked from commit 91b4f7ab7f9a5e0908b91379ee085ae087a76483)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
5 years agobpo-18374: fix wrong col_offset of some ast.BinOp instances (GH-14607)
Miss Islington (bot) [Mon, 8 Jul 2019 21:41:34 +0000 (14:41 -0700)]
bpo-18374: fix wrong col_offset of some ast.BinOp instances (GH-14607)

Nested BinOp instances (e.g. a+b+c) had a wrong col_offset for the
second BinOp (e.g. 2 instead of 0 in the example). Fix it by using the
correct st node to copy the line and col_offset from in ast.c.
(cherry picked from commit 110a47c4f42cf4db88edc1876899fff8f05190fb)

Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de>
5 years agoDoc: Fix example title. (GH-14639)
Miss Islington (bot) [Mon, 8 Jul 2019 21:17:32 +0000 (14:17 -0700)]
Doc: Fix example title. (GH-14639)

(cherry picked from commit 66b4150f6f001640521ae6c9571cd4325cd67394)

Co-authored-by: Julien Palard <julien@palard.fr>
5 years agoDoc: Fix: Proper UpperCamelCase and lowercase. (GH-14644)
Miss Islington (bot) [Mon, 8 Jul 2019 21:13:57 +0000 (14:13 -0700)]
Doc: Fix: Proper UpperCamelCase and lowercase. (GH-14644)

Initial report by Michael Blankenship on docs@
(cherry picked from commit 2da622ff77a763327895656779370b80a833d95c)

Co-authored-by: Julien Palard <julien@palard.fr>
5 years agobpo-37421: test_concurrent_futures stops ForkServer (GH-14643) (GH-14645)
Miss Islington (bot) [Mon, 8 Jul 2019 09:51:49 +0000 (02:51 -0700)]
bpo-37421: test_concurrent_futures stops ForkServer (GH-14643) (GH-14645)

test_concurrent_futures now explicitly stops the ForkServer instance
if it's running.
(cherry picked from commit e676244235895aeb6ec3b81ca3ccf4a70e487919)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
5 years agobpo-37520: Correct behavior for zipfile.Path.parent (GH-14638) (GH-14641)
Miss Islington (bot) [Sun, 7 Jul 2019 22:05:53 +0000 (15:05 -0700)]
bpo-37520: Correct behavior for zipfile.Path.parent (GH-14638) (GH-14641)

* bpo-37520: Correct behavior for zipfile.Path.parent

* 📜🤖 Added by blurb_it.
(cherry picked from commit 38f44b4a4adc37e8f5f8971917d8b3145f351a56)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
5 years agobpo-37513: Change ValueError to TypeError in an example in ctypes doc (GH-14615)
Miss Islington (bot) [Sun, 7 Jul 2019 15:46:46 +0000 (08:46 -0700)]
bpo-37513: Change ValueError to TypeError in an example in ctypes doc (GH-14615)

(cherry picked from commit f6cdd3ff687ebbf8209d793a18a042ea495c4aeb)

Co-authored-by: Hai Shi <shihai1992@gmail.com>
5 years agobpo-37478: Add missing 'and'. (GH-14631)
Miss Islington (bot) [Sun, 7 Jul 2019 02:50:48 +0000 (19:50 -0700)]
bpo-37478: Add missing 'and'. (GH-14631)

(cherry picked from commit a9b40e4546ca631e5ab41376b5b72e8f296f557d)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years agobpo-37478: Specify possible exceptions for os.chdir() (GH-14611) (GH-14629)
Miss Islington (bot) [Sun, 7 Jul 2019 02:18:50 +0000 (19:18 -0700)]
bpo-37478: Specify possible exceptions for os.chdir() (GH-14611) (GH-14629)

(cherry picked from commit 0717b4d9b3899c5c2ca13031e4ff619a15a4d368)

Co-authored-by: Kyle Stanley <aeros167@gmail.com>
5 years agobpo-37456: Slash ('/') is now part of syntax. (GH-14627) (GH-14628)
Miss Islington (bot) [Sat, 6 Jul 2019 22:25:47 +0000 (15:25 -0700)]
bpo-37456: Slash ('/') is now part of syntax. (GH-14627) (GH-14628)

(cherry picked from commit 6f2a8c08573c71b78d2f6e2bfaf31641a0cd092b)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years agobpo-37487: Fix PyList_GetItem index description. (GH-14623) (GH-14624)
Miss Islington (bot) [Sat, 6 Jul 2019 21:54:56 +0000 (14:54 -0700)]
bpo-37487: Fix PyList_GetItem index description. (GH-14623) (GH-14624)

0 is a legal index.
(cherry picked from commit f8709e804d16ec5d44b1d2f00d59a0f78df7b792)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years agobpo-26806: add 30 to the recursion limit in IDLE's shell (GH-13944)
Miss Islington (bot) [Sat, 6 Jul 2019 12:54:17 +0000 (05:54 -0700)]
bpo-26806: add 30 to the recursion limit in IDLE's shell (GH-13944)

This is done to compensate for the extra stack frames added by
IDLE itself, which cause problems when setting the recursion limit
to low values.

This wraps sys.setrecursionlimit() and sys.getrecursionlimit()
as invisibly as possible.
(cherry picked from commit fcf1d003bf4f0100c9d0921ff3d70e1127ca1b71)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
5 years agobpo-37149: Replace dead link for online Tkinter reference (GH-14616)
Miss Islington (bot) [Sat, 6 Jul 2019 06:38:30 +0000 (23:38 -0700)]
bpo-37149: Replace dead link for online Tkinter reference  (GH-14616)

Also fix a name misspelling.
(cherry picked from commit 45bc61b97178b27ae05bd3eb95481bf0325795bb)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 years agocloses bpo-37508: Fix name of type in memory.rst. (GH-14604)
Miss Islington (bot) [Sat, 6 Jul 2019 04:09:57 +0000 (21:09 -0700)]
closes bpo-37508: Fix name of type in memory.rst. (GH-14604)

(cherry picked from commit 39a5d17a7f1387582eb484422df450bc09a5543e)

Co-authored-by: Hai Shi <shihai1992@gmail.com>
5 years agoFix some typos (GH-14435)
Miss Islington (bot) [Fri, 5 Jul 2019 22:00:43 +0000 (15:00 -0700)]
Fix some typos (GH-14435)

(cherry picked from commit f7d72e48fb235684e17668a1e5107e6b0dab7b80)

Co-authored-by: Min ho Kim <minho42@gmail.com>
5 years agobpo-37421: multiprocessing tests now stop ForkServer (GH-14601)
Miss Islington (bot) [Fri, 5 Jul 2019 14:35:38 +0000 (07:35 -0700)]
bpo-37421: multiprocessing tests now stop ForkServer (GH-14601)

multiprocessing tests now stop the ForkServer instance if it's
running: close the "alive" file descriptor to ask the server to stop
and then remove its UNIX address.
(cherry picked from commit 8fbeb14312b4c1320d31ad86e69749515879d1c3)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
5 years agobpo-37481: Deprecate distutils bdist_wininst command (GH-14553)
Miss Islington (bot) [Fri, 5 Jul 2019 09:03:23 +0000 (02:03 -0700)]
bpo-37481: Deprecate distutils bdist_wininst command (GH-14553)

The distutils bdist_wininst command is now deprecated, use
bdist_wheel (wheel packages) instead.
(cherry picked from commit 1da4462765b084dfa8d869b6cb5855e8f6014a11)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
5 years agoUse OSError subclasses in os documentation (GH-14262)
Miss Islington (bot) [Fri, 5 Jul 2019 08:48:21 +0000 (01:48 -0700)]
Use OSError subclasses in os documentation (GH-14262)

(cherry picked from commit a55f75a6e3e9cda5c7c30bd961386b1a8a2e9892)

Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
5 years agoPost v3.8.0b2
Łukasz Langa [Thu, 4 Jul 2019 21:46:35 +0000 (23:46 +0200)]
Post v3.8.0b2

5 years agoMerge tag 'v3.8.0b2' into 3.8
Łukasz Langa [Thu, 4 Jul 2019 21:45:23 +0000 (23:45 +0200)]
Merge tag 'v3.8.0b2' into 3.8

Python 3.8.0b2

5 years agoMinor updates to the macOS installer screens for 3.8.0b2 (GH-14501)
Miss Islington (bot) [Thu, 4 Jul 2019 15:47:25 +0000 (08:47 -0700)]
Minor updates to the macOS installer screens for 3.8.0b2 (GH-14501)

(cherry picked from commit fc1fbe6099e826e8304eadf781af7c10d739fc40)

Co-authored-by: Ned Deily <nad@python.org>
5 years agobpo-37421: Fix multiprocessing get_temp_dir() finalizer (GH-14572)
Miss Islington (bot) [Thu, 4 Jul 2019 11:34:31 +0000 (04:34 -0700)]
bpo-37421: Fix multiprocessing get_temp_dir() finalizer (GH-14572)

Fix multiprocessing.util.get_temp_dir() finalizer: clear also the
'tempdir' configuration of the current process, so next call to
get_temp_dir() will create a new temporary directory, rather than
reusing the removed temporary directory.
(cherry picked from commit 9d40554e0da09a44a8547f3f3a2b9dedfeaf7928)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
5 years agoPython 3.8.0b2 v3.8.0b2
Łukasz Langa [Thu, 4 Jul 2019 10:50:19 +0000 (12:50 +0200)]
Python 3.8.0b2

5 years agobpo-37459: importlib docs improperly reference get_resource_loader() (GH-14568) ...
Miss Islington (bot) [Thu, 4 Jul 2019 01:27:40 +0000 (18:27 -0700)]
bpo-37459: importlib docs improperly reference get_resource_loader() (GH-14568) (GH-14580)

* bpo-37459: importlib docs improperly reference get_resource_loader()
(cherry picked from commit b607d992e76e485f20be3bfd6b311525123f936b)

Co-authored-by: aldwinaldwin <aldwinaldwin@users.noreply.github.com>
5 years agobpo-37233: optimize method_vectorcall in case of totalargs == 0 (GH-14550)
Miss Islington (bot) [Wed, 3 Jul 2019 13:06:38 +0000 (06:06 -0700)]
bpo-37233: optimize method_vectorcall in case of totalargs == 0 (GH-14550)

(cherry picked from commit 53c214344038341ce86fcf7efa12dc33be9d5b45)

Co-authored-by: Jeroen Demeyer <J.Demeyer@UGent.be>
5 years ago[3.8] bpo-37233: use _PY_FASTCALL_SMALL_STACK in method_vectorcall (GH-13974)
Inada Naoki [Wed, 3 Jul 2019 12:46:07 +0000 (21:46 +0900)]
[3.8] bpo-37233: use _PY_FASTCALL_SMALL_STACK in method_vectorcall (GH-13974)

(cherry picked from commit 988e6aa322fb61651812fa5a61ec73316c71b041)

Co-authored-by: Jeroen Demeyer <J.Demeyer@UGent.be>
5 years agobpo-37421: Fix test_distutils.test_build_ext() (GH-14564)
Miss Islington (bot) [Wed, 3 Jul 2019 09:48:14 +0000 (02:48 -0700)]
bpo-37421: Fix test_distutils.test_build_ext() (GH-14564)

test_distutils.test_build_ext() is now able to remove the temporary
directory on Windows: don't import the newly built C extension ("xx")
in the current process, but test it in a separated process.
(cherry picked from commit 74c9dd57771f4f061ee83b069c8e7b37de41246b)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
5 years agobpo-37421: test_concurrent_futures cleans up multiprocessing (GH-14563)
Miss Islington (bot) [Wed, 3 Jul 2019 09:36:13 +0000 (02:36 -0700)]
bpo-37421: test_concurrent_futures cleans up multiprocessing (GH-14563)

test_concurrent_futures now cleans up multiprocessing to remove
immediately temporary directories created by
multiprocessing.util.get_temp_dir().

The test now uses setUpModule() and tearDownModule().
(cherry picked from commit 684cb47fffb7af3ac50cb077f6d2a095c9ce20b4)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
5 years agobpo-37421: test_winconsoleio doesn't leak temp file anymore (GH-14562)
Miss Islington (bot) [Wed, 3 Jul 2019 09:31:39 +0000 (02:31 -0700)]
bpo-37421: test_winconsoleio doesn't leak temp file anymore (GH-14562)

test_winconsoleio doesn't leak a temporary file anymore: use
tempfile.TemporaryFile() to remove it when the test completes.
(cherry picked from commit b71d8d67959f3b5efbdfe00066589ac0d8f98aad)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
5 years agobpo-37441: Fix wrong PyErr_SetImportErrorSubclass signature in doc (GH-14453)
Miss Islington (bot) [Wed, 3 Jul 2019 02:04:29 +0000 (19:04 -0700)]
bpo-37441: Fix wrong PyErr_SetImportErrorSubclass signature in doc (GH-14453)

(cherry picked from commit aeecf380660ea459d85bb5f59d76bb54f757b5be)

Co-authored-by: Hai Shi <shihai1992@gmail.com>
5 years agobpo-37463: match_hostname requires quad-dotted IPv4 (GH-14499)
Miss Islington (bot) [Tue, 2 Jul 2019 21:06:18 +0000 (14:06 -0700)]
bpo-37463: match_hostname requires quad-dotted IPv4 (GH-14499)

ssl.match_hostname() no longer accepts IPv4 addresses with additional text
after the address and only quad-dotted notation without trailing
whitespaces. Some inet_aton() implementations ignore whitespace and all data
after whitespace, e.g. '127.0.0.1 whatever'.

Short notations like '127.1' for '127.0.0.1' were already filtered out.

The bug was initially found by Dominik Czarnota and reported by Paul Kehrer.

Signed-off-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue37463
(cherry picked from commit 477b1b25768945621d466a8b3f0739297a842439)

Co-authored-by: Christian Heimes <christian@python.org>
5 years agobpo-37421: multiprocessing tests call _run_finalizers() (GH-14527)
Miss Islington (bot) [Tue, 2 Jul 2019 11:58:05 +0000 (04:58 -0700)]
bpo-37421: multiprocessing tests call _run_finalizers() (GH-14527)

multiprocessing tests now call explicitly _run_finalizers() to remove
immediately temporary directories created by
multiprocessing.util.get_temp_dir().
(cherry picked from commit 039fb49c185570ab7b02f13fbdc51c859cfd831e)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
5 years agoStop using Argument Clinic for dict_pop (GH-13935)
Inada Naoki [Tue, 2 Jul 2019 11:32:43 +0000 (20:32 +0900)]
Stop using Argument Clinic for dict_pop (GH-13935)

5 years agobpo-37335, test_c_locale_coercion: Remove unnecessary code (GH-14447)
Miss Islington (bot) [Tue, 2 Jul 2019 11:18:40 +0000 (04:18 -0700)]
bpo-37335, test_c_locale_coercion: Remove unnecessary code (GH-14447)

Python initialization now ensures that sys stream encoding
names are always normalized by codecs.lookup(encoding).name.
Simplify test_c_locale_coercion: it doesn't have to normalize
encoding names anymore.
(cherry picked from commit 61bf97e91620e020939d57a36918ab22579920ff)

Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
5 years agobpo-34602: Avoid failures setting macOS stack resource limit (GH-14546)
Miss Islington (bot) [Tue, 2 Jul 2019 07:31:07 +0000 (00:31 -0700)]
bpo-34602: Avoid failures setting macOS stack resource limit (GH-14546)

Under some conditions the earlier fix for bpo-18075, "Infinite recursion
tests triggering a segfault on Mac OS X", now causes failures on macOS
when attempting to change stack limit with resource.setrlimit
resource.RLIMIT_STACK, like regrtest does when running the test suite.
The reverted change had specified a non-default stack size when linking
the python executable on macOS.  As of macOS 10.14.4, the previous
code causes a hard failure when running tests, although similar
failures had been seen under some conditions under some earlier
systems.  Reverting the change to the interpreter stack size at link
time helped for release builds but caused some tests to fail when
built --with-pydebug.  Try the opposite approach: continue to build
the interpreter with an increased stack size on macOS and remove
the failing setrlimit call in regrtest initialization.  This will
definitely avoid the resource.RLIMIT_STACK error and should have
no, or fewer, side effects.
(cherry picked from commit 5bbbc733e6cc0804f19b071944af8d4719e26ae6)

Co-authored-by: Ned Deily <nad@python.org>
5 years agoPut pyexpatns.h include back. bpo-37437 (GH-14539)
Miss Islington (bot) [Tue, 2 Jul 2019 05:26:40 +0000 (22:26 -0700)]
Put pyexpatns.h include back. bpo-37437 (GH-14539)

(cherry picked from commit 2cd07920bb7d2d319999394092190f37935dc421)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
5 years agobpo-37363: Add audit events on startup for the run commands (GH-14524)
Miss Islington (bot) [Mon, 1 Jul 2019 23:22:29 +0000 (16:22 -0700)]
bpo-37363: Add audit events on startup for the run commands (GH-14524)

(cherry picked from commit e226e83d36dfc7220d836fb7a249ce18e70cb4a6)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 years agobpo-37470: Document more clearly the error handling for QueueHandler.emit(). (GH...
Miss Islington (bot) [Mon, 1 Jul 2019 19:53:39 +0000 (12:53 -0700)]
bpo-37470: Document more clearly the error handling for QueueHandler.emit(). (GH-14532) (GH-14533)

(cherry picked from commit 0f4e8132820947d93eccf31b9e526b81c6ffa53d)

5 years agobpo-37469: Document usability of SimpleQueue with QueueHandler and QueueListener...
Miss Islington (bot) [Mon, 1 Jul 2019 18:53:28 +0000 (11:53 -0700)]
bpo-37469: Document usability of SimpleQueue with QueueHandler and QueueListener. (GH-14521) (GH-14525)

(cherry picked from commit e6b64b756f940147728ea7808fb686ffcae89176)

5 years agobpo-36763: Use PyConfig_Clear() (GH-14445)
Miss Islington (bot) [Mon, 1 Jul 2019 18:28:55 +0000 (11:28 -0700)]
bpo-36763: Use PyConfig_Clear() (GH-14445)

Stop using "static PyConfig", PyConfig must now always use
dynamically allocated strings: use PyConfig_SetString(),
PyConfig_SetArgv() and PyConfig_Clear().
(cherry picked from commit 67310023f299b5a2fad71fca449b46d280036690)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
5 years agobpo-36763: Add PyConfig_SetWideStringList() (GH-14444)
Miss Islington (bot) [Mon, 1 Jul 2019 17:39:58 +0000 (10:39 -0700)]
bpo-36763: Add PyConfig_SetWideStringList() (GH-14444)

(cherry picked from commit 36242fd871d0f0977e720d4fae5700774bd8c09a)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
5 years agoRemove unused imports in tests (GH-14518) (GH-14520)
Victor Stinner [Mon, 1 Jul 2019 17:01:52 +0000 (19:01 +0200)]
Remove unused imports in tests (GH-14518) (GH-14520)

(cherry picked from commit 8f4ef3b019ce380022018587571b0f970e668de3)

5 years agobpo-36168: Lowercase the word "subsequent" in get_value doc (GH-14485)
Miss Islington (bot) [Mon, 1 Jul 2019 16:30:48 +0000 (09:30 -0700)]
bpo-36168: Lowercase the word "subsequent" in get_value doc (GH-14485)

Subsequent -> subsequent

https://bugs.python.org/issue36168
(cherry picked from commit 12b436e3b079fb3e3a7197c089df90a77e3bdd77)

Co-authored-by: Krishna Oza <krishoza15sep@gmail.com>
5 years agobpo-37467: Fix PyErr_Display() for bytes filename (GH-14504)
Miss Islington (bot) [Mon, 1 Jul 2019 15:11:15 +0000 (08:11 -0700)]
bpo-37467: Fix PyErr_Display() for bytes filename (GH-14504)

Fix sys.excepthook() and PyErr_Display() if a filename is a bytes
string. For example, for a SyntaxError exception where the filename
attribute is a bytes string.

Cleanup also test_sys:

* Sort imports.
* Rename numruns global var to INTERN_NUMRUNS.
* Add DisplayHookTest and ExceptHookTest test case classes.
* Don't save/restore sys.stdout and sys.displayhook using
  setUp()/tearDown(): do it in each test method.
* Test error case (call hook with no argument) after the success case.
(cherry picked from commit f9b7457bd7f438263e0d2dd1f70589ad56a2585e)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
5 years agobpo-37209: Add pickle entry for 3.8 whatsnew (GH-14503) (GH-14512)
Miss Islington (bot) [Mon, 1 Jul 2019 14:05:02 +0000 (07:05 -0700)]
bpo-37209: Add pickle entry for 3.8 whatsnew (GH-14503) (GH-14512)

(cherry picked from commit ec6c1bd0491590f3c0e2908a7b2dfb91b6acdae9)

Co-authored-by: Pierre Glaser <pierreglaser@msn.com>
5 years agobpo-10945: Drop support for bdist_wininst on non-Windows systems (GH-14506)
Miss Islington (bot) [Mon, 1 Jul 2019 12:54:19 +0000 (05:54 -0700)]
bpo-10945: Drop support for bdist_wininst on non-Windows systems (GH-14506)

bdist_wininst depends on MBCS codec, unavailable on non-Windows,
and bdist_wininst have not worked since at least Python 3.2, possibly
never on Python 3.

Here we document that bdist_wininst is only supported on Windows,
and we mark it unsupported otherwise to skip tests.

Distributors of Python 3 can now safely drop the bdist_wininst .exe files
without the need to skip bdist_wininst related tests.
(cherry picked from commit 72cd653c4ed7a4f8f8fb06ac364b08a97085a2b5)

Co-authored-by: Miro Hrončok <miro@hroncok.cz>
5 years agobpo-32934: Clarified meaning of 'capacity' for BufferingHandler and MemoryHandler...
Miss Islington (bot) [Mon, 1 Jul 2019 12:12:08 +0000 (05:12 -0700)]
bpo-32934: Clarified meaning of 'capacity' for BufferingHandler and MemoryHandler. (GH-14498) (GH-14507)

(cherry picked from commit 84de34e39eb9e49b2ae691c6f67df8d7da3561de)

5 years agobpo-37221: Add PyCode_NewWithPosOnlyArgs to be used internally and set PyCode_New...
Miss Islington (bot) [Mon, 1 Jul 2019 11:29:14 +0000 (04:29 -0700)]
bpo-37221: Add PyCode_NewWithPosOnlyArgs to be used internally and set PyCode_New as a compatibility wrapper (GH-13959) (#14505)

Add PyCode_NewEx to be used internally and set PyCode_New as a compatibility wrapper
(cherry picked from commit 4a2edc34a405150d0b23ecfdcb401e7cf59f4650)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
5 years ago[3.8] bpo-37428: Don't set PHA verify flag on client side (GH-14494)
Christian Heimes [Mon, 1 Jul 2019 07:25:48 +0000 (09:25 +0200)]
[3.8] bpo-37428: Don't set PHA verify flag on client side (GH-14494)

SSLContext.post_handshake_auth = True no longer sets
SSL_VERIFY_POST_HANDSHAKE verify flag for client connections. Although the
option is documented as ignored for clients, OpenSSL implicitly enables cert
chain validation when the flag is set.

Signed-off-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue37428
(cherry picked from commit f0f5930ac88482ef896283db5be9b8d508d077db)

5 years ago[3.8] bpo-37440: Enable TLS 1.3 post-handshake auth in http.client (GH-14448) (GH...
Miss Islington (bot) [Mon, 1 Jul 2019 07:07:44 +0000 (00:07 -0700)]
[3.8] bpo-37440: Enable TLS 1.3 post-handshake auth in http.client (GH-14448) (GH-14495)

Post-handshake authentication is required for conditional client cert authentication with TLS 1.3.

https://bugs.python.org/issue37440
(cherry picked from commit d1bd6e79da1ee56dc1b902d804216ffd267399db)

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

5 years agobpo-37199: Fix test failures when IPv6 is unavailable or disabled (GH-14480)
Miss Islington (bot) [Sun, 30 Jun 2019 15:42:22 +0000 (08:42 -0700)]
bpo-37199: Fix test failures when IPv6 is unavailable or disabled (GH-14480)

(cherry picked from commit c2cda638d63b98f5cf9a8ef13e15aace2b7e3f0b)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
5 years agobpo-35621: Support running subprocesses in asyncio when loop is executed in non-main...
Miss Islington (bot) [Sun, 30 Jun 2019 10:22:34 +0000 (03:22 -0700)]
bpo-35621: Support running subprocesses in asyncio when loop is executed in non-main thread  (GH-14344)

(cherry picked from commit 0d671c04c39b52e44597491b893eb0b6c86b3d45)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
5 years agobpo-29505: Add more fuzzing for re.compile, re.load and csv.reader (GH-14255)
Miss Islington (bot) [Sun, 30 Jun 2019 06:13:18 +0000 (23:13 -0700)]
bpo-29505: Add more fuzzing for re.compile, re.load and csv.reader (GH-14255)

Add more fuzz testing for re.compile, re.load and csv.reader
(cherry picked from commit 5cbbbd73a6acb6f96f5d6646aa7498d3dfb1706d)

Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
5 years agobpo-30754: Document textwrap.dedent blank line behavior. (GH-14469)
Miss Islington (bot) [Sun, 30 Jun 2019 04:40:41 +0000 (21:40 -0700)]
bpo-30754: Document textwrap.dedent blank line behavior. (GH-14469)

* Added documentation for textwrap.dedent behavior.
* Remove an obsolete note about pre-2.5 behavior from the docstring.
(cherry picked from commit eb97b9211e7c99841d6cae8c63893b3525d5a401)

Co-authored-by: tmblweed <tmblweed@users.noreply.github.com>