]> granicus.if.org Git - python/log
python
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>
6 years agobpo-32374: m_traverse may be called with m_state=NULL (GH-5140)
Miss Islington (bot) [Sat, 17 Mar 2018 06:29:30 +0000 (23:29 -0700)]
bpo-32374:  m_traverse may be called with m_state=NULL (GH-5140)

Multi-phase initialized modules allow m_traverse to be called while the
module is still being initialized, so module authors may need to account
for that.
(cherry picked from commit c2b0b12d1a137ada1023ab7c10b8d9a0249d95f9)

Co-authored-by: Marcel Plch <gmarcel.plch@gmail.com>
6 years ago[3.6] bpo-32885: Tools/scripts/pathfix.py: Add -n option for no backup~ (GH-5772...
Miss Islington (bot) [Wed, 14 Mar 2018 17:52:22 +0000 (10:52 -0700)]
[3.6] bpo-32885: Tools/scripts/pathfix.py: Add -n option for no backup~ (GH-5772) (#6104)

Creating backup files with ~ suffix can be undesirable in some environment,
such as when building RPM packages. Instead of requiring the user to remove
those files manually, option -n was added, that simply disables this feature.

-n was selected because 2to3 has the same option with this behavior.
(cherry picked from commit 5affd5c29eb1493cb31ef3cfdde15538ac134689)

Co-authored-by: Miro Hrončok <miro@hroncok.cz>
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 agoon to 3.6.6
Ned Deily [Wed, 14 Mar 2018 03:38:19 +0000 (23:38 -0400)]
on to 3.6.6

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

6 years ago3.6.5rc1 v3.6.5rc1
Ned Deily [Wed, 14 Mar 2018 01:21:36 +0000 (21:21 -0400)]
3.6.5rc1

6 years agobpo-32726: macOS installer changes for 3.6.5
Ned Deily [Tue, 13 Mar 2018 06:51:54 +0000 (02:51 -0400)]
bpo-32726: macOS installer changes for 3.6.5

Backport the new 10.9+ installer variant from 3.7.  This variant features
more modern options; like 64-bit only (Apple is deprecating 32-bit support
in future macOS releases); a built-in version of Tcl/Tk 8.6.8; built with
clang rather than gcc-4.2.  For 3.6.5, the 10.9+ variant will be offered
as an additional alternative to the traditional 10.6+ variant in earlier
3.6.x releases.  Binary extension modules (including wheels) built for
earlier versions of 3.6.x with the 10.6 variant should continue to work
with either 3.6.5 variant without recompilation.

In addition, both installer variants have updated 3rd-party libraries:
OpenSSL 1.0.2m -> 1.0.2n
XZ 5.2.2 -> 5.2.3
SQLite 3.21.0 -> 3.22.0

Also the 10.6 variant now sets CC=gcc instead of CC=gcc-4.2 and does not
search for the outdated 10.6 SDK.  The variant is built with the same
compiler as before.  As before, for extension module builds, the CC can
be overridden with the CC env variable and an SDK can be specified
with the SDKROOT env variable (see man xcrun).  These minor changes
should be transparent to nearly all users.

6 years agolib2to3: Add more tests (GH-6101) (#6109)
Miss Islington (bot) [Tue, 13 Mar 2018 18:47:32 +0000 (11:47 -0700)]
lib2to3: Add more tests (GH-6101) (#6109)

(cherry picked from commit 74f56878cdee18d485e4f8b485d55ce62e38f4c9)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
6 years ago[3.7] bpo-17288: Prevent jumps from 'return' and 'exception' trace events. (GH-5928)
Miss Islington (bot) [Tue, 13 Mar 2018 10:12:16 +0000 (03:12 -0700)]
[3.7] bpo-17288: Prevent jumps from 'return' and 'exception' trace events. (GH-5928)

(cherry picked from commit e32bbaf376a09c149fa7c7f2919d7c9ce4e2a055)

Co-authored-by: xdegaye <xdegaye@gmail.com>
6 years agobpo-33064: lib2to3: support trailing comma after *args and **kwargs (GH-6096) (#6098)
Miss Islington (bot) [Tue, 13 Mar 2018 08:32:28 +0000 (01:32 -0700)]
bpo-33064: lib2to3: support trailing comma after *args and **kwargs (GH-6096) (#6098)

New tests also added.

I also made the comments in line with the builtin Grammar/Grammar. PEP 306 was
withdrawn, Kees Blom's railroad program has been lost to the sands of time for
at least 16 years now (I found a python-dev post from people looking for it).
(cherry picked from commit b51f5de71163f096d2d5229ede5379cdb284f651)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
6 years ago[3.6] bpo-31804: Fix multiprocessing.Process with broken standard streams (GH-6079...
Antoine Pitrou [Sun, 11 Mar 2018 19:09:20 +0000 (20:09 +0100)]
[3.6] bpo-31804: Fix multiprocessing.Process with broken standard streams (GH-6079) (GH-6081)

In some conditions the standard streams will be None or closed in the child process (for example if using "pythonw" instead of "python" on Windows).  Avoid failing with a non-0 exit code in those conditions.

Report and initial patch by poxthegreat..
(cherry picked from commit e756f66c83786ee82f5f7d45931ae50a6931dd7f)

6 years ago[3.6] bpo-33026: Fix jumping out of "with" block by setting f_lineno. (GH-6026)....
Miss Islington (bot) [Sun, 11 Mar 2018 08:21:13 +0000 (00:21 -0800)]
[3.6] bpo-33026: Fix jumping out of "with" block by setting f_lineno. (GH-6026). (GH-6074) (GH-6075)

(cherry picked from commit 26c9f565d016db21257a60d29ab2c99383dd5ac7)
(cherry picked from commit 04aadf23eac51fec2e436c5960c1362bbb7d03de)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-33045: Fix typos in SSL documentation (GH-6065)
Miss Islington (bot) [Sun, 11 Mar 2018 01:26:01 +0000 (17:26 -0800)]
bpo-33045: Fix typos in SSL documentation (GH-6065)

(cherry picked from commit 9cf8c42f3231d3f066670d087a997bd1278482a0)

Co-authored-by: Matt Eaton <agnosticdev@gmail.com>
6 years ago[3.7] bpo-33041: Add missed error checks when compile "async for" (GH-6053) (GH-6060)
Miss Islington (bot) [Sat, 10 Mar 2018 19:32:49 +0000 (11:32 -0800)]
[3.7] bpo-33041: Add missed error checks when compile "async for" (GH-6053) (GH-6060)

and remove redundant code.
(cherry picked from commit 67ee07795bcd84b679c000780212d4d81a1490a3)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit 9e94c0d3c78d1bc582c865240ed9353fe9689b2a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years ago[3.6] bpo-33037: Skip sending/receiving after SSL transport closing (GH-6044) (GH...
Andrew Svetlov [Sat, 10 Mar 2018 17:09:07 +0000 (19:09 +0200)]
[3.6] bpo-33037: Skip sending/receiving after SSL transport closing (GH-6044) (GH-6058)

* Skip write()/data_received() if sslpipe is destroyed.
(cherry picked from commit 5e80a71ab67045fecec46573a1892e240b569ace)

6 years agobpo-26701: Improve documentation for the rounding special methods. (GH-6054)
Miss Islington (bot) [Sat, 10 Mar 2018 15:55:13 +0000 (07:55 -0800)]
bpo-26701: Improve documentation for the rounding special methods. (GH-6054)

(cherry picked from commit 496431ffb6c29719332bf2af773349e8dd85e45a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-26701: Add documentation for __trunc__ (GH-6050)
Miss Islington (bot) [Sat, 10 Mar 2018 15:10:45 +0000 (07:10 -0800)]
bpo-26701: Add documentation for __trunc__ (GH-6050)

`int` fails back to `__trunc__` is `__int__` isn't defined, so cover
that in the docs.
(cherry picked from commit 308eab979d153f1ab934383dc08bc4546ced8b6c)

Co-authored-by: Eric Appelt <eric.appelt@gmail.com>
6 years agoWarn that compile() can crash when compiling to an AST object (GH-6043) (GH-6046)
Miss Islington (bot) [Fri, 9 Mar 2018 21:40:39 +0000 (13:40 -0800)]
Warn that compile() can crash when compiling to an AST object (GH-6043) (GH-6046)

(cherry picked from commit f7a6ff6fcab32a53f262ba3f8a072c27afc330d7)

Co-authored-by: Brett Cannon <brettcannon@users.noreply.github.com>
6 years agobpo-32758: Warn that ast.parse() and ast.literal_eval() can segfault the interpreter...
Miss Islington (bot) [Fri, 9 Mar 2018 20:35:14 +0000 (12:35 -0800)]
bpo-32758: Warn that ast.parse() and ast.literal_eval() can segfault the interpreter (GH-5960) (GH-6042)

(cherry picked from commit 7a7f100eb352d08938ee0f5ba59c18f56dc4a7b5)

Co-authored-by: Brett Cannon <brettcannon@users.noreply.github.com>
6 years agocontrolflow: Use full example for "5 through 9" (GH-5907)
Miss Islington (bot) [Fri, 9 Mar 2018 20:11:30 +0000 (12:11 -0800)]
controlflow: Use full example for "5 through 9" (GH-5907)

Replace example result of "5 through 9" with complete list: "5, 6, 7, 8, 9".
This format is more consistent with the surrounding examples.
(cherry picked from commit 83d7062d2dc5eacfef578e072bca4747c346fdae)

Co-authored-by: Steven M. Vascellaro <S.Vascellaro@gmail.com>
6 years agobpo-32517: fix test_read_pty_output() hangs on macOS 10.13.2+ (GH-6037)
Nathan Henrie [Fri, 9 Mar 2018 17:43:45 +0000 (10:43 -0700)]
bpo-32517: fix test_read_pty_output() hangs on macOS 10.13.2+ (GH-6037)

test_asyncio hangs indefinitely on macOS 10.13.2+ on `read_pty_output()`
using the KqueueSelector. Closing `proto.transport` (as is done in
`write_pty_output()`) seems to fix it.

6 years agobpo-33016: Fix potential use of uninitialized memory in nt._getfinalpathname (GH...
Steve Dower [Thu, 8 Mar 2018 22:50:30 +0000 (14:50 -0800)]
bpo-33016: Fix potential use of uninitialized memory in nt._getfinalpathname (GH-6032)

6 years ago[3.6] bpo-30353: Fix pass by value for structs on 64-bit Cygwin/MinGW (GH-1559) ...
Miss Islington (bot) [Thu, 8 Mar 2018 15:28:53 +0000 (07:28 -0800)]
[3.6] bpo-30353: Fix pass by value for structs on 64-bit Cygwin/MinGW (GH-1559) (GH-5954)

(cherry picked from commit 9ba3aa4d02a110d1a1ea464a8aff3be7dd9c63c3)

Co-authored-by: Erik Bray <erik.m.bray@gmail.com>
6 years agoFix some ipaddress documentation errors (GH-6021)
Miss Islington (bot) [Thu, 8 Mar 2018 04:41:27 +0000 (20:41 -0800)]
Fix some ipaddress documentation errors (GH-6021)

* fix a typo: documention -> documentation
* fix the type of IPv?Network.hostmask
* add documentation about IPv?Network.netmask
* fix IPv6Network constructor doc that extended netmasks are not supported
(cherry picked from commit e405096ea91f516d411095b6fea4eec9668eac88)

Co-authored-by: Xiang Zhang <angwerzx@126.com>
6 years agobpo-32969: Expose some missing constants in zlib and fix the doc (GH-5988)
Miss Islington (bot) [Wed, 7 Mar 2018 05:46:10 +0000 (21:46 -0800)]
bpo-32969: Expose some missing constants in zlib and fix the doc (GH-5988)

(cherry picked from commit bc3f2289b9007396bfb7f986bee477b6176c1822)

Co-authored-by: Xiang Zhang <angwerzx@126.com>
6 years agobpo-33009: Fix inspect.signature() for single-parameter partialmethods. (GH-6004)
Miss Islington (bot) [Tue, 6 Mar 2018 18:48:04 +0000 (10:48 -0800)]
bpo-33009: Fix inspect.signature() for single-parameter partialmethods. (GH-6004)

(cherry picked from commit 8a387219bdfb6ee34928d6168ac42ca559f11c9a)

Co-authored-by: Yury Selivanov <yury@magic.io>
6 years ago[3.6] bpo-33001: Prevent buffer overrun in os.symlink (GH-5989) (GH-5990)
Steve Dower [Mon, 5 Mar 2018 22:26:28 +0000 (14:26 -0800)]
[3.6] bpo-33001: Prevent buffer overrun in os.symlink (GH-5989) (GH-5990)

6 years agobpo-32984: IDLE - set __file__ for startup files (GH-5981)
Miss Islington (bot) [Mon, 5 Mar 2018 19:23:08 +0000 (11:23 -0800)]
bpo-32984: IDLE - set __file__ for startup files (GH-5981)

Like Python, IDLE optionally runs one startup file in the Shell window
before presenting the first interactive input prompt.  For IDLE,
option -s runs a file named in environmental variable IDLESTARTUP or
PYTHONSTARTUP; -r file runs file.  Python sets __file__ to the startup
file name before running the file and unsets it before the first
prompt.  IDLE now does the same when run normally, without the -n
option.
(cherry picked from commit 22c82be5df70c3d51e3f89b54fe1d4fb84728c1e)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-32857: Raise error when tkinter after_cancel() is called with None. (GH-5701)
Miss Islington (bot) [Sun, 4 Mar 2018 11:42:41 +0000 (03:42 -0800)]
bpo-32857: Raise error when tkinter after_cancel() is called with None. (GH-5701)

(cherry picked from commit 74382a3f175ac285cc924a73fd758e8dc3cc41bb)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
6 years ago[3.6] bpo-32981: Fix catastrophic backtracking vulns (GH-5955)
Benjamin Peterson [Sun, 4 Mar 2018 06:59:12 +0000 (22:59 -0800)]
[3.6] bpo-32981: Fix catastrophic backtracking vulns (GH-5955)

* Prevent low-grade poplib REDOS (CVE-2018-1060)

The regex to test a mail server's timestamp is susceptible to
catastrophic backtracking on long evil responses from the server.

Happily, the maximum length of malicious inputs is 2K thanks
to a limit introduced in the fix for CVE-2013-1752.

A 2KB evil response from the mail server would result in small slowdowns
(milliseconds vs. microseconds) accumulated over many apop calls.
This is a potential DOS vector via accumulated slowdowns.

Replace it with a similar non-vulnerable regex.

The new regex is RFC compliant.
The old regex was non-compliant in edge cases.

* Prevent difflib REDOS (CVE-2018-1061)

The default regex for IS_LINE_JUNK is susceptible to
catastrophic backtracking.
This is a potential DOS vector.

Replace it with an equivalent non-vulnerable regex.

Also introduce unit and REDOS tests for difflib.

Co-authored-by: Tim Peters <tim.peters@gmail.com>
Co-authored-by: Christian Heimes <christian@python.org>.
(cherry picked from commit 0e6c8ee2358a2e23117501826c008842acb835ac)

6 years agoFix missing coroutine declaration in the asyncio documentation. (GH-5964)
Miss Islington (bot) [Sat, 3 Mar 2018 21:23:31 +0000 (13:23 -0800)]
Fix missing coroutine declaration in the asyncio documentation. (GH-5964)

(cherry picked from commit 13cfd57dcf58485d6242fd8118c6ea4b10e29aab)

Co-authored-by: Joongi Kim <me@daybreaker.info>
6 years ago[3.6] bpo-32964: Reuse a testing implementation of the path protocol in tests. (GH...
Serhiy Storchaka [Sat, 3 Mar 2018 12:19:29 +0000 (14:19 +0200)]
[3.6] bpo-32964: Reuse a testing implementation of the path protocol in tests. (GH-5930). (GH-5958)

(cherry picked from commit b21d155f57d284aecf9092a9bd24258293965c2f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-32903: Fix a memory leak in os.chdir() on Windows (GH-5801) (#5946)
Miss Islington (bot) [Thu, 1 Mar 2018 10:28:20 +0000 (02:28 -0800)]
bpo-32903: Fix a memory leak in os.chdir() on Windows (GH-5801) (#5946)

(cherry picked from commit 3e197c7a6740d564ad52fb7901c07d5ff49460f5)

Co-authored-by: Alexey Izbyshev <izbyshev@users.noreply.github.com>
6 years agobpo-32940: IDLE: Simplify StringTranslatePseudoMapping in pyparse (GH-5862)
Miss Islington (bot) [Wed, 28 Feb 2018 23:12:15 +0000 (15:12 -0800)]
bpo-32940: IDLE: Simplify StringTranslatePseudoMapping in pyparse (GH-5862)

The new code also runs faster.
(cherry picked from commit f0daa880a405c8de6743e44fa46006754aa145c9)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
6 years agobpo-30928: Update idlelib/NEWS.txt, possibly for 3.7.0b2 (GH-5932)
Miss Islington (bot) [Wed, 28 Feb 2018 00:31:25 +0000 (16:31 -0800)]
bpo-30928:  Update idlelib/NEWS.txt, possibly for 3.7.0b2  (GH-5932)

(cherry picked from commit 0954c9e9c8fbea452f56120df592f2061d3209c7)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years ago[3.6] bpo-32922: dbm.open() now encodes filename with the filesystem encoding. (GH...
Serhiy Storchaka [Tue, 27 Feb 2018 01:39:53 +0000 (03:39 +0200)]
[3.6] bpo-32922: dbm.open() now encodes filename with the filesystem encoding. (GH-5832). (GH-5906)

(cherry picked from commit 6f600ff1734ca2fdcdd37a809adf8130f0d8cc4e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-32713: Fix tarfile.itn for large/negative float values. (GH-5434)
Miss Islington (bot) [Tue, 27 Feb 2018 01:11:01 +0000 (17:11 -0800)]
bpo-32713: Fix tarfile.itn for large/negative float values. (GH-5434)

(cherry picked from commit 72d9b2be36f091793ae7ffc5ad751f040c6e6ad3)

Co-authored-by: Joffrey F <f.joffrey@gmail.com>
6 years agobpo-32222: Fix pygettext skipping docstrings for funcs with arg typehints (GH-4745)
Miss Islington (bot) [Mon, 26 Feb 2018 23:59:55 +0000 (15:59 -0800)]
bpo-32222: Fix pygettext skipping docstrings for funcs with arg typehints (GH-4745)

(cherry picked from commit eee72d4778a5513038edd5236cdd87ccce2bc60a)

Co-authored-by: Tobotimus <Tobotimus@users.noreply.github.com>
6 years agoFix _socket module compilation on Cygwin. (GH-4137) (GH-4145)
Miss Islington (bot) [Mon, 26 Feb 2018 20:24:18 +0000 (12:24 -0800)]
Fix _socket module compilation on Cygwin. (GH-4137) (GH-4145)

(cherry picked from commit 63ae04461fb0cc93ca57cd151103a8dd295581d6)

6 years agoRevert "[3.6] bpo-32303 - Consistency fixes for namespace loaders (GH-5481) (#5504...
Barry Warsaw [Mon, 26 Feb 2018 19:23:24 +0000 (11:23 -0800)]
Revert "[3.6] bpo-32303 - Consistency fixes for namespace loaders (GH-5481) (#5504)" (#5911)

This reverts commit a71397fb6603d0fe673acd7765c74699cd28fe7b.

6 years ago[3.6] bpo-32394: Remove some TCP options on older version Windows. (GH-5585)
animalize [Mon, 26 Feb 2018 18:13:51 +0000 (02:13 +0800)]
[3.6] bpo-32394: Remove some TCP options on older version Windows. (GH-5585)

6 years agobpo-18533: Avoid RecursionError from repr() of recursive dictview (GH-4823)
Miss Islington (bot) [Mon, 26 Feb 2018 14:42:00 +0000 (06:42 -0800)]
bpo-18533: Avoid RecursionError from repr() of recursive dictview (GH-4823)

dictview_repr(): Use a Py_ReprEnter() / Py_ReprLeave() pair to check
for recursion, and produce "..." if so.

test_recursive_repr(): Check for the string rather than a
RecursionError.  (Test cannot be any tighter as contents are
implementation-dependent.)

test_deeply_nested_repr(): Add new test, replacing the original
test_recursive_repr().  It checks that a RecursionError is raised in
the case of a non-recursive but deeply nested structure.  (Very
similar to what test_repr_deep() in test/test_dict.py does for a
normal dict.)

OrderedDictTests: Add new test case, to test behavior on OrderedDict
instances containing their own values() or items().
(cherry picked from commit d7773d92bd11640a8c950d6c36a9cef1cee36f96)

6 years agobpo-31454: Include information about "import X as Y" in Modules tutorial (GH-4041)
Miss Islington (bot) [Sun, 25 Feb 2018 19:33:14 +0000 (11:33 -0800)]
bpo-31454: Include information about "import X as Y" in Modules tutorial (GH-4041)

(cherry picked from commit fbee88244e8921afdb29fde51a9a010a8ae18277)

Co-authored-by: Mario Corchero <mariocj89@gmail.com>
6 years agobpo-25059: Clarify the print separator usage in tutorial (GH-5879)
Miss Islington (bot) [Sun, 25 Feb 2018 19:21:15 +0000 (11:21 -0800)]
bpo-25059: Clarify the print separator usage in tutorial (GH-5879)

By default `print` adds spaces between its arguments.
(cherry picked from commit 84c4b0cc67ceb4b70842b78c718b6e8214874d6a)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
6 years agoDelete a broken threading.local example (GH-5870)
Miss Islington (bot) [Sun, 25 Feb 2018 15:56:56 +0000 (07:56 -0800)]
Delete a broken threading.local example (GH-5870)

This code never did anything correct or useful. The class attribute will never be affected, and the condition will never be true.
(cherry picked from commit 5fb632e83136399bad9427ee23ec8b771695290a)

Co-authored-by: Aaron Gallagher <habnabit@users.noreply.github.com>
6 years ago[3.6] bpo-30622: Fix NPN for OpenSSL 1.1.1-pre1 (GH-5876) (#5881)
Christian Heimes [Sun, 25 Feb 2018 13:29:00 +0000 (14:29 +0100)]
[3.6] bpo-30622: Fix NPN for OpenSSL 1.1.1-pre1 (GH-5876) (#5881)

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

Co-authored-by: Christian Heimes <christian@python.org>
6 years ago[3.6] bpo-32647: Link ctypes extension with libdl. (GH-5550) (#5875)
Miss Islington (bot) [Sun, 25 Feb 2018 12:07:36 +0000 (04:07 -0800)]
[3.6] bpo-32647: Link ctypes extension with libdl. (GH-5550) (#5875)

The ctypes module used to depend on indirect linking for dlopen. The shared
extension is now explicitly linked against libdl on platforms with dl.

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

Co-authored-by: Christian Heimes <christian@python.org>
6 years ago[3.6] bpo-30622: Improve NPN support detection (GH-5859) (#5861)
Christian Heimes [Sun, 25 Feb 2018 09:20:47 +0000 (10:20 +0100)]
[3.6] bpo-30622: Improve NPN support detection (GH-5859) (#5861)

The ssl module now detects missing NPN support in LibreSSL.

Co-Authored-By: Bernard Spil <brnrd@FreeBSD.org>
Signed-off-by: Christian Heimes <christian@python.org>.
(cherry picked from commit 6cdb7954b0a578d899e4b78b868ea59eef08480a)

Co-authored-by: Christian Heimes <christian@python.org>
6 years agobpo-32185: Don't send IP in SNI TLS extension (#5865)
Christian Heimes [Sun, 25 Feb 2018 08:47:02 +0000 (09:47 +0100)]
bpo-32185: Don't send IP in SNI TLS extension (#5865)

The SSL module no longer sends IP addresses in SNI TLS extension on
platforms with OpenSSL 1.0.2+ or inet_pton.

Signed-off-by: Christian Heimes <christian@python.org>
6 years agobpo-17232: Clarify docs for -O and -OO command line options (GH-5839)
Miss Islington (bot) [Sun, 25 Feb 2018 03:46:16 +0000 (19:46 -0800)]
bpo-17232: Clarify docs for -O and -OO command line options (GH-5839)

The 'optimization' is for space in the executable file, not for run time.
(cherry picked from commit 186b606d8a2ea4fd51b7286813302c8e8c7006cc)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
6 years agobpo-31518: Change TLS protocol for Debian (#3660)
Christian Heimes [Sat, 24 Feb 2018 23:45:24 +0000 (00:45 +0100)]
bpo-31518: Change TLS protocol for Debian (#3660)

Debian Unstable has disabled TLS 1.0 and 1.1 for SSLv23_METHOD(). Change
TLS/SSL protocol of some tests to PROTOCOL_TLS or PROTOCOL_TLSv1_2 to
make them pass on Debian.

Signed-off-by: Christian Heimes <christian@python.org>
6 years agobpo-31966: Fixed WindowsConsoleIO.write() for writing empty data. (GH-5754)
Miss Islington (bot) [Sat, 24 Feb 2018 17:43:05 +0000 (09:43 -0800)]
bpo-31966: Fixed WindowsConsoleIO.write() for writing empty data. (GH-5754)

(cherry picked from commit 42c35d9c0c8175332f50fbe034a001fe52f057b9)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-32916: IDLE: Change `str` to `code` in pyparse (GH-5830)
Miss Islington (bot) [Sat, 24 Feb 2018 03:16:00 +0000 (19:16 -0800)]
bpo-32916: IDLE: Change `str` to `code` in pyparse (GH-5830)

Adjust tests and user modules to match.
(cherry picked from commit c29c03a34a9f3c82704b66f323ce5ea9dc89c8af)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
6 years agobpo-32923: Unittest doc: replace `whilst` with `while` (GH-5833)
Miss Islington (bot) [Fri, 23 Feb 2018 18:22:27 +0000 (10:22 -0800)]
bpo-32923: Unittest doc: replace `whilst` with `while` (GH-5833)

`whilst` and `while` are both english words, `whilst` is not as commonly used.
This can be confusing to readers whose primary language is not english.
(cherry picked from commit 98f42aac23f3863973cb6e9964c5212cfd3a1d98)

Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
6 years ago[3.6] bpo-30028: make test.support.temp_cwd() fork-safe (GH-1066) (GH-5826)
Anselm Kruis [Fri, 23 Feb 2018 16:27:54 +0000 (17:27 +0100)]
[3.6] bpo-30028: make test.support.temp_cwd() fork-safe (GH-1066) (GH-5826)

Make test.support.temp_cwd() fork-safe. The context manager test.support.temp_cwd() no longer removes the temporary directory when executing in a process other than the parent it entered from.
If a forked child exits the context manager it won't do the cleanup..
(cherry picked from commit 33dddac00ba8d9b72cf21b8698504077eb3c23ad)

Co-authored-by: Anselm Kruis <a.kruis@science-computing.de>
6 years agobpo-32087: Doc: Make "deprecated-removed" directive translatable (GH-4473)
Miss Islington (bot) [Fri, 23 Feb 2018 12:14:04 +0000 (04:14 -0800)]
bpo-32087: Doc: Make "deprecated-removed"  directive translatable (GH-4473)

(cherry picked from commit 0febc053736112d7bb9081742b3ac0ece7b973e7)

Co-authored-by: cocoatomo <cocoatomo77@gmail.com>
6 years agobpo-32457: Improves handling of denormalized executable path when launching Python...
Steve Dower [Thu, 22 Feb 2018 20:33:16 +0000 (12:33 -0800)]
bpo-32457: Improves handling of denormalized executable path when launching Python (GH-5756) (#5818)

6 years agobpo-30449: Improve __slots__ documentation (GH-1819)
Miss Islington (bot) [Thu, 22 Feb 2018 17:37:40 +0000 (09:37 -0800)]
bpo-30449: Improve __slots__ documentation (GH-1819)

(cherry picked from commit 2b44e302ec3079363c4d5c875677945953705c58)

Co-authored-by: Aaron Hall, MBA <aaronchall@yahoo.com>
6 years agobpo-32905: IDLE - remove unused code in pyparse module (GH-5807)
Miss Islington (bot) [Thu, 22 Feb 2018 07:04:05 +0000 (23:04 -0800)]
bpo-32905: IDLE - remove unused code in pyparse module (GH-5807)

dump is similar to print but less flexible.  lastopenbracketpos is now always initialized in _study2, as was stmt_bracketing, so the class settings are not needed.  get_last_open_bracket_pos is never called.
(cherry picked from commit 451d1edaf4d27c4e632d81246d308e8dd6ea945f)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-32874: IDLE: add tests for pyparse (GH-5755)
Miss Islington (bot) [Thu, 22 Feb 2018 04:34:43 +0000 (20:34 -0800)]
bpo-32874: IDLE: add tests for pyparse (GH-5755)

There are no code changes other than comments and docstrings.
(cherry picked from commit c84cf6c03fce1fb73bfaf91d7909f1c2708f14a2)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
6 years agobpo-32889: update valgrind suppressions (GH-5779)
Miss Islington (bot) [Wed, 21 Feb 2018 06:31:54 +0000 (22:31 -0800)]
bpo-32889: update valgrind suppressions (GH-5779)

Py_ADDRESS_IN_RANGE was renamed address_in_range in 3.6
(commit 3924f93794fd740c547b44884f73303196475cd5).
(cherry picked from commit ba518804bf4c1ea01df5e622b333d3116cbaa3bd)

Co-authored-by: Paul Price <price@astro.princeton.edu>
6 years agobpo-32008: don't use PROTOCOL_TLSv1 in example (GH-5789)
Miss Islington (bot) [Wed, 21 Feb 2018 06:07:17 +0000 (22:07 -0800)]
bpo-32008: don't use PROTOCOL_TLSv1 in example (GH-5789)

It's bad form to pin to an old version of TLS. ssl.SSLContext has the right
protocol default, so let's not pass anyway.
(cherry picked from commit e9edee0b65650c4f9db90cefc2e9a8125bad762c)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
6 years agobpo-28886: doc: Move deprecated abc decorators to separate section (GH-176)
Miss Islington (bot) [Wed, 21 Feb 2018 05:24:37 +0000 (21:24 -0800)]
bpo-28886: doc: Move deprecated abc decorators to separate section (GH-176)

(cherry picked from commit 52c6b89796a7ec391db20281e05b256f57e97b35)

Co-authored-by: Harshul jain <harshulrobo@gmail.com>
6 years agocloses bpo-32859: Don't retry dup3() if it is not available at runtime (GH-5708)
Miss Islington (bot) [Wed, 21 Feb 2018 05:21:12 +0000 (21:21 -0800)]
closes bpo-32859: Don't retry dup3() if it is not available at runtime (GH-5708)

os.dup2() tests for dup3() system call availability at runtime,
but doesn't remember the result across calls, repeating
the test on each call with inheritable=False.

Since the caller of os.dup2() is expected to hold the GIL,
fix this by making the variable holding the test result static.
(cherry picked from commit b3caf388a0418f6c031e4dbdcc0c1ce7e5cc36bd)

Co-authored-by: Alexey Izbyshev <izbyshev@users.noreply.github.com>
6 years agobpo-32540: Update venv documentation (GH-5736)
Miss Islington (bot) [Wed, 21 Feb 2018 04:26:21 +0000 (20:26 -0800)]
bpo-32540: Update venv documentation (GH-5736)

If the directory already exists, it will be re-used.
(cherry picked from commit e8eb972514cad6086b752754c1d34d703c04dd82)

Co-authored-by: TROUVERIE Joachim <joachim.trouverie@linoame.fr>