]> granicus.if.org Git - python/log
python
6 years agobpo-33352: Skip test_regrtest test if rt.bat does not exist (GH-6654) (#6656)
Miss Islington (bot) [Mon, 30 Apr 2018 20:36:49 +0000 (13:36 -0700)]
bpo-33352: Skip test_regrtest test if rt.bat does not exist (GH-6654) (#6656)

(cherry picked from commit c3b7a6dfb9c7e69093c9fe78ab587e14743e5152)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
6 years agobpo-33254: do not return an empty list when asking for the contents of a namespace...
Miss Islington (bot) [Mon, 30 Apr 2018 19:30:26 +0000 (12:30 -0700)]
bpo-33254: do not return an empty list when asking for the contents of a namespace package (GH-6467)

(cherry picked from commit 3ab9365dca8438f89b2060cd3eebe00606133dc4)

Co-authored-by: Brett Cannon <brettcannon@users.noreply.github.com>
6 years agobpo-21474: Update IDLE word/identifier definition from ascii to unicode. (GH-6643)
Miss Islington (bot) [Mon, 30 Apr 2018 07:27:50 +0000 (00:27 -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-33256: Replace angle brackets around python object repr to display it in html...
Miss Islington (bot) [Sun, 29 Apr 2018 19:10:12 +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-32362: Fix references to non-existent multiprocessing.Connection() (GH-6223)
Miss Islington (bot) [Sun, 29 Apr 2018 19:09:34 +0000 (12:09 -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-31026: Fix test_dbm if dbm.ndbm is build with Berkeley DB. (GH-6632)
Miss Islington (bot) [Sun, 29 Apr 2018 13:37:21 +0000 (06:37 -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.7] bpo-33383: Fix crash in get() of the dbm.ndbm database object. (GH-6630) (GH...
Miss Islington (bot) [Sun, 29 Apr 2018 11:50:26 +0000 (04:50 -0700)]
[3.7] bpo-33383: Fix crash in get() of the dbm.ndbm database object. (GH-6630) (GH-6631)

(cherry picked from commit 2e38cc39330bd7f3003652869b644110a97a78d8)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-33378: Add Korean to the language switcher. (GH-6627)
Miss Islington (bot) [Sat, 28 Apr 2018 20:23:45 +0000 (13:23 -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 agoChange "non-local state" to "content-local state". (GH-6617)
Miss Islington (bot) [Fri, 27 Apr 2018 22:57:59 +0000 (15:57 -0700)]
Change "non-local state" to "content-local state". (GH-6617)

The wording here seems wrong, as per https://bugs.python.org/msg315792
(cherry picked from commit e022bbc169ca1428dc3017187012de17ce6e0bc7)

Co-authored-by: Tom Christie <tom@tomchristie.com>
6 years ago[3.7] bpo-33363: raise SyntaxError for async for/with outside async functions (GH...
Zsolt Dollenstein [Fri, 27 Apr 2018 22:33:37 +0000 (15:33 -0700)]
[3.7] bpo-33363: raise SyntaxError for async for/with outside async functions (GH-6616). (GH-6619)

6 years agobpo-33358: Fix test_embed.test_pre_initialization_sys_options (GH-6612)
Miss Islington (bot) [Fri, 27 Apr 2018 12:41:25 +0000 (05:41 -0700)]
bpo-33358: Fix test_embed.test_pre_initialization_sys_options (GH-6612)

Fix test_embed.test_pre_initialization_sys_options() when building with --enable-shared
(cherry picked from commit 4114846265536344538ae44cb8ffd8ce2903faf7)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
6 years agobpo-33330: Improve error handling in PyImport_Cleanup(). (GH-6564)
Miss Islington (bot) [Wed, 25 Apr 2018 18:32:52 +0000 (11:32 -0700)]
bpo-33330: Improve error handling in PyImport_Cleanup(). (GH-6564)

(cherry picked from commit e9d9494d6b2a5e0c2d48d22c7f0d5e95504b4f7e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-33280: Reorganize external Tcl/Tk references. (GH-6473)
Miss Islington (bot) [Wed, 25 Apr 2018 18:30:58 +0000 (11:30 -0700)]
bpo-33280: Reorganize external Tcl/Tk references. (GH-6473)

(cherry picked from commit 67a8f4fed3169e1b8c947c10f6e06863e399ae32)

Co-authored-by: Andrés Delfino <34587441+andresdelfino@users.noreply.github.com>
6 years agobpo-33314: Fix rendering issues in the documentation for the os module (GH-6525)...
Miss Islington (bot) [Wed, 25 Apr 2018 18:30:43 +0000 (11:30 -0700)]
bpo-33314: Fix rendering issues in the documentation for the os module (GH-6525) (GH-6597)

(cherry picked from commit d6ef6db9ff780efb2cd502a54ca208afbe84af9c)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
6 years agoMention both relevant PEPs in function annotations tutorial (GH-6304)
Miss Islington (bot) [Wed, 25 Apr 2018 18:04:49 +0000 (11:04 -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 agobpo-33128 Fix duplicated call to importlib._install_external_importers (GH-6273)
Miss Islington (bot) [Wed, 25 Apr 2018 02:48:04 +0000 (19:48 -0700)]
bpo-33128 Fix duplicated call to importlib._install_external_importers  (GH-6273)

External importers were being added in both phases of the import
system initialisation.

They're only supposed to be added in the second phase, after the
import machinery has been appropriately configured.
(cherry picked from commit 0977091dca59709864b14cfc129388f1f0de7bf7)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
6 years agobpo-33329: Fix multiprocessing regression on newer glibcs (GH-6575) (GH-6579)
Miss Islington (bot) [Mon, 23 Apr 2018 19:42:26 +0000 (12:42 -0700)]
bpo-33329: Fix multiprocessing regression on newer glibcs (GH-6575) (GH-6579)

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)

Co-authored-by: Antoine Pitrou <pitrou@free.fr>
6 years agobpo-991266: Fix quoting of Comment attribute of SimpleCookie (GH-6555)
Miss Islington (bot) [Mon, 23 Apr 2018 00:58:23 +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-33297: Mention Pillow to work with more image formats. (GH-6505)
Miss Islington (bot) [Sat, 21 Apr 2018 13:03:49 +0000 (06:03 -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 agoClarify that __path__ can't be just any value (GH-6554)
Miss Islington (bot) [Fri, 20 Apr 2018 23:45:14 +0000 (16:45 -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 agoSpelling fixes to docs, docstrings, and comments (GH-6374)
Miss Islington (bot) [Fri, 20 Apr 2018 21:00:41 +0000 (14:00 -0700)]
Spelling fixes to docs, docstrings, and comments (GH-6374)

(cherry picked from commit 61f82e0e337f971da57f8f513abfe693edf95aa5)

Co-authored-by: Ville Skyttä <ville.skytta@iki.fi>
6 years agobpo-33131: Upgrade ensurepip to bundle pip 10.0.1 (GH-6546)
Miss Islington (bot) [Fri, 20 Apr 2018 20:47:44 +0000 (13:47 -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 agobpo-33312: update Tools/gdb/libpython.py to match. (GH-6549)
Miss Islington (bot) [Fri, 20 Apr 2018 20:02:30 +0000 (13:02 -0700)]
bpo-33312: update Tools/gdb/libpython.py to match. (GH-6549)

(cherry picked from commit 53f67d401df40486fd0fb8fbcf9da725cd37290c)

6 years agobpo-33312: Fix clang ubsan out of bounds warnings in dict. (GH-6537) (GH-6543)
Miss Islington (bot) [Fri, 20 Apr 2018 17:06:21 +0000 (10:06 -0700)]
bpo-33312: Fix clang ubsan out of bounds warnings in dict. (GH-6537) (GH-6543)

Fix clang ubsan (undefined behavior sanitizer) warnings in dictobject.c by
adjusting how the internal struct _dictkeysobject shared keys structure is
declared.

This remains ABI compatible.  We get rid of the union at the end of the
struct being used for conveinence to avoid typecasting in favor of char[]
variable length array at the end of a struct. This is known to clang to be
used for variable sized objects and will not cause an undefined behavior
problem.  Similarly, char arrays do not have strict aliasing undefined
behavior when cast.

PEP-007 does not currently list variable length arrays (VLAs) as allowed
in our subset of C99.  If this turns out to be a problem, the fix to this is
to change the char `dk_indices[]` into `dk_indices[1]` and restore the
three size computation subtractions this change removes:
  `- Py_MEMBER_SIZE(PyDictKeysObject, dk_indices)`

If this works as is I'll make a separate PR to update PEP-007.
(cherry picked from commit 397f1b28c4a12e3b3ed59a89599eabc457412649)

6 years agobpo-32232: by default, Setup modules are no longer built with -DPy_BUILD_CORE (GH...
Miss Islington (bot) [Fri, 20 Apr 2018 15:39:18 +0000 (08:39 -0700)]
bpo-32232: by default, Setup modules are no longer built with -DPy_BUILD_CORE (GH-6489)

Setup modules are no longer built with -DPy_BUILD_CORE by default,
as using that flag may now require including additional internal-only header files.

Instead, only the modules that specifically need it use that setting.
(cherry picked from commit 063db62aab4041ac47798e7e48b27b2f2bef21c5)

Co-authored-by: xdegaye <xdegaye@gmail.com>
6 years agoClean up the readme text around PGO a bit. (GH-6538) (GH-6539)
Miss Islington (bot) [Thu, 19 Apr 2018 16:14:36 +0000 (09:14 -0700)]
Clean up the readme text around PGO a bit. (GH-6538) (GH-6539)

(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 06:49:15 +0000 (23:49 -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 agoUpdate What's new in 3.7 to reference preadv, pwritev and posix_spawn (GH-6524)
Miss Islington (bot) [Thu, 19 Apr 2018 05:26:41 +0000 (22:26 -0700)]
Update What's new in 3.7 to reference preadv, pwritev and posix_spawn (GH-6524)

(cherry picked from commit 9009f3e389123c5f94d4d12f1f51b0a88531c37c)

Co-authored-by: Pablo Galindo <Pablogsal@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:10:36 +0000 (22:10 -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) (#6528)
Miss Islington (bot) [Thu, 19 Apr 2018 00:15:09 +0000 (17:15 -0700)]
bpo-31583: Fix 2to3 for using with --add-suffix option (GH-3758) (#6528)

(cherry picked from commit e3a523a0fa16aec880880928303bfcbd1fb74bc2)

Co-authored-by: Denis Osipov <osipov_d@list.ru>
6 years agobpo-33283: Mention PNG as a supported format by Tcl/Tk. (GH-6479)
Miss Islington (bot) [Wed, 18 Apr 2018 18:16:46 +0000 (11:16 -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 agobpo-11594: Ensure line-endings are respected when using 2to3 (GH-6483)
Miss Islington (bot) [Tue, 17 Apr 2018 21:58:34 +0000 (14:58 -0700)]
bpo-11594: Ensure line-endings are respected when using 2to3 (GH-6483)

(cherry picked from commit c127a86e1862df88ec6f9d15b79c627fc616766e)

Co-authored-by: Aaron Ang <aaronang@users.noreply.github.com>
6 years agobpo-33205: dict: Change GROWTH_RATE to `used*3` (GH-6350)
Miss Islington (bot) [Tue, 17 Apr 2018 17:17:19 +0000 (10:17 -0700)]
bpo-33205: dict: Change GROWTH_RATE to `used*3` (GH-6350)

(cherry picked from commit 5fbc511f56688654a05b9eba23d140318bb9b2d5)

Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
6 years agoFix spelling typo (GH-6443) (GH-6507)
Miss Islington (bot) [Tue, 17 Apr 2018 15:40:48 +0000 (08:40 -0700)]
Fix spelling typo (GH-6443) (GH-6507)

(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-6509)
Miss Islington (bot) [Tue, 17 Apr 2018 15:33:48 +0000 (08:33 -0700)]
bpo-33295: Skip test using missing external site (GH-6504) (GH-6509)

`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 agofix pydoc-topics to work with Sphinx 1.7 (GH-6475)
Miss Islington (bot) [Tue, 17 Apr 2018 06:32:43 +0000 (23:32 -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-6495)
Miss Islington (bot) [Tue, 17 Apr 2018 03:35:06 +0000 (20:35 -0700)]
Revert 725476222a3c1f2f93162d75a540e6bcdeaa36fd (GH-6494) (GH-6495)

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

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
6 years agoacks += Zsolt Dollenstein (GH-6490) (GH-6492)
Miss Islington (bot) [Tue, 17 Apr 2018 00:26:25 +0000 (17:26 -0700)]
acks += Zsolt Dollenstein (GH-6490) (GH-6492)

(cherry picked from commit 2bea9476286ad8e2e87bf0415ff743b1487c5018)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
6 years agoAdd support for all string literals to lib2to3 (GH-6457) (GH-6488)
Miss Islington (bot) [Mon, 16 Apr 2018 22:16:57 +0000 (15:16 -0700)]
Add support for all string literals to lib2to3 (GH-6457) (GH-6488)

(cherry picked from commit 8f37e846646444d84daf95787f4a0fa2b2316754)

Co-authored-by: Zsolt Dollenstein <zsol.zsol@gmail.com>
6 years agobpo-31947: remove None default for names param in Enum._create_ (GH-4288)
Miss Islington (bot) [Mon, 16 Apr 2018 20:49:34 +0000 (13:49 -0700)]
bpo-31947: remove None default for names param in Enum._create_ (GH-4288)

(cherry picked from commit b8e21f12891382bc0aac5ccd13dcb4a990d65e0a)

Co-authored-by: anentropic <ego@anentropic.com>
6 years agoRemove to-be-deprecated urllib.request.urlretrieve function reference (GH-6454)
Miss Islington (bot) [Mon, 16 Apr 2018 14:16:20 +0000 (07:16 -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-33185: Improve wording and markup (GH-6477)
Miss Islington (bot) [Sun, 15 Apr 2018 13:55:10 +0000 (06:55 -0700)]
bpo-33185: Improve wording and markup (GH-6477)

Adds some working and markup fixes that I missed
in the initial commit for this issue.

(Follow-up to GH-6419)
(cherry picked from commit 1a5c4bdb6ecc6a8b19ff33bde323ab188ed60977)

Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
6 years agobpo-33185: Fix regression in pydoc CLI sys.path handling (GH-6419)
Miss Islington (bot) [Sun, 15 Apr 2018 12:17:13 +0000 (05:17 -0700)]
bpo-33185: Fix regression in pydoc CLI sys.path handling (GH-6419)

The pydoc CLI assumed -m pydoc would add the empty string
to sys.path, and hence got confused when it switched to
adding the full initial working directory instead.

This refactors the pydoc CLI path manipulation to be
more testable, and ensures it won't accidentally
remove the standard library directory containing
pydoc itself from sys.path.
(cherry picked from commit 82a948105920100ca2ec5c2340bc3890adcfe778)

Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
6 years agobpo-33184: Update Windows installer to OpenSSL 1.1.0h (GH-6463)
Miss Islington (bot) [Sat, 14 Apr 2018 00:52:02 +0000 (17:52 -0700)]
bpo-33184: Update Windows installer to OpenSSL 1.1.0h (GH-6463)

(cherry picked from commit b1dc07509f78b354e83f5f4a902f1ff80c7bb05d)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
6 years ago[3.7] bpo-33217: deprecate non-Enum lookups in Enums (GH-6392)
Ethan Furman [Thu, 12 Apr 2018 01:56:25 +0000 (18:56 -0700)]
[3.7] bpo-33217: deprecate non-Enum lookups in Enums (GH-6392)

deprecate non-Enum lookups in Enums

Lookups such as `1 in Color` and `2 in SomeFlag()` will raise TypeError
in 3.8+.

6 years agoFix error messages in argparse examples (GH-6435)
Miss Islington (bot) [Wed, 11 Apr 2018 18:58:09 +0000 (11:58 -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-33260: Regenerate token.py after removing ASYNC and AWAIT. (GH-6447)
Miss Islington (bot) [Wed, 11 Apr 2018 17:07:23 +0000 (10:07 -0700)]
bpo-33260: Regenerate token.py after removing ASYNC and AWAIT. (GH-6447)

(cherry picked from commit d08972fdb92cad6b813d22205752c97ea18df060)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-33097: Fix submit accepting callable after executor shutdown by interpreter exit...
Miss Islington (bot) [Tue, 10 Apr 2018 18:35:02 +0000 (11:35 -0700)]
bpo-33097: Fix submit accepting callable after executor shutdown by interpreter exit (GH-6144) (GH-6445)

Executors in concurrent.futures accepted tasks after executor was shutdown by interpreter exit. Tasks were left in PENDING state forever. This fix changes submit to instead raise a RuntimeError.
(cherry picked from commit c4b695f85e141f57d22d8edf7bc2c756da136918)

Co-authored-by: Mark Nemec <mrknmc@me.com>
6 years agobpo-33253: Fix xxsubtype.bench() to accept correct str signature. (GH-6439)
Miss Islington (bot) [Tue, 10 Apr 2018 06:00:57 +0000 (23:00 -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.7] bpo-31201: Clarify command to re-run failing test(s) with example (GH-6417...
Miss Islington (bot) [Mon, 9 Apr 2018 21:17:20 +0000 (14:17 -0700)]
[3.7] bpo-31201: Clarify command to re-run failing test(s) with example (GH-6417) (GH-6437)

(cherry picked from commit 0f914b5b5f6ba186afd7112fc851c97247076f70)

Co-authored-by: Aaron Ang <aaronang@users.noreply.github.com>
6 years ago[3.7] bpo-33031: Remove dead code in C implementation of OrderedDict. (GH-6120) ...
Serhiy Storchaka [Mon, 9 Apr 2018 18:46:41 +0000 (21:46 +0300)]
[3.7] bpo-33031: Remove dead code in C implementation of OrderedDict. (GH-6120) (GH-6433)

This code doesn't have effect on the final result, but causes
GCC 8 warnings and can have an undefined behavior.
(cherry picked from commit 827d49f3cf0296f1e267eae6834a977cf312cc1e)

6 years agobpo-31920: Fixed handling directories as arguments in the ``pygettext`` script. ...
Miss Islington (bot) [Mon, 9 Apr 2018 17:57:52 +0000 (10:57 -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 14:57:31 +0000 (07:57 -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 agoImprove highlighting of some code blocks. (GH-6401)
Miss Islington (bot) [Mon, 9 Apr 2018 14:56:44 +0000 (07:56 -0700)]
Improve highlighting of some code blocks. (GH-6401)

(cherry picked from commit 46936d5a71d1683dbd8ddb6d7f39aab50ecfec50)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agoUpdate docstring of tempfile._RandomNameSequence (GH-6414)
Miss Islington (bot) [Mon, 9 Apr 2018 01:01:54 +0000 (18:01 -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-6421)
Miss Islington (bot) [Sun, 8 Apr 2018 21:37:30 +0000 (14:37 -0700)]
Add a prepend() recipe to teach a chain() idiom (GH-6415) (GH-6421)

(cherry picked from commit 9265dd72e5ec1cfa5fcdb5be8ebffe1d9994bd4b)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
6 years agobpo-33201: Modernize "Extension types" doc (GH-6337) (GH-6411)
Miss Islington (bot) [Sat, 7 Apr 2018 16:27:05 +0000 (09:27 -0700)]
bpo-33201: Modernize "Extension types" doc (GH-6337) (GH-6411)

* 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)

Co-authored-by: Antoine Pitrou <pitrou@free.fr>
6 years agobpo-33184: Update macOS installer build to use OpenSSL 1.1.0h. (GH-6407) (GH-6409)
Miss Islington (bot) [Sat, 7 Apr 2018 07:02:40 +0000 (00:02 -0700)]
bpo-33184: Update macOS installer build to use OpenSSL 1.1.0h. (GH-6407) (GH-6409)

(cherry picked from commit b405752dab95fa5dc65a19d94e798844d0378c61)

Co-authored-by: Ned Deily <nad@python.org>
6 years ago[3.7] bpo-8243: Doc patch for curses.window.addstr and curses.window.addch (GH-5179...
Miss Islington (bot) [Sat, 7 Apr 2018 02:00:06 +0000 (19:00 -0700)]
[3.7] bpo-8243: Doc patch for curses.window.addstr and curses.window.addch (GH-5179) (GH-6404)

(cherry picked from commit ef5ce884a41c8553a7eff66ebace908c1dcc1f89)

Co-authored-by: Jay Crotts <crotts.jay@gmail.com>
6 years ago[3.7] bpo-33169: Remove values of `None` from sys.path_importer_cache when invalidati...
Brett Cannon [Sat, 7 Apr 2018 00:02:18 +0000 (17:02 -0700)]
[3.7] bpo-33169: Remove values of `None` from sys.path_importer_cache when invalidating caches (GH-6402) (GH-6403)

An entry of None in sys.path_importer_cache represents a negative/missing finder for a path, so clearing it out makes sense.
(cherry picked from commit 9e2be60634914f23db2ae5624e4acc9335bf5fea)

6 years ago[3.7] bpo-29673: fix gdb scripts pystack and pystackv (GH-6126) (GH-6399)
Miss Islington (bot) [Fri, 6 Apr 2018 22:14:29 +0000 (15:14 -0700)]
[3.7] bpo-29673: fix gdb scripts pystack and pystackv (GH-6126) (GH-6399)

(cherry picked from commit 3a9ccee0e5dbf7d67f5ab79f6095755969db117c)

Co-authored-by: Marcel Plch <gmarcel.plch@gmail.com>
6 years agofixed capitalization of class name (GH-6396) (GH-6397)
Miss Islington (bot) [Fri, 6 Apr 2018 12:46:05 +0000 (05:46 -0700)]
fixed capitalization of class name (GH-6396) (GH-6397)

(cherry picked from commit 1d87c7b80bf74a3030034a022a7a54ea4e3cdaff)

Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
6 years agobpo-33231: Fix potential leak in normalizestring() (GH-6386)
Miss Islington (bot) [Fri, 6 Apr 2018 07:12:38 +0000 (00:12 -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-6390)
Miss Islington (bot) [Thu, 5 Apr 2018 18:45:33 +0000 (11:45 -0700)]
bpo-33224: PEP 479 fix for difflib.mdiff() (GH-6381) (GH-6390)

6 years agobpo-33203: Ensure random.choice always raises IndexError on empty sequence (GH-6338...
Miss Islington (bot) [Thu, 5 Apr 2018 16:02:12 +0000 (09:02 -0700)]
bpo-33203: Ensure random.choice always raises IndexError on empty sequence (GH-6338) (GH-6387)

(cherry picked from commit 091e95e9004b794280ab35becec2c3e30dd5e96e)

Co-authored-by: Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de>
6 years agoClean up and enhance frozen dataclass tests. (GH-6380)
Miss Islington (bot) [Thu, 5 Apr 2018 11:12:31 +0000 (04:12 -0700)]
Clean up and enhance frozen dataclass tests. (GH-6380)

* Add a test for frozen with unhashable field value.
* Improve a comment.
(cherry picked from commit 74940913d26d9f94b8572eca794369841fa6d9b6)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
6 years agobpo-32873: Remove a name hack for generic aliases in typing module (GH-6376)
Miss Islington (bot) [Thu, 5 Apr 2018 00:46:40 +0000 (17:46 -0700)]
bpo-32873: Remove a name hack for generic aliases in typing module (GH-6376)

This removes a hack and replaces it with a proper
mapping {'list': 'List', 'dict': 'Dict', ...}.
(cherry picked from commit 2a363d2930e29ec6d8a774973ed5a4965f881f5f)

Co-authored-by: Ivan Levkivskyi <levkivskyi@gmail.com>
6 years agoCall super in Generic.__init_subclass__ (GH-6356)
Miss Islington (bot) [Wed, 4 Apr 2018 16:51:34 +0000 (09:51 -0700)]
Call super in Generic.__init_subclass__ (GH-6356)

(cherry picked from commit ee566fe526f3d069aa313578ee81ca6cbc25ff52)

Co-authored-by: Ivan Levkivskyi <levkivskyi@gmail.com>
6 years agobpo-29922: Add more tests for error messages in 'async with'. (GH-6370)
Miss Islington (bot) [Wed, 4 Apr 2018 16:28:46 +0000 (09:28 -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:00 +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-33195: Doc: Deprecate Py_UNICODE in c-api/arg (GH-6329)
Miss Islington (bot) [Wed, 4 Apr 2018 05:13:38 +0000 (22:13 -0700)]
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 42ec190761a2e8503aaa06f0bfaaabe98749179b)

Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
6 years agobpo-32337: Update documentats about dict order (GH-4973)
Miss Islington (bot) [Wed, 4 Apr 2018 05:01:46 +0000 (22:01 -0700)]
bpo-32337: Update documentats about dict order (GH-4973)

(cherry picked from commit dfbbbf16f9aab82330c634913441b5ac73267d9c)

Co-authored-by: hui shang <shangdahao@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 21:35:11 +0000 (14:35 -0700)]
bpo-33209: End framing at the end of C implementation of pickle.Pickler.dump(). (GH-6366)

(cherry picked from commit c869529ea9fbed574d34cf7ac139ca3f81b62ef0)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-32360: Remove object_pairs_hook=OrderedDict examples (GH-5001)
Miss Islington (bot) [Tue, 3 Apr 2018 04:31:27 +0000 (21:31 -0700)]
bpo-32360: Remove object_pairs_hook=OrderedDict examples (GH-5001)

(cherry picked from commit 629338f1404ea9cd75e4fb0389a2fbe1b589de43)

Co-authored-by: INADA Naoki <methane@users.noreply.github.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:33:38 +0000 (20:33 -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:00:26 +0000 (20:00 -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:03:52 +0000 (09:03 -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:09:18 +0000 (23:09 -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 agobpo-20104: Add os.posix_spawn documentation. (GH-6334)
Miss Islington (bot) [Sun, 1 Apr 2018 19:13:37 +0000 (12:13 -0700)]
bpo-20104: Add os.posix_spawn documentation. (GH-6334)

(cherry picked from commit 79760ed256987cead08d668b95675afba6b3760f)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
6 years agoAllow dynamic creation of generic dataclasses (GH-6319) (GH-6320)
Miss Islington (bot) [Sun, 1 Apr 2018 11:33:13 +0000 (04:33 -0700)]
Allow dynamic creation of generic dataclasses (GH-6319) (GH-6320)

(cherry picked from commit 5a7092de1226a95a50f0f384eea8ddb288959249)

Co-authored-by: Ivan Levkivskyi <levkivskyi@gmail.com>
6 years agobpo-33132: Fix more reference counting issues in the compiler. (GH-6323)
Miss Islington (bot) [Sat, 31 Mar 2018 23:41:28 +0000 (16:41 -0700)]
bpo-33132: Fix more reference counting issues in the compiler. (GH-6323)

(cherry picked from commit aa8e51f5ebb2a71c76059f050de01fc3c985376a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agoFix socket type in DatagramHandler documentation: TCP -> UDP (GH-6272)
Miss Islington (bot) [Fri, 30 Mar 2018 07:48:45 +0000 (00:48 -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 agobpo-33182: Fix pointer types in _testembed (GH-6310) (GH-6311)
Miss Islington (bot) [Fri, 30 Mar 2018 06:24:03 +0000 (23:24 -0700)]
bpo-33182: Fix pointer types in _testembed (GH-6310) (GH-6311)

(cherry picked from commit 69f5c73311a61b05485b19626935bf240ad31c5b)

Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
6 years agobpo-33175: dataclasses should look up __set_name__ on class, not instance (GH-6305)
Miss Islington (bot) [Thu, 29 Mar 2018 15:32:36 +0000 (08:32 -0700)]
bpo-33175: dataclasses should look up __set_name__ on class, not instance (GH-6305)

(cherry picked from commit 521995205a2cb6b504fe0e39af22a81f785350a3)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
6 years agobump to 3.7.0b3+
Ned Deily [Thu, 29 Mar 2018 12:57:23 +0000 (08:57 -0400)]
bump to 3.7.0b3+

6 years ago3.7.0b3 v3.7.0b3
Ned Deily [Thu, 29 Mar 2018 11:57:55 +0000 (07:57 -0400)]
3.7.0b3

6 years agobpo-32726: macOS 10.6+ installer now builds Tcl/TK 8.6 (GH-6308)
Ned Deily [Thu, 29 Mar 2018 11:41:11 +0000 (07:41 -0400)]
bpo-32726: macOS 10.6+ installer now builds Tcl/TK 8.6 (GH-6308)

Build and link with private copy of Tcl/Tk 8.6 for the macOS 10.6+
installer. The 10.9+ installer variant already does this.  This means that
the Python 3.7 provided by the python.org macOS installers no longer need or
use any external versions of Tcl/Tk, either system-provided or user-
installed, such as ActiveTcl.

6 years agoFix typos '.::' should typically just be '::'. (GH-6165) (GH-6300)
Miss Islington (bot) [Thu, 29 Mar 2018 08:34:44 +0000 (01:34 -0700)]
Fix typos '.::' should typically just be '::'. (GH-6165) (GH-6300)

(cherry picked from commit 78553138be3b38d361bded8e641a2a4fd65a9d16)

Co-authored-by: Julien Palard <julien@palard.fr>
6 years agoFIX documentation and NEWS of ThreadedHTTPServer. (GH-6207) (GH-6302)
Miss Islington (bot) [Thu, 29 Mar 2018 08:33:47 +0000 (01:33 -0700)]
FIX documentation and NEWS of ThreadedHTTPServer. (GH-6207) (GH-6302)

(cherry picked from commit 79c3bab35cce55e6d175aff96a845bc6d932b203)

Co-authored-by: Julien Palard <julien@palard.fr>
6 years ago[3.7] Fix duplicating words words. (GH-6296) (GH-6297)
Serhiy Storchaka [Wed, 28 Mar 2018 20:05:24 +0000 (23:05 +0300)]
[3.7] Fix duplicating words words. (GH-6296) (GH-6297)

Most of them have been added in 3.7.
(cherry picked from commit bac2d5ba30339298db7d4caa9c8cd31d807cf081)

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

(cherry picked from commit aa50bf08e64f49d57917ab0b1aadf4308a3168a6)

Co-authored-by: Antoine Pitrou <pitrou@free.fr>
6 years agos/the the/the/ (GH-6287)
Miss Islington (bot) [Wed, 28 Mar 2018 13:23:32 +0000 (06:23 -0700)]
s/the the/the/ (GH-6287)

(cherry picked from commit 40a536be5337d3723285d597e2906394b26816a5)

Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
6 years ago[3.7] bpo-33163: Upgrade pip to 9.0.3 and setuptools to v39.0.1. (GH-6283)
Miss Islington (bot) [Wed, 28 Mar 2018 08:49:24 +0000 (01:49 -0700)]
[3.7] bpo-33163: Upgrade pip to 9.0.3 and setuptools to v39.0.1. (GH-6283)

(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-6280)
Miss Islington (bot) [Wed, 28 Mar 2018 08:16:23 +0000 (01:16 -0700)]
bpo-32726: Do not force IDLE.app to launch in 32-bit mode. (GH-6280)

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:39:19 +0000 (23:39 -0700)]
bpo-32872: Avoid regrtest compatibility issue with namespace packages. (GH-6276) (#6277)

(cherry picked from commit e52ac045972a4f75d7f52e4ee0d6de128259134d)

Co-authored-by: Ned Deily <nad@python.org>
6 years agoFix senfile typo (GH-6265) (#6274)
Miss Islington (bot) [Wed, 28 Mar 2018 01:34:15 +0000 (18:34 -0700)]
Fix senfile typo (GH-6265) (#6274)

* Also in docs
(cherry picked from commit 65a34709f60711f7c46031d4c6c420f567bc790a)

Co-authored-by: Sam Dunster <me@sdunster.com>
6 years agobpo-32517: re-enable test_read_pty_output on macOS (GH-6112)
Ned Deily [Tue, 27 Mar 2018 21:17:28 +0000 (17:17 -0400)]
bpo-32517: re-enable test_read_pty_output on macOS (GH-6112)

6 years agobpo-33151: Handle submodule resources (GH-6268) (GH-6270)
Miss Islington (bot) [Tue, 27 Mar 2018 17:25:28 +0000 (10:25 -0700)]
bpo-33151: Handle submodule resources (GH-6268) (GH-6270)

(cherry picked from commit 30e507dff465a31901d87df791a2bac40dc88530)

Co-authored-by: Barry Warsaw <barry@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:23:34 +0000 (19:23 -0700)]
bpo-27212: Modify islice recipe to consume initial values preceding start (GH-6195) (#GH-6266)

(cherry picked from commit da1734c58d2f97387ccc9676074717d38b044128)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
6 years agobpo-32873: Treat type variables and special typing forms as immutable by copy and...
Miss Islington (bot) [Mon, 26 Mar 2018 22:29:06 +0000 (15:29 -0700)]
bpo-32873: Treat type variables and special typing forms as immutable by copy and pickle (GH-6216)

This also fixes python/typingGH-512
This also fixes python/typingGH-511

As was discussed in both issues, some typing forms deserve to be treated
as immutable by copy and pickle modules, so that:
* copy(X) is X
* deepcopy(X) is X
* loads(dumps(X)) is X  GH- pickled by reference

This PR adds such behaviour to:
* Type variables
* Special forms like Union, Any, ClassVar
* Unsubscripted generic aliases to containers like List, Mapping, Iterable

This not only resolves inconsistencies mentioned in the issues, but also
improves backwards compatibility with previous versions of Python
(including 3.6).

Note that this requires some dances with __module__ for type variables
(similar to NamedTuple) because the class TypeVar itself is define in typing,
while type variables should get module where they were defined.

https://bugs.python.org/issue32873
(cherry picked from commit 834940375ae88bc95794226dd8eff1f25fba1cf9)

Co-authored-by: Ivan Levkivskyi <levkivskyi@gmail.com>