]> granicus.if.org Git - python/log
python
6 years agobpo-28055: Fix unaligned accesses in siphash24(). (GH-6123)
Miss Islington (bot) [Sun, 13 May 2018 11:40:03 +0000 (04:40 -0700)]
bpo-28055: Fix unaligned accesses in siphash24(). (GH-6123)

The hash implementation casts the input pointer to uint64_t* and directly reads
from this, which may cause unaligned accesses. Use memcpy() instead so this code
will not crash with SIGBUS on sparc.

https://bugs.gentoo.org/show_bug.cgi?id=636400
(cherry picked from commit 1e2ec8a996daec65d8d5a3d43b66a9909c6d0653)

Co-authored-by: Rolf Eike Beer <eike@sf-mail.de>
6 years agoBackport recent typing updates (GH-6759)
Ivan Levkivskyi [Fri, 11 May 2018 03:15:14 +0000 (23:15 -0400)]
Backport recent typing updates (GH-6759)

6 years agobpo-26701: Tweak the documentation for special methods in int(). (GH-6741)
Miss Islington (bot) [Thu, 10 May 2018 14:38:20 +0000 (07:38 -0700)]
bpo-26701: Tweak the documentation for special methods in int(). (GH-6741)

(cherry picked from commit df00f048250b9a07195b0e3b1c5c0161fdcc9db8)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-21983: Fix a crash in ctypes.cast() when passed a ctypes structured data type...
Miss Islington (bot) [Wed, 9 May 2018 22:27:59 +0000 (15:27 -0700)]
bpo-21983: Fix a crash in ctypes.cast() when passed a ctypes structured data type (GH-3859)

(cherry picked from commit d518d8bc8d5dac1a1270612f424d33e0e5afc2b5)

Co-authored-by: Oren Milman <orenmn@gmail.com>
6 years agobpo-13525: Fix incorrect encoding name in the tutorial example. (GH-6738)
Miss Islington (bot) [Wed, 9 May 2018 09:00:13 +0000 (02:00 -0700)]
bpo-13525: Fix incorrect encoding name in the tutorial example. (GH-6738)

(cherry picked from commit ddb6215a55b0218b621d5cb755e9dfac8dab231a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agoFix superfluous if in documentation. (GH-6728)
Miss Islington (bot) [Wed, 9 May 2018 08:10:12 +0000 (01:10 -0700)]
Fix superfluous if in documentation. (GH-6728)

(cherry picked from commit b3c369861b22268dac003eb995951726c972e5ee)

Co-authored-by: Julien Palard <julien@palard.fr>
6 years agoFix typo in __mul__ and __rmul__ docstring (GH-6674)
Miss Islington (bot) [Wed, 9 May 2018 05:49:57 +0000 (22:49 -0700)]
Fix typo in __mul__ and __rmul__ docstring (GH-6674)

(cherry picked from commit 0904f766e116c269675317e11368a4d29eef0bc6)

Co-authored-by: Grant Jenks <grant.jenks@gmail.com>
6 years agocloses bpo-33445: fail properly in test_cprofile() (GH-6727)
Miss Islington (bot) [Wed, 9 May 2018 04:59:50 +0000 (21:59 -0700)]
closes bpo-33445: fail properly in test_cprofile() (GH-6727)

(cherry picked from commit ac9240b9be31d073d1b2e50ce53481ff0fc9ed23)

Co-authored-by: jdemeyer <jdemeyer@cage.ugent.be>
6 years ago[3.6] bpo-20087: Update locale alias mapping with glibc 2.27 supported locales. ...
Miss Islington (bot) [Sun, 6 May 2018 07:20:42 +0000 (00:20 -0700)]
[3.6] bpo-20087: Update locale alias mapping with glibc 2.27 supported locales. (GH-6708) (GH-6714)

(cherry picked from commit cedc9b74202d8c1ae39bca261cbb45d42ed54d45)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-33422: Fix quotation marks getting deleted when looking up byte/string literals...
Miss Islington (bot) [Sat, 5 May 2018 17:12:19 +0000 (10:12 -0700)]
bpo-33422: Fix quotation marks getting deleted when looking up byte/string literals on pydoc. (GH-6701)

Also update the list of string prefixes.
(cherry picked from commit b2043bbe6034b53f5ad337887f4741b74b70b00d)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
6 years agobpo-33400: Clarified documentation to indicate no strict adherence to ISO 8601. ...
Miss Islington (bot) [Fri, 4 May 2018 22:02:48 +0000 (15:02 -0700)]
bpo-33400: Clarified documentation to indicate no strict adherence to ISO 8601. (GH-6703)

(cherry picked from commit c4994dc00d9828a99510f3851da93b0e1c18361d)

Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
6 years agobpo-33391: Fix refleak in set_symmetric_difference (GH-6670)
Miss Islington (bot) [Wed, 2 May 2018 10:12:18 +0000 (03:12 -0700)]
bpo-33391: Fix refleak in set_symmetric_difference (GH-6670)

(cherry picked from commit 491bbedc209fea314a04cb3015da68fb0aa63238)

Co-authored-by: lekma <lekmalek@gmail.com>
6 years agoMitigate macOS race condition in installer build (GH-6686) (GH-6688)
Miss Islington (bot) [Wed, 2 May 2018 05:49:03 +0000 (22:49 -0700)]
Mitigate macOS race condition in installer build (GH-6686) (GH-6688)

(cherry picked from commit fc6aa28bfd0502d994cec30bd3679b7def3be2af)

Co-authored-by: Ned Deily <nad@python.org>
6 years agobpo-33290: Have macOS installer remove "pip" alias (GH-6683) (GH-6685)
Miss Islington (bot) [Wed, 2 May 2018 05:48:11 +0000 (22:48 -0700)]
bpo-33290: Have macOS installer remove "pip" alias (GH-6683) (GH-6685)

Currently, "pip3 install --upgrade pip" unconditionally installs a
"pip" alias even for Python 3.  If a user has an existing Python 3.x
installed from a python.org macOS installer and then subsequently
manually updates to a new version of pip, there may now be a stray
"pip" alias in the Python 3.x framework bin directory which can cause
confusion if the user has both a Python 2.7 and 3.x installed;
if the Python 3.x fw bin directory appears early on $PATH, "pip"
might invoke the pip3 for the Python 3.x rather than the pip for
Python 2.7.  To try to mitigate this, the macOS installer script
for the ensurepip option will unconditionally remove "pip" from
the 3.x framework bin directory being updated / installed.  (The
ambiguity can be avoided by using "pythonx.y -m pip".)
(cherry picked from commit 0dd80709b5dc03756e7f4510761ae60236bb9f6d)

Co-authored-by: Ned Deily <nad@python.org>
6 years agobpo-33378: Add Korean to the language switcher. (GH-6627)
Miss Islington (bot) [Tue, 1 May 2018 09:47:17 +0000 (02:47 -0700)]
bpo-33378: Add Korean to the language switcher. (GH-6627)

(cherry picked from commit 577948329976985ea9bef23d9a6c3dd7108211bf)

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
6 years agobpo-31908: Fix output of cover files for trace module command-line tool. (GH-4205)
Miss Islington (bot) [Tue, 1 May 2018 05:03:29 +0000 (22:03 -0700)]
bpo-31908: Fix output of cover files for trace module command-line tool. (GH-4205)

Previously emitted cover files only when --missing option was used.
(cherry picked from commit 47ab15470d72367694d7758004067313ae022f0e)

Co-authored-by: Michael Selik <mike@selik.org>
6 years agobpo-21474: Update IDLE word/identifier definition from ascii to unicode. (GH-6643)
Miss Islington (bot) [Mon, 30 Apr 2018 07:48:16 +0000 (00:48 -0700)]
bpo-21474: Update IDLE word/identifier definition from ascii to unicode. (GH-6643)

In text and entry boxes, this affects selection by double-click,
movement left/right by control-left/right, and deletion left/right
by control-BACKSPACE/DEL.
(cherry picked from commit 5ff3a161c8a6b525c5e5b3e36e9c43f5a95bda60)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-32362: Fix references to non-existent multiprocessing.Connection() (GH-6223)
Miss Islington (bot) [Sun, 29 Apr 2018 19:11:01 +0000 (12:11 -0700)]
bpo-32362: Fix references to non-existent multiprocessing.Connection() (GH-6223)

(cherry picked from commit 9f3535c9cde8813ce631d6ebe4d790682f594828)

Co-authored-by: Bo Bayles <bbayles@gmail.com>
6 years agobpo-33256: Replace angle brackets around python object repr to display it in html...
Miss Islington (bot) [Sun, 29 Apr 2018 19:10:39 +0000 (12:10 -0700)]
bpo-33256: Replace angle brackets around python object repr to display it in html (GH-6442)

(cherry picked from commit 7d68bfa82654ba01d860b8a772ff63bf0bd183ee)

Co-authored-by: sblondon <sblondon@users.noreply.github.com>
6 years agobpo-31026: Fix test_dbm if dbm.ndbm is build with Berkeley DB. (GH-6632)
Miss Islington (bot) [Sun, 29 Apr 2018 13:47:39 +0000 (06:47 -0700)]
bpo-31026: Fix test_dbm if dbm.ndbm is build with Berkeley DB. (GH-6632)

(cherry picked from commit 70af06cdc4e8fbee0b9d7d46bdc193097d4bc71f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years ago[3.6] bpo-33383: Fix crash in get() of the dbm.ndbm database object. (GH-6630). ...
Serhiy Storchaka [Sun, 29 Apr 2018 12:44:16 +0000 (15:44 +0300)]
[3.6] bpo-33383: Fix crash in get() of the dbm.ndbm database object. (GH-6630). (GH-6633)

(cherry picked from commit 2e38cc39330bd7f3003652869b644110a97a78d8)

6 years ago[3.6] bpo-33280: Reorganize external Tcl/Tk references. (GH-6473). (#6602)
Andrés Delfino [Thu, 26 Apr 2018 14:10:10 +0000 (11:10 -0300)]
[3.6] bpo-33280: Reorganize external Tcl/Tk references. (GH-6473). (#6602)

(cherry picked from commit 67a8f4fed3169e1b8c947c10f6e06863e399ae32)

Co-authored-by: Andrés Delfino <34587441+andresdelfino@users.noreply.github.com>
6 years ago[3.6] bpo-33330: Improve error handling in PyImport_Cleanup(). (GH-6564). (GH-6604)
Serhiy Storchaka [Thu, 26 Apr 2018 00:27:51 +0000 (03:27 +0300)]
[3.6] bpo-33330: Improve error handling in PyImport_Cleanup(). (GH-6564). (GH-6604)

(cherry picked from commit e9d9494d6b2a5e0c2d48d22c7f0d5e95504b4f7e)

6 years agoMention both relevant PEPs in function annotations tutorial (GH-6304)
Miss Islington (bot) [Wed, 25 Apr 2018 18:02:07 +0000 (11:02 -0700)]
Mention both relevant PEPs in function annotations tutorial (GH-6304)

Patch by Neeraj Badlani.
(cherry picked from commit 643ff711faf417fc3428897dc7d36250ad2cb0e5)

Co-authored-by: Neeraj Badlani <neerajbadlani@gmail.com>
6 years agotravis: Use -O3 option (GH-5599)
INADA Naoki [Wed, 25 Apr 2018 01:27:18 +0000 (10:27 +0900)]
travis: Use -O3 option (GH-5599)

We don't use debugger on Travis..
(cherry picked from commit 8ff53564730f7ba503f5ad94418c309c48e8516d)

Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
6 years ago[3.6] bpo-33329: Fix multiprocessing regression on newer glibcs (GH-6575) (GH-6582)
Antoine Pitrou [Mon, 23 Apr 2018 20:22:49 +0000 (22:22 +0200)]
[3.6] bpo-33329: Fix multiprocessing regression on newer glibcs (GH-6575) (GH-6582)

Starting with glibc 2.27.9000-xxx, sigaddset() can return EINVAL for some
reserved signal numbers between 1 and NSIG.  The `range(1, NSIG)` idiom
is commonly used to select all signals for blocking with `pthread_sigmask`.
So we ignore the sigaddset() return value until we expose sigfillset()
to provide a better idiom.
(cherry picked from commit 25038ecfb665bef641abf8cb61afff7505b0e008)

6 years agobpo-991266: Fix quoting of Comment attribute of SimpleCookie (GH-6555)
Miss Islington (bot) [Mon, 23 Apr 2018 00:58:51 +0000 (17:58 -0700)]
bpo-991266: Fix quoting of Comment attribute of SimpleCookie (GH-6555)

(cherry picked from commit d5a2377c3d70e4143bcbee4a765b3434e21f683a)

Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
6 years agobpo-31457: Don't omit inner ``process()`` calls with nested LogAdapters (GH-4044...
Miss Islington (bot) [Sun, 22 Apr 2018 22:00:30 +0000 (15:00 -0700)]
bpo-31457: Don't omit inner ``process()`` calls with nested LogAdapters (GH-4044) (#6568)

This used to be the case on Python 2.  Commit
212b590e118e3650b596917021ed9612a918180b changed the implementation for Python
3, making the `log()` method of LogAdapter call `logger._log()` directly.  This
makes nested log adapters not execute their ``process()`` method.  This patch
fixes the issue.

Also, now proxying `name`, too, to make `repr()` work with nested log adapters.

New tests added.
(cherry picked from commit ce9e62544571e7ade7186697d5dd065fb4c5243f)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
6 years agobpo-33297: Mention Pillow to work with more image formats. (GH-6505)
Miss Islington (bot) [Sat, 21 Apr 2018 13:04:08 +0000 (06:04 -0700)]
bpo-33297: Mention Pillow to work with more image formats. (GH-6505)

Also update PIL doc references to Pillow.
(cherry picked from commit b81ca28b378c8b29204a37f8bd433a3379f53f7d)

Co-authored-by: Andrés Delfino <34587441+andresdelfino@users.noreply.github.com>
6 years ago[3.6] Spelling fixes to docs, docstrings, and comments (GH-6374) (#6558)
Terry Jan Reedy [Sat, 21 Apr 2018 00:49:07 +0000 (20:49 -0400)]
[3.6] Spelling fixes to docs, docstrings, and comments (GH-6374) (#6558)

(cherry picked from commit 61f82e0e337f971da57f8f513abfe693edf95aa5)

6 years agoClarify that __path__ can't be just any value (GH-6554)
Miss Islington (bot) [Fri, 20 Apr 2018 23:49:58 +0000 (16:49 -0700)]
Clarify that __path__ can't be just any value (GH-6554)

(cherry picked from commit 441d945eb33f8dc130b268ebfa11315b98a2433c)

Co-authored-by: Brett Cannon <brettcannon@users.noreply.github.com>
6 years agobpo-33131: Upgrade ensurepip to bundle pip 10.0.1 (GH-6546)
Miss Islington (bot) [Fri, 20 Apr 2018 22:02:53 +0000 (15:02 -0700)]
bpo-33131: Upgrade ensurepip to bundle pip 10.0.1 (GH-6546)

Upgrade ensurepip to bundle pip 10.0.1
(cherry picked from commit 0399cf9b5e370516e3d0aed6a63ff74aff5eadb5)

Co-authored-by: Paul Moore <p.f.moore@gmail.com>
6 years agoClean up the readme text around PGO a bit. (GH-6538) (#6540)
Miss Islington (bot) [Fri, 20 Apr 2018 17:15:20 +0000 (10:15 -0700)]
Clean up the readme text around PGO a bit. (GH-6538) (#6540)

(cherry picked from commit b87c1c92fc93c5733cd3d8606ab2301ca6ba208f)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
6 years agobpo-33189: pygettext.py now accepts only literal strings (GH-6364)
Miss Islington (bot) [Thu, 19 Apr 2018 07:34:20 +0000 (00:34 -0700)]
bpo-33189: pygettext.py now accepts only literal strings (GH-6364)

as docstrings and translatable strings, and rejects
bytes literals and f-string expressions.
(cherry picked from commit 69524821a87251b7aee966f6e46b3810ff5aaa64)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-33308: Fix a crash in the parser module when convert an ST object. (GH-6519)
Miss Islington (bot) [Thu, 19 Apr 2018 05:11:05 +0000 (22:11 -0700)]
bpo-33308: Fix a crash in the parser module when convert an ST object. (GH-6519)

Converting with line_info=False and col_info=True crashed before.
(cherry picked from commit e5362eaa75a154c6e91c5b1c47719d0a0f5ca48b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-31583: Fix 2to3 for using with --add-suffix option (GH-3758) (GH-6529)
Miss Islington (bot) [Thu, 19 Apr 2018 05:09:51 +0000 (22:09 -0700)]
bpo-31583: Fix 2to3 for using with --add-suffix option (GH-3758) (GH-6529)

(cherry picked from commit e3a523a0fa16aec880880928303bfcbd1fb74bc2)

Co-authored-by: Denis Osipov <osipov_d@list.ru>
6 years agoFix spelling typo (GH-6443) (#6508)
Miss Islington (bot) [Tue, 17 Apr 2018 15:41:51 +0000 (08:41 -0700)]
Fix spelling typo (GH-6443) (#6508)

(cherry picked from commit 28e8b66d6c632552765b5fb4573b7f3c9decc3c1)

Co-authored-by: jdemeyer <jdemeyer@cage.ugent.be>
6 years agobpo-33295: Skip test using missing external site (GH-6504) (GH-6511)
Miss Islington (bot) [Tue, 17 Apr 2018 15:36:30 +0000 (08:36 -0700)]
bpo-33295: Skip test using missing external site (GH-6504) (GH-6511)

`test_urllib2net.OtherNetworkTests.test_sites_no_connection_close`
used `http://www.imdb.com/` but it is moved to https so the test is
not valid anymore.  Skip test for the moment to allow CI to proceed.
(cherry picked from commit 36d56ea826caffbeac0fc0c6d90248b80516e33c)

Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
6 years agobpo-33283: Mention PNG as a supported format by Tcl/Tk. (GH-6479)
Miss Islington (bot) [Tue, 17 Apr 2018 10:10:39 +0000 (03:10 -0700)]
bpo-33283: Mention PNG as a supported format by Tcl/Tk. (GH-6479)

(cherry picked from commit 4b685bf7192fff48c8effeeae4f4d64f9420ec0f)

Co-authored-by: Andrés Delfino <34587441+andresdelfino@users.noreply.github.com>
6 years agofix pydoc-topics to work with Sphinx 1.7 (GH-6475)
Miss Islington (bot) [Tue, 17 Apr 2018 06:38:06 +0000 (23:38 -0700)]
fix pydoc-topics to work with Sphinx 1.7 (GH-6475)

In fact, we now require a newer Sphinx version because APIs have moved around.
(cherry picked from commit acfb087f9f5590e5174a30eced3c2fe911f49d70)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
6 years agoRevert 725476222a3c1f2f93162d75a540e6bcdeaa36fd (GH-6494) (GH-6496)
Miss Islington (bot) [Tue, 17 Apr 2018 03:35:13 +0000 (20:35 -0700)]
Revert 725476222a3c1f2f93162d75a540e6bcdeaa36fd (GH-6494) (GH-6496)

This note in documentation was never true.
(cherry picked from commit a00d440edb4ccf36c83673a0fb172b29c76a66e6)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
6 years agoRemove to-be-deprecated urllib.request.urlretrieve function reference (GH-6454)
Miss Islington (bot) [Mon, 16 Apr 2018 14:21:57 +0000 (07:21 -0700)]
Remove to-be-deprecated urllib.request.urlretrieve function reference (GH-6454)

(cherry picked from commit c89b22175807d64c47b598163b804b5dc005d1bb)

Co-authored-by: Andrés Delfino <34587441+andresdelfino@users.noreply.github.com>
6 years agobpo-33184: Update Windows installer to OpenSSL 1.0.2o (GH-6464)
Steve Dower [Sat, 14 Apr 2018 00:31:16 +0000 (17:31 -0700)]
bpo-33184: Update Windows installer to OpenSSL 1.0.2o (GH-6464)

6 years agoFix error messages in argparse examples (GH-6435)
Miss Islington (bot) [Wed, 11 Apr 2018 19:05:52 +0000 (12:05 -0700)]
Fix error messages in argparse examples (GH-6435)

The examples in argparse documentation use `error: too few arguments`
error message which was removed in this commit f97c59a in 2011.
(cherry picked from commit 04e82934659487ecae76bf4a2db7f92c8dbe0d25)

Co-authored-by: suic86 <marko.gabriel.cz@gmail.com>
6 years agobpo-33253: Fix xxsubtype.bench() to accept correct str signature. (GH-6439)
Miss Islington (bot) [Tue, 10 Apr 2018 06:07:14 +0000 (23:07 -0700)]
bpo-33253: Fix xxsubtype.bench() to accept correct str signature. (GH-6439)

(cherry picked from commit f178028f37c9dafb72608b719eb03e5a70af4ff5)

Co-authored-by: Devon R <Gorialis@users.noreply.github.com>
6 years ago[3.6] bpo-31201: Clarify command to re-run failing test(s) with example (GH-6417...
Miss Islington (bot) [Mon, 9 Apr 2018 21:19:32 +0000 (14:19 -0700)]
[3.6] bpo-31201: Clarify command to re-run failing test(s) with example (GH-6417) (GH-6438)

(cherry picked from commit 0f914b5b5f6ba186afd7112fc851c97247076f70)

Co-authored-by: Aaron Ang <aaronang@users.noreply.github.com>
6 years agobpo-31920: Fixed handling directories as arguments in the ``pygettext`` script. ...
Miss Islington (bot) [Mon, 9 Apr 2018 18:06:09 +0000 (11:06 -0700)]
bpo-31920: Fixed handling directories as arguments in the ``pygettext`` script. (GH-6259)

Based on patch by Oleg Krasnikov.
(cherry picked from commit c93938b5beea4c3f592119ebee6d4029558db8de)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agoFix misleading docsting of shelve.open(). (GH-6427)
Miss Islington (bot) [Mon, 9 Apr 2018 15:06:25 +0000 (08:06 -0700)]
Fix misleading docsting of shelve.open(). (GH-6427)

The protocol parameter can be any protocol supported by the
pickle module.
(cherry picked from commit 2ef65f346a5e829a886c075f519e3a49a2ebbde7)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years ago[3.6] Improve highlighting of some code blocks. (GH-6401). (GH-6424)
Serhiy Storchaka [Mon, 9 Apr 2018 14:57:07 +0000 (17:57 +0300)]
[3.6] Improve highlighting of some code blocks. (GH-6401). (GH-6424)

(cherry picked from commit 46936d5a71d1683dbd8ddb6d7f39aab50ecfec50)

6 years agoUpdate docstring of tempfile._RandomNameSequence (GH-6414)
Miss Islington (bot) [Mon, 9 Apr 2018 01:26:56 +0000 (18:26 -0700)]
Update docstring of tempfile._RandomNameSequence (GH-6414)

When bpo-12015 got resolved by increasing the length of the
random string generated by _RandomNameSequence from six to eight
characters, the docstring of the class was not adjusted accordingly.
(cherry picked from commit 9c463ec88ba21764f6fff8e01d6045a932a89438)

Co-authored-by: Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de>
6 years agoAdd a prepend() recipe to teach a chain() idiom (GH-6415) (GH-6422)
Miss Islington (bot) [Sun, 8 Apr 2018 21:37:47 +0000 (14:37 -0700)]
Add a prepend() recipe to teach a chain() idiom (GH-6415) (GH-6422)

(cherry picked from commit 9265dd72e5ec1cfa5fcdb5be8ebffe1d9994bd4b)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
6 years ago[3.6] bpo-33201: Modernize "Extension types" doc (GH-6337) (GH-6412)
Antoine Pitrou [Sat, 7 Apr 2018 16:35:35 +0000 (18:35 +0200)]
[3.6] bpo-33201: Modernize "Extension types" doc (GH-6337) (GH-6412)

* bpo-33201: Modernize "Extension types" doc
* Split tutorial and other topics
* Some small fixes
* Address some review comments
* Rename noddy* to custom* and shoddy to sublist
* Fix markup.
(cherry picked from commit 1d80a561734b9932961c546b0897405a3bfbf3e6)

6 years agobpo-33184: Update macOS installer build to use OpenSSL 1.0.2o. (GH-6408)
Ned Deily [Sat, 7 Apr 2018 07:04:03 +0000 (03:04 -0400)]
bpo-33184: Update macOS installer build to use OpenSSL 1.0.2o. (GH-6408)

6 years ago[3.6] bpo-8243: Doc patch for curses.window.addstr and curses.window.addch (GH-5179...
Miss Islington (bot) [Sat, 7 Apr 2018 02:01:03 +0000 (19:01 -0700)]
[3.6] bpo-8243: Doc patch for curses.window.addstr and curses.window.addch (GH-5179) (GH-6406)

(cherry picked from commit ef5ce884a41c8553a7eff66ebace908c1dcc1f89)

Co-authored-by: Jay Crotts <crotts.jay@gmail.com>
6 years ago[3.6] bpo-29673: fix gdb scripts pystack and pystackv (GH-6126) (GH-6400)
Miss Islington (bot) [Fri, 6 Apr 2018 22:15:34 +0000 (15:15 -0700)]
[3.6] bpo-29673: fix gdb scripts pystack and pystackv (GH-6126) (GH-6400)

(cherry picked from commit 3a9ccee0e5dbf7d67f5ab79f6095755969db117c)

Co-authored-by: Marcel Plch <gmarcel.plch@gmail.com>
6 years agobpo-33231: Fix potential leak in normalizestring() (GH-6386)
Miss Islington (bot) [Fri, 6 Apr 2018 07:37:03 +0000 (00:37 -0700)]
bpo-33231: Fix potential leak in normalizestring() (GH-6386)

(cherry picked from commit 0c1c4563a65ac451021d927058e4f25013934eb2)

Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
6 years agobpo-33224: PEP 479 fix for difflib.mdiff() (GH-6381) (GH-6391)
Miss Islington (bot) [Thu, 5 Apr 2018 19:18:02 +0000 (12:18 -0700)]
bpo-33224: PEP 479 fix for difflib.mdiff() (GH-6381) (GH-6391)

(cherry picked from commit 01b731fc2b04744a11e32f93aba8bfb9ddb3dd29)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
6 years agobpo-33203: Ensure random.choice always raises IndexError on empty sequence (GH-6338...
Miss Islington (bot) [Thu, 5 Apr 2018 16:24:27 +0000 (09:24 -0700)]
bpo-33203: Ensure random.choice always raises IndexError on empty sequence (GH-6338) (GH-6388)

(cherry picked from commit 091e95e9004b794280ab35becec2c3e30dd5e96e)

Co-authored-by: Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de>
6 years agobpo-33195: Doc: Deprecate Py_UNICODE in c-api/arg (GH-6329)
INADA Naoki [Thu, 5 Apr 2018 09:08:43 +0000 (18:08 +0900)]
bpo-33195: Doc: Deprecate Py_UNICODE in c-api/arg (GH-6329)

Py_UNICODE is deprecated since Python 3.3.
But the deprecation is missed in the c-api/arg document.
(cherry picked from commit 42ec190)

6 years agobpo-29922: Add more tests for error messages in 'async with'. (GH-6370)
Miss Islington (bot) [Wed, 4 Apr 2018 17:18:56 +0000 (10:18 -0700)]
bpo-29922: Add more tests for error messages in 'async with'. (GH-6370)

Different paths are executed for normal exit and for leaving
the 'async with' block with 'break', 'continue' or 'return'.
(cherry picked from commit 2eeac269dd1e04a2a179384576986c3e47895ee0)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-29922: Improve error messages in 'async with' (GH-6352)
Miss Islington (bot) [Wed, 4 Apr 2018 14:09:14 +0000 (07:09 -0700)]
bpo-29922: Improve error messages in 'async with' (GH-6352)

when __aenter__() or __aexit__() return non-awaitable object.
(cherry picked from commit a68f2f0578bbf812fa2264d0e0bb388340d6e230)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-33209: End framing at the end of C implementation of pickle.Pickler.dump(). ...
Miss Islington (bot) [Tue, 3 Apr 2018 22:05:11 +0000 (15:05 -0700)]
bpo-33209: End framing at the end of C implementation of pickle.Pickler.dump(). (GH-6363)

(cherry picked from commit c869529ea9fbed574d34cf7ac139ca3f81b62ef0)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agocloses bpo-33202: fix os.walk mentioning os.listdir instead of os.scandir (GH-6335)
Miss Islington (bot) [Tue, 3 Apr 2018 03:39:14 +0000 (20:39 -0700)]
closes bpo-33202: fix os.walk mentioning os.listdir instead of os.scandir (GH-6335)

(cherry picked from commit badb894bbbb8aaa8b669c4a6f675a0bc7d98e188)

Co-authored-by: Andrés Delfino <34587441+andresdelfino@users.noreply.github.com>
6 years agobpo-33199: Initialize ma_version_tag in PyDict_Copy (GH-6341)
Miss Islington (bot) [Tue, 3 Apr 2018 03:22:14 +0000 (20:22 -0700)]
bpo-33199: Initialize ma_version_tag in PyDict_Copy (GH-6341)

(cherry picked from commit d1c82c5cc7be0c21dddf86fd19c1702f6218459b)

Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
6 years agobpo-33204: IDLE - revise and extend colorizer test. (GH-6347)
Miss Islington (bot) [Mon, 2 Apr 2018 16:12:56 +0000 (09:12 -0700)]
bpo-33204: IDLE - revise and extend colorizer test. (GH-6347)

Followup to primary PR for the issue, GH-6344.
(cherry picked from commit 55966f3a0d5f1bf823bd22ce1abbde267b06552f)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-33204: IDLE: consistently color invalid string prefixes (GH-6344)
Miss Islington (bot) [Mon, 2 Apr 2018 06:33:25 +0000 (23:33 -0700)]
bpo-33204: IDLE: consistently color invalid string prefixes (GH-6344)

A 'u' string prefix cannot be paired with either 'r' or 'f'.  Consistently
color as much of the prefix, starting at the right, as is valid.
(cherry picked from commit da58533ac67b01ce8f6466e6f03ff6b8b3bb04d5)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years ago[3.6] Fix error message in sqlite connection thread check. (GH-6028). (GH-6324)
Serhiy Storchaka [Sat, 31 Mar 2018 22:03:50 +0000 (01:03 +0300)]
[3.6] Fix error message in sqlite connection thread check. (GH-6028). (GH-6324)

(cherry picked from commit 030345c0bfc2f76684666fe5c61e766ba5debfe6)

Co-authored-by: Takuya Akiba <469803+iwiwi@users.noreply.github.com>
6 years ago[3.6] bpo-33132: Fix reference counting issues in the compiler. (GH-6209). (GH-6321)
Serhiy Storchaka [Sat, 31 Mar 2018 20:54:13 +0000 (23:54 +0300)]
[3.6] bpo-33132: Fix reference counting issues in the compiler. (GH-6209). (GH-6321)

(cherry picked from commit a95d98607efe0c43475b354543e49bf8e240bc6f)

6 years agoFix socket type in DatagramHandler documentation: TCP -> UDP (GH-6272)
Miss Islington (bot) [Fri, 30 Mar 2018 07:53:35 +0000 (00:53 -0700)]
Fix socket type in DatagramHandler documentation: TCP -> UDP (GH-6272)

(cherry picked from commit 233de021d915364bd3daee921d1d96d50d46d7fe)

Co-authored-by: Mike DePalatis <mike@depalatis.net>
6 years ago[3.6] Fix duplicating words words. (GH-6296) (GH-6298)
Terry Jan Reedy [Wed, 28 Mar 2018 20:51:22 +0000 (16:51 -0400)]
[3.6] Fix duplicating words words. (GH-6296) (GH-6298)

Backport idlelib duplications.
(cherry picked from commit bac2d5b)

6 years agoMerge tag 'v3.6.5' into 3.6
Ned Deily [Wed, 28 Mar 2018 18:22:48 +0000 (14:22 -0400)]
Merge tag 'v3.6.5' into 3.6

Python 3.6.5

6 years agobpo-33126: Document PyBuffer_ToContiguous() (GH-6292) (GH-6293)
Miss Islington (bot) [Wed, 28 Mar 2018 15:47:34 +0000 (08:47 -0700)]
bpo-33126: Document PyBuffer_ToContiguous() (GH-6292) (GH-6293)

(cherry picked from commit aa50bf08e64f49d57917ab0b1aadf4308a3168a6)

Co-authored-by: Antoine Pitrou <pitrou@free.fr>
6 years ago3.6.5final v3.6.5
Ned Deily [Wed, 28 Mar 2018 09:19:31 +0000 (05:19 -0400)]
3.6.5final

6 years agobpo-33163: Upgrade pip to 9.0.3 and setuptools to v39.0.1. (GH-6285)
Miss Islington (bot) [Wed, 28 Mar 2018 08:52:07 +0000 (01:52 -0700)]
bpo-33163: Upgrade pip to 9.0.3 and setuptools to v39.0.1. (GH-6285)

(cherry picked from commit c0518cde7a8404f310cd3495e77e612820ecad4f)

Co-authored-by: Ned Deily <nad@python.org>
6 years agobpo-33163: Upgrade pip to 9.0.3 and setuptools to v39.0.1. (GH-6285)
Miss Islington (bot) [Wed, 28 Mar 2018 08:52:07 +0000 (01:52 -0700)]
bpo-33163: Upgrade pip to 9.0.3 and setuptools to v39.0.1. (GH-6285)

(cherry picked from commit c0518cde7a8404f310cd3495e77e612820ecad4f)

Co-authored-by: Ned Deily <nad@python.org>
6 years agobpo-32726: Do not force IDLE.app to launch in 32-bit mode. (GH-6279) (#6281)
Miss Islington (bot) [Wed, 28 Mar 2018 08:40:29 +0000 (01:40 -0700)]
bpo-32726: Do not force IDLE.app to launch in 32-bit mode. (GH-6279) (#6281)

Forcing the macOS IDLE.app gui process to launch in 32-mode was
a necessary hack for old versions of Tk (Aqua Carbon as in Tk 8.4
and early versions of 8.5); it is not needed for current versions
of Tk.  Since 32-bit launching will no longer be supported on
future releases of macOS, allow IDLE.app to launch in 64-bit mode.
(cherry picked from commit df532ab752680f6e359672c2cd40bec8ac848628)

Co-authored-by: Ned Deily <nad@python.org>
6 years agobpo-32872: Avoid regrtest compatibility issue with namespace packages. (GH-6276)...
Miss Islington (bot) [Wed, 28 Mar 2018 06:43:51 +0000 (23:43 -0700)]
bpo-32872: Avoid regrtest compatibility issue with namespace packages. (GH-6276) (GH-6278)

(cherry picked from commit e52ac045972a4f75d7f52e4ee0d6de128259134d)

Co-authored-by: Ned Deily <nad@python.org>
6 years agoUpgrade pip to v9.0.3 and setuptools to v39.0.1 (GH-6184)
Miss Islington (bot) [Thu, 22 Mar 2018 03:50:50 +0000 (20:50 -0700)]
Upgrade pip to v9.0.3 and setuptools to v39.0.1 (GH-6184)

(cherry picked from commit d93b5161af12291f3f98a260c90cc2975ea9e9cd)

Co-authored-by: Donald Stufft <donald@stufft.io>
6 years agoUpdate pip to 9.0.2 and setuptools to 38.6.1 (GH-6133) (#6136)
Miss Islington (bot) [Sat, 17 Mar 2018 16:19:41 +0000 (09:19 -0700)]
Update pip to 9.0.2 and setuptools to 38.6.1 (GH-6133) (#6136)

(cherry picked from commit 7f81bb2addbbccfa45a2fc1aa6030f26dcf4bd78)

Co-authored-by: Donald Stufft <donald@stufft.io>
6 years agobpo-30622: Fix backport of NPN fix (#6102)
Christian Heimes [Wed, 14 Mar 2018 06:40:20 +0000 (07:40 +0100)]
bpo-30622: Fix backport of NPN fix (#6102)

Fix backport a79591cf of bpo-30622 to 3.6 branch.

Signed-off-by: Christian Heimes <christian@python.org>
6 years agobpo-32872: Avoid regrtest compatibility issue with namespace packages. (GH-6276)...
Miss Islington (bot) [Wed, 28 Mar 2018 06:43:51 +0000 (23:43 -0700)]
bpo-32872: Avoid regrtest compatibility issue with namespace packages. (GH-6276) (GH-6278)

(cherry picked from commit e52ac045972a4f75d7f52e4ee0d6de128259134d)

Co-authored-by: Ned Deily <nad@python.org>
6 years agobpo-27212: Modify islice recipe to consume initial values preceding start (GH-6195...
Miss Islington (bot) [Tue, 27 Mar 2018 02:24:02 +0000 (19:24 -0700)]
bpo-27212: Modify islice recipe to consume initial values preceding start (GH-6195) (GH-6267)

(cherry picked from commit da1734c58d2f97387ccc9676074717d38b044128)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
6 years agobpo-32844: Fix a subprocess misredirection of a low fd (GH5689)
Miss Islington (bot) [Mon, 26 Mar 2018 20:43:46 +0000 (13:43 -0700)]
bpo-32844: Fix a subprocess misredirection of a low fd (GH5689)

bpo-32844: subprocess: Fix a potential misredirection of a low fd to stderr.

When redirecting, subprocess attempts to achieve the following state:
each fd to be redirected to is less than or equal to the fd
it is redirected from, which is necessary because redirection
occurs in the ascending order of destination descriptors.
It fails to do so in a couple of corner cases,
for example, if 1 is redirected to 2 and 0 is closed in the parent.
(cherry picked from commit 0e7144b064a19493a146af94175a087b3888c37b)

Co-authored-by: Alexey Izbyshev <izbyshev@users.noreply.github.com>
6 years agoFix description about SimpleXMLRPCServer constructor parameter bind_and_activate...
Miss Islington (bot) [Mon, 26 Mar 2018 12:20:25 +0000 (05:20 -0700)]
Fix description about SimpleXMLRPCServer constructor parameter bind_and_activate. (GH-776)

Passing True as the `bind_and_activate` *do* immediately opening and binding to their socket.
(cherry picked from commit e6223579c87b93f3e60d28796f521587d88091d4)

Co-authored-by: cocoatomo <cocoatomo77@gmail.com>
6 years agoGitignore gmon.out (GH-5796)
Miss Islington (bot) [Mon, 26 Mar 2018 11:53:51 +0000 (04:53 -0700)]
Gitignore gmon.out (GH-5796)

gmon.out is generated when profiling turned on

Full Configuration:
./configure --prefix=$PWD/install --enable-profiling  --enable-big-digits=30
--with-pydebug --with-assertions  --with-valgrind
(cherry picked from commit 95ad3822a2b6287772bd752b6ab493c6d4198d4b)

Co-authored-by: Neeraj Badlani <neerajbadlani@gmail.com>
6 years agoFix typo and edit for clarity in the docstrings of sys.float_info. (GH-2251)
Miss Islington (bot) [Mon, 26 Mar 2018 10:57:37 +0000 (03:57 -0700)]
Fix typo and edit for clarity in the docstrings of sys.float_info. (GH-2251)

(cherry picked from commit 0301c9bdd1ebd788d1334cf3fe06c48f35bab0dc)

Co-authored-by: Stefano Taschini <taschini@users.noreply.github.com>
6 years agobpo-33096: Fix ttk.Treeview.insert. (GH-6228)
Miss Islington (bot) [Mon, 26 Mar 2018 08:20:10 +0000 (01:20 -0700)]
bpo-33096: Fix ttk.Treeview.insert. (GH-6228)

Allow ttk.Treeview.insert to insert iid that has a false boolean value.
Note iid=0 and iid=False would be same.
(cherry picked from commit 3ab44c0783eebdff687014f7d14d5dec59b6bd39)

Co-authored-by: Garvit Khatri <garvitdelhi@gmail.com>
6 years ago[3.6] bpo-33127: Compatibility patch for LibreSSL 2.7.0 (GH-6210) (GH-6214)
Christian Heimes [Sat, 24 Mar 2018 17:38:14 +0000 (18:38 +0100)]
[3.6] bpo-33127: Compatibility patch for LibreSSL 2.7.0 (GH-6210) (GH-6214)

LibreSSL 2.7 introduced OpenSSL 1.1.0 API. The ssl module now detects
LibreSSL 2.7 and only provides API shims for OpenSSL < 1.1.0 and
LibreSSL < 2.7.

Documentation updates and fixes for failing tests will be provided in
another patch set.

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

Co-authored-by: Christian Heimes <christian@python.org>
6 years agobpo-27428: Fix WindowsRegistryFinder documentation to list appropriate ABC (GH-6061)
Miss Islington (bot) [Fri, 23 Mar 2018 21:50:09 +0000 (14:50 -0700)]
bpo-27428: Fix WindowsRegistryFinder documentation to list appropriate ABC (GH-6061)

(cherry picked from commit 5cbb84106efefd200933aa31e22abf39267d2557)

Co-authored-by: Himanshu Lakhara <himanshulakhara1947@gmail.com>
6 years agoFix a reference to the MRE book in re docs (GH-1113)
Miss Islington (bot) [Fri, 23 Mar 2018 15:55:46 +0000 (08:55 -0700)]
Fix a reference to the MRE book in re docs (GH-1113)

Reported by Maksym Nikulyak on docs.p.o.
(cherry picked from commit a0a42d22d8dff0ec6ea9daa4d9c9e9399f9b4e6c)

Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
6 years ago[3.6] bpo-33041: Fixed jumping if the function contains an "async for" loop. (GH...
Serhiy Storchaka [Fri, 23 Mar 2018 13:45:37 +0000 (15:45 +0200)]
[3.6] bpo-33041: Fixed jumping if the function contains an "async for" loop. (GH-6154). (GH-6199)

(cherry picked from commit b9744e924ca07ba7db977e5958b91cd8db565632)

6 years agoUpgrade pip to v9.0.3 and setuptools to v39.0.1 (GH-6184)
Miss Islington (bot) [Thu, 22 Mar 2018 03:50:50 +0000 (20:50 -0700)]
Upgrade pip to v9.0.3 and setuptools to v39.0.1 (GH-6184)

(cherry picked from commit d93b5161af12291f3f98a260c90cc2975ea9e9cd)

Co-authored-by: Donald Stufft <donald@stufft.io>
6 years agoFix typos in mmap() error messages (GH-6173)
Miss Islington (bot) [Wed, 21 Mar 2018 07:07:23 +0000 (00:07 -0700)]
Fix typos in mmap() error messages (GH-6173)

(cherry picked from commit 9308dea3e1fd565d50a76a667e4e8ef0568b7053)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agobpo-27683: Fix a regression for host() of ipaddress network objects (GH-6016)
Miss Islington (bot) [Wed, 21 Mar 2018 01:49:41 +0000 (18:49 -0700)]
bpo-27683: Fix a regression for host() of ipaddress network objects (GH-6016)

The result of host() was not empty when the network is constructed by a tuple containing an
integer mask and only 1 bit left for addresses.
(cherry picked from commit 10b134a07c898c2fbc5fd3582503680a54ed80a2)

Co-authored-by: Xiang Zhang <angwerzx@126.com>
6 years agobpo-18802: Add more details to ipaddress documentation (GH-6083)
Miss Islington (bot) [Wed, 21 Mar 2018 00:59:00 +0000 (17:59 -0700)]
bpo-18802: Add more details to ipaddress documentation (GH-6083)

Original patch by Jon Foster and Berker Peksag.
(cherry picked from commit 5609b78392d59c7362ef8aa5c4a4529325f01f27)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
6 years agobpo-28247: Document Windows executable creation in zipapp (GH-6158)
Miss Islington (bot) [Tue, 20 Mar 2018 22:52:41 +0000 (15:52 -0700)]
bpo-28247: Document Windows executable creation in zipapp (GH-6158)

(cherry picked from commit 4be79f29463f632cd8b48486feadc2ed308fb520)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
6 years ago[3.6] bpo-33021: Release the GIL during fstat() calls (GH-6019) (GH-6160)
Miss Islington (bot) [Tue, 20 Mar 2018 19:40:18 +0000 (12:40 -0700)]
[3.6] bpo-33021: Release the GIL during fstat() calls (GH-6019) (GH-6160)

fstat may block for long time if the file descriptor is on a
non-responsive NFS server, hanging all threads. Most fstat() calls are
handled by _Py_fstat(), releasing the GIL internally, but but
_Py_fstat_noraise() does not release the GIL, and most calls release the
GIL explicitly around it.

This patch fixes last 2 calls to _Py_fstat_no_raise(), avoiding hangs
when calling:
- mmap.mmap()
- os.urandom()
- random.seed()
(cherry picked from commit 4484f9dca9149da135bbae035f10a50d20d1cbbb)

Co-authored-by: Nir Soffer <nirsof@gmail.com>
6 years agobpo-19417: Add test_bdb.py (GH-5217)
xdegaye [Mon, 19 Mar 2018 17:30:47 +0000 (18:30 +0100)]
bpo-19417: Add test_bdb.py (GH-5217)

(cherry picked from commit 3fe33043ee83d19e15551094fc1e0984617ded3c)

6 years ago[3.6] bpo-33041: Add tests for jumps in/out of 'async with' blocks. (GH-6110). (GH...
Serhiy Storchaka [Sun, 18 Mar 2018 10:32:32 +0000 (12:32 +0200)]
[3.6] bpo-33041: Add tests for jumps in/out of 'async with' blocks. (GH-6110). (GH-6141)

(cherry picked from commit bc300ce205f99acb1ef92c37de06dc76147e073b)

6 years agoUpdate pip to 9.0.2 and setuptools to 38.6.1 (GH-6133) (#6136)
Miss Islington (bot) [Sat, 17 Mar 2018 16:19:41 +0000 (09:19 -0700)]
Update pip to 9.0.2 and setuptools to 38.6.1 (GH-6133) (#6136)

(cherry picked from commit 7f81bb2addbbccfa45a2fc1aa6030f26dcf4bd78)

Co-authored-by: Donald Stufft <donald@stufft.io>