]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
6 years agoSkip test_preadv_flags if RWF_HIPRI is not supported by the system (GH-12762)
Miss Islington (bot) [Sat, 13 Apr 2019 16:25:20 +0000 (09:25 -0700)] 
Skip test_preadv_flags if RWF_HIPRI is not supported by the system (GH-12762)

(cherry picked from commit 46544f69bff1c3c4173d461be35993ca0109f622)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
6 years agoDoc: define PY_SSIZE_T_CLEAN always (GH-12794)
Miss Islington (bot) [Sat, 13 Apr 2019 01:56:50 +0000 (18:56 -0700)] 
Doc: define PY_SSIZE_T_CLEAN always (GH-12794)

(cherry picked from commit c88feceb449d6e85d7e17ec36559206094d10d81)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
6 years agobpo-36605: make tags: parse Modules/_io directory (GH-12789) (GH-12814)
Victor Stinner [Sat, 13 Apr 2019 00:50:31 +0000 (02:50 +0200)] 
bpo-36605: make tags: parse Modules/_io directory (GH-12789) (GH-12814)

"make tags" and "make TAGS" now also parse Modules/_io/*.c
and Modules/_io/*.h.

(cherry picked from commit 21a74a9d77c5ac628808b9faace18b824ca056f7)

6 years agobpo-35581: Document @typing.type_check_only (GH-11312)
Miss Islington (bot) [Fri, 12 Apr 2019 22:47:57 +0000 (15:47 -0700)] 
bpo-35581: Document @typing.type_check_only (GH-11312)

(cherry picked from commit 1e8295402bf5e81d327ed2b5eb88a6b6de449d63)

Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
6 years agobpo-33922: Adding documentation for new "-64" suffix of Python launcher (GH-7849)
Miss Islington (bot) [Fri, 12 Apr 2019 22:32:33 +0000 (15:32 -0700)] 
bpo-33922: Adding documentation for new "-64" suffix of Python launcher (GH-7849)

Since bpo-30291 it is possible to specify the architecture of Python when using the launcher
(cherry picked from commit 1e2ad6c275d2b09e76b7cbba7281d5a125a593c1)

Co-authored-by: mrh1997 <mrh1997@users.noreply.github.com>
6 years agoAllow Windows layout builds to fully skip code signing (GH-12808)
Miss Islington (bot) [Fri, 12 Apr 2019 18:44:00 +0000 (11:44 -0700)] 
Allow Windows layout builds to fully skip code signing (GH-12808)

(cherry picked from commit 606c66a17faf34a4e74d4829e8fe5ad0d2879434)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
6 years agobpo-36611: Fix test_sys.test_getallocatedblocks() (GH-12797)
Miss Islington (bot) [Fri, 12 Apr 2019 13:33:31 +0000 (06:33 -0700)] 
bpo-36611: Fix test_sys.test_getallocatedblocks() (GH-12797)

Fix test_sys.test_getallocatedblocks() when tracemalloc is enabled.
If the name of Python memory allocators cannot get read, consider
that pymalloc is disabled.

Fix the following error:

./python -X tracemalloc -m test test_sys -v -m test_getallocatedblocks

ERROR: test_getallocatedblocks (test.test_sys.SysModuleTest)
------------------------------------------------------------
Traceback (most recent call last):
  File "Lib/test/test_sys.py", line 770, in test_getallocatedblocks
    alloc_name = _testcapi.pymem_getallocatorsname()
RuntimeError: cannot get allocators name
(cherry picked from commit 9b8314cfe29ca532fc335277f6c36b72e6132922)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-34839: Add a 'before 3.6' in the section 'warnings' of doctest (GH-9736)
Miss Islington (bot) [Fri, 12 Apr 2019 06:27:27 +0000 (23:27 -0700)] 
bpo-34839: Add a 'before 3.6' in the section 'warnings' of doctest (GH-9736)

(cherry picked from commit 0522fd81dc6e3482c2d4c8719f1f85ad5924eede)

Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
6 years ago[3.7] bpo-36389: _PyObject_IsFreed() now also detects uninitialized memory (GH-12770...
Victor Stinner [Thu, 11 Apr 2019 20:30:31 +0000 (22:30 +0200)] 
[3.7] bpo-36389: _PyObject_IsFreed() now also detects uninitialized memory (GH-12770) (GH-12788)

* bpo-36389: _PyObject_IsFreed() now also detects uninitialized memory (GH-12770)

Replace _PyMem_IsFreed() function with _PyMem_IsPtrFreed() inline
function. The function is now way more efficient, it became a simple
comparison on integers, rather than a short loop. It detects also
uninitialized bytes and "forbidden bytes" filled by debug hooks
on memory allocators.

Add unit tests on _PyObject_IsFreed().

(cherry picked from commit 2b00db68554422ec37faba2a80179a0172df6349)

* bpo-36389: Change PyMem_SetupDebugHooks() constants (GH-12782)

Modify CLEANBYTE, DEADDYTE and FORBIDDENBYTE constants: use 0xCD,
0xDD and 0xFD, rather than 0xCB, 0xBB and 0xFB, to use the same byte
patterns than Windows CRT debug malloc() and free().

(cherry picked from commit 4c409beb4c360a73d054f37807d3daad58d1b567)

6 years agobpo-36597: fix random doctest failure (GH-12778)
Inada Naoki [Thu, 11 Apr 2019 10:37:53 +0000 (19:37 +0900)] 
bpo-36597: fix random doctest failure (GH-12778)

6 years agobpo-36416: Correct bytes.rpartition documentation (GH-12543)
Miss Islington (bot) [Thu, 11 Apr 2019 10:18:48 +0000 (03:18 -0700)] 
bpo-36416: Correct bytes.rpartition documentation (GH-12543)

(cherry picked from commit efc48701496ef020e896fc6a91af3c0c612ac69a)

Co-authored-by: pewscorner <pewscorner@users.noreply.github.com>
6 years agoDoc: fix typo in IncrementalDecoder.setstate (GH-12724)
Miss Islington (bot) [Thu, 11 Apr 2019 06:18:07 +0000 (23:18 -0700)] 
Doc: fix typo in IncrementalDecoder.setstate (GH-12724)

(cherry picked from commit b5e2959b27088d39f9954a207b91ab0ebbd149f4)

Co-authored-by: Christopher Thorne <libcthorne@users.noreply.github.com>
6 years agobetter __init__.py explanation in tutorial (GH-12763)
Miss Islington (bot) [Thu, 11 Apr 2019 06:16:34 +0000 (23:16 -0700)] 
better __init__.py explanation in tutorial (GH-12763)

* better __init__.py explanation in tutorial

* Update Doc/tutorial/modules.rst

Co-Authored-By: methane <songofacandy@gmail.com>
(cherry picked from commit 5410d3d283b11e2375f0c1f79728a230edd12bd0)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
6 years agobpo-36235: Fix distutils test_customize_compiler() on macOS (GH-12764)
Miss Islington (bot) [Wed, 10 Apr 2019 23:58:55 +0000 (16:58 -0700)] 
bpo-36235: Fix distutils test_customize_compiler() on macOS (GH-12764)

Set CUSTOMIZED_OSX_COMPILER to True to disable
_osx_support.customize_compiler().
(cherry picked from commit a9bd8925c7fa50dd3cfab125b824ec192133ef49)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-14826: document that URLopener quotes fullurl. (GH-12758)
Miss Islington (bot) [Wed, 10 Apr 2019 09:30:22 +0000 (02:30 -0700)] 
bpo-14826: document that URLopener quotes fullurl. (GH-12758)

(cherry picked from commit 2fb2bc81c3f40d73945c6102569495140e1182c7)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
6 years agobpo-12910: update and correct quote docstring (GH-2568)
Miss Islington (bot) [Wed, 10 Apr 2019 00:53:03 +0000 (17:53 -0700)] 
bpo-12910: update and correct quote docstring (GH-2568)

Fixes some mistakes and misleadings in the quote function docstring:
- reserved chars are never actually used by quote code, unreserved chars are
- reserved chars were wrong and incomplete
- mentioned that use-case is not minimal quoting wrt. RFC, but cautious quoting
(cherry picked from commit 750d74fac5c510e39958b3f79641fe54096ee54f)

Co-authored-by: Jörn Hees <joernhees@users.noreply.github.com>
6 years ago[3.7] bpo-36560: regrtest: don't collect the GC twice (GH-12747) (GH-12749)
Victor Stinner [Tue, 9 Apr 2019 16:55:50 +0000 (18:55 +0200)] 
[3.7] bpo-36560: regrtest: don't collect the GC twice (GH-12747) (GH-12749)

* bpo-36560: Fix reference leak hunting in regrtest (GH-12744)

Fix reference leak hunting in regrtest: compute also deltas (of
reference count, allocated memory blocks, file descriptor count)
during warmup, to ensure that everything is initialized before
starting to hunt reference leaks.

Other changes:

* Replace gc.collect() with support.gc_collect()
* Move calls to read memory statistics from dash_R_cleanup() to
  dash_R()
* Pass regrtest 'ns' to dash_R()
* dash_R() is now more quiet with --quiet option (don't display
  progress).
* Precompute the full range for "for it in range(repcount):" to
  ensure that the iteration doesn't allocate anything new.
* dash_R() now is responsible to call warm_caches().

(cherry picked from commit 5aaac94eeb44697e92b0951385cd557bc27e0f6a)

* bpo-36560: regrtest: don't collect the GC twice (GH-12747)

dash_R() function of libregrtest doesn't call support.gc_collect()
directly anymore: it's already called by dash_R_cleanup().

Call dash_R_cleanup() before starting the loop.

(cherry picked from commit bb4447897a5f141eecf42987a1191a3330c5d7ed)

6 years agocloses bpo-35848: Move all documentation regarding the readinto out of IOBase. (GH...
Miss Islington (bot) [Tue, 9 Apr 2019 04:57:31 +0000 (21:57 -0700)] 
closes bpo-35848: Move all documentation regarding the readinto out of IOBase. (GH-11893)

Move all documentation regarding the readinto method into either io.RawIOBase or io.BufferedIOBase.

Corresponding changes to documentation in the _pyio.py module.
(cherry picked from commit 7b97ab35b28b761ab1253df427ee674b1a90f465)

Co-authored-by: Steve Palmer <steve@srpalmer.me.uk>
6 years agobpo-36565: Fix libregrtest for Python without builtin _abc (GH-12733) (GH-12734)
Miss Islington (bot) [Mon, 8 Apr 2019 23:54:16 +0000 (16:54 -0700)] 
bpo-36565: Fix libregrtest for Python without builtin _abc (GH-12733) (GH-12734)

Fix reference hunting (``python3 -m test -R 3:3``) when Python has no
built-in abc module: fix _get_dump() reimplementation of libregrtest.
(cherry picked from commit 79b5d29041bd85ea3baa050b3fa2481344ea35c9)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agoCorrect "inplace" with "in-place" (GH-10480)
Miss Islington (bot) [Mon, 8 Apr 2019 09:21:38 +0000 (02:21 -0700)] 
Correct "inplace" with "in-place" (GH-10480)

(cherry picked from commit f4efa312d14bc792f59514c5696e29041e05deca)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
6 years agobpo-9883: Update list of unimplemented interfaces in minidom. (GH-12677)
Miss Islington (bot) [Mon, 8 Apr 2019 02:55:58 +0000 (19:55 -0700)] 
bpo-9883: Update list of unimplemented interfaces in minidom. (GH-12677)

Remove names from the "unimplemented interfaces" list
in the minidom docs that are actually implemented.
(cherry picked from commit 2ea8099523581cf2ecc060831a53debb57ff98ee)

Co-authored-by: Stefan Behnel <stefan_ml@behnel.de>
6 years agoFix doc for create_subprocess_exec (GH-12598)
Miss Islington (bot) [Fri, 5 Apr 2019 14:08:31 +0000 (07:08 -0700)] 
Fix doc for create_subprocess_exec (GH-12598)

Add missing `program` argument to asyncio.create_subprocess_exec documentation.
(cherry picked from commit 1328375ad1c91f25a1500945a67b0ef36e387527)

Co-authored-by: Dima Tisnek <dimaqq@gmail.com>
6 years agobpo-36404: recommend DeprecationWarning over PendingDeprecationWarning (GH-12505)
Miss Islington (bot) [Fri, 5 Apr 2019 09:07:21 +0000 (02:07 -0700)] 
bpo-36404: recommend DeprecationWarning over PendingDeprecationWarning (GH-12505)

(cherry picked from commit 176d26364bb67801fa522f52f20cbe44420d6942)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
6 years agobpo-36522: Print all values for headers with multiple values. (GH-12681) (GH-12682) 12692/head
Miss Islington (bot) [Thu, 4 Apr 2019 08:25:59 +0000 (01:25 -0700)] 
bpo-36522: Print all values for headers with multiple values. (GH-12681) (GH-12682)

(cherry picked from commit 461c416dd78a98f2bba7f323af8c9738e060b6f2)

Co-authored-by: Matt Houglum <houglum@google.com>
6 years ago[3.7] bpo-36440: include node names in ParserError messages, instead of numeric IDs...
Pablo Galindo [Wed, 3 Apr 2019 18:34:59 +0000 (14:34 -0400)] 
[3.7] bpo-36440: include node names in ParserError messages, instead of numeric IDs (GH-12565) (GH-12671)

The error messages in the parser module are referring to numeric IDs for the nodes. To improve readability, use the node names when reporting errors..
(cherry picked from commit cb0748d3939c31168ab5d3b80e3677494497d5e3)

Co-authored-by: tyomitch <tyomitch@gmail.com>
6 years agobpo-36504: Fix signed integer overflow in _ctypes.c's PyCArrayType_new(). (GH-12660)
Miss Islington (bot) [Wed, 3 Apr 2019 17:55:26 +0000 (10:55 -0700)] 
bpo-36504: Fix signed integer overflow in _ctypes.c's PyCArrayType_new(). (GH-12660)

(cherry picked from commit 487b73ab39c80157474821ef9083f51e0846bd62)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agobpo-32413: Add documentation that at the module level, locals(), globals() are the...
Miss Islington (bot) [Tue, 2 Apr 2019 18:14:50 +0000 (11:14 -0700)] 
bpo-32413: Add documentation that at the module level, locals(), globals() are the  same dictionary (GH-5004)

https://bugs.python.org/issue32413
(cherry picked from commit 1c5fa5af8a95f25119e45e40a4ed8183d06f4a5b)

Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <thatiparthysreenivas@gmail.com>
6 years agobpo-35838: document optionxform must be idempotent (GH-12656)
Miss Islington (bot) [Tue, 2 Apr 2019 09:29:16 +0000 (02:29 -0700)] 
bpo-35838: document optionxform must be idempotent (GH-12656)

(cherry picked from commit 04694a306b8f4ab54ef5fc4ba673c26fa53b0ac1)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
6 years agobpo-13120: fix typo with test_issue13120() method name (GH-12250)
Miss Islington (bot) [Tue, 2 Apr 2019 08:17:25 +0000 (01:17 -0700)] 
bpo-13120: fix typo with test_issue13120() method name (GH-12250)

Incorrect issue number '13210' added in 539ee5da6f.

https://bugs.python.org/issue13120
(cherry picked from commit 9139f926a8d8e5b71830cb7e10b0807836b5e9a4)

Co-authored-by: Daniel Hahler <github@thequod.de>
6 years agoTemporary workaround for an ACL issue on Ubuntu on Azure Pipelines (GH-12649)
Miss Islington (bot) [Mon, 1 Apr 2019 16:30:58 +0000 (09:30 -0700)] 
Temporary workaround for an ACL issue on Ubuntu on Azure Pipelines (GH-12649)

(cherry picked from commit b4bcefe5fe689ef5caf9c775f72c6d150f3e8ece)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
6 years agobpo-36157:Document PyInterpreterState_Main() (GH-12238)
Miss Islington (bot) [Mon, 1 Apr 2019 15:15:10 +0000 (08:15 -0700)] 
bpo-36157:Document PyInterpreterState_Main() (GH-12238)

I have added documentation for `PyInterpreterState_Main()`.
 I chose to place it under Advanced Debugger Support together with similar functions like `PyInterpreterState_Head()`, `PyInterpreterState_Next(`), and `PyInterpreterState_ThreadHead()` .

https://bugs.python.org/issue36157
(cherry picked from commit 8c61739defd88c7f79e86537886c33745843ce01)

Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
6 years agobpo-20844: open script file with "rb" mode (GH-12616)
Inada Naoki [Mon, 1 Apr 2019 12:02:51 +0000 (21:02 +0900)] 
bpo-20844: open script file with "rb" mode (GH-12616)

(cherry picked from commit 10654c19b5e6efdf3c529ff9bf7bcab89bdca1c1)

6 years ago[3.7] bpo-36492: Fix passing special keyword arguments to some functions. (GH-12637...
Serhiy Storchaka [Mon, 1 Apr 2019 07:59:24 +0000 (10:59 +0300)] 
[3.7] bpo-36492: Fix passing special keyword arguments to some functions. (GH-12637) (GH-12645)

The following arguments can be passed as keyword arguments for passing
to other function if the corresponding required argument is passed as
positional:

- "func" in functools.partialmethod(), weakref.finalize(),
  profile.Profile.runcall(), cProfile.Profile.runcall(),
  bdb.Bdb.runcall(), trace.Trace.runfunc() and
  curses.wrapper().
- "function" in unittest.addModuleCleanup() and
  unittest.TestCase.addCleanup().
- "fn" in the submit() method of concurrent.futures.ThreadPoolExecutor
  and concurrent.futures.ProcessPoolExecutor.
- "callback" in contextlib.ExitStack.callback(),
  contextlib.AsyncExitStack.callback() and
  contextlib.AsyncExitStack.push_async_callback().
- "c" and "typeid" in multiprocessing.managers.Server.create().
- "obj" in weakref.finalize().

(cherry picked from commit 42a139ed88c487f325a241c6ee8b308b3c045975)

6 years agobpo-36150: Fix possible assertion failures due to _ctypes.c's PyCData_reduce(). ...
Miss Islington (bot) [Sun, 31 Mar 2019 17:15:11 +0000 (10:15 -0700)] 
bpo-36150: Fix possible assertion failures due to _ctypes.c's PyCData_reduce(). (GH-12106) (GH-12642)

(cherry picked from commit 5f2c50810a67982b0c80f6d3258fee3647f67005)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agobpo-36010: Add venv to the nuget distribution (GH-12367)
Miss Islington (bot) [Sat, 30 Mar 2019 21:47:12 +0000 (14:47 -0700)] 
bpo-36010: Add venv to the nuget distribution (GH-12367)

(cherry picked from commit e724152796a5a41544f52054506c6c2248242a5d)

Co-authored-by: Paul Moore <p.f.moore@gmail.com>
6 years agobpo-24214: Fixed the UTF-8 incremental decoder. (GH-12603) (GH-12627)
Miss Islington (bot) [Sat, 30 Mar 2019 13:52:41 +0000 (06:52 -0700)] 
bpo-24214: Fixed the UTF-8 incremental decoder. (GH-12603) (GH-12627)

The bug occurred when the encoded surrogate character is passed
to the incremental decoder in two chunks.
(cherry picked from commit 7a465cb5ee7e298cae626ace1fc3e7d97df79f2e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-36434: Properly handle writing errors in ZIP files. (GH-12559) (GH-12628)
Miss Islington (bot) [Sat, 30 Mar 2019 13:52:16 +0000 (06:52 -0700)] 
bpo-36434: Properly handle writing errors in ZIP files. (GH-12559) (GH-12628)

Errors during writing no longer prevent to properly close
the ZIP file.
(cherry picked from commit 2524fdefc9bb2a97b99319190aeb23703079ad4c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agoC API docs: Py_IsInitialized is always safe to call (GH-12630)
Miss Islington (bot) [Sat, 30 Mar 2019 11:29:43 +0000 (04:29 -0700)] 
C API docs: Py_IsInitialized is always safe to call (GH-12630)

(cherry picked from commit ddbb978e1065dde21d1662386b26ded359f4b16e)

Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
6 years agobpo-17110: doc: add note how to get bytes from sys.argv (GH-12602)
Miss Islington (bot) [Sat, 30 Mar 2019 05:38:14 +0000 (22:38 -0700)] 
bpo-17110: doc: add note how to get bytes from sys.argv (GH-12602)

(cherry picked from commit 38f4e468d4b55551e135c67337c18ae142193ba8)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
6 years agoFixed capital letters missing and missing . (GH-12584)
Miss Islington (bot) [Fri, 29 Mar 2019 02:11:06 +0000 (19:11 -0700)] 
Fixed capital letters missing and missing . (GH-12584)

No `bpo` for minor doc fix
(cherry picked from commit 3d78c4a6e5ae91eaf337b6f5cc6e8bb01af7c7b1)

Co-authored-by: Jules Lasne (jlasne) <jlasne@student.42.fr>
6 years agobpo-35941: Fix ssl certificate enumeration for windows (GH-12486)
Miss Islington (bot) [Thu, 28 Mar 2019 18:56:50 +0000 (11:56 -0700)] 
bpo-35941: Fix ssl certificate enumeration for windows (GH-12486)

Add a function to collect certificates from several certificate stores into one certificate collection store that is then enumerated. This ensures we load as many certificates as we can access.
(cherry picked from commit d93fbbf88e4abdd24a0a55e3ddf85b8420c62052)

Co-authored-by: kctherookie <48805853+kctherookie@users.noreply.github.com>
6 years agobpo-36425: Add Simplified Chinese to the language switcher (GH-12537)
Miss Islington (bot) [Thu, 28 Mar 2019 18:12:39 +0000 (11:12 -0700)] 
bpo-36425: Add Simplified Chinese to the language switcher (GH-12537)

(cherry picked from commit 45a5fdb91cee665161a8b1980bb4e6ccb999f58f)

Co-authored-by: zhsj <zsj950618@gmail.com>
6 years agobpo-36459: Fix a possible double PyMem_FREE() due to tokenizer.c's tok_nextc() (12601)
Miss Islington (bot) [Thu, 28 Mar 2019 15:08:35 +0000 (08:08 -0700)] 
bpo-36459: Fix a possible double PyMem_FREE() due to tokenizer.c's tok_nextc() (12601)

Remove the PyMem_FREE() call added in cb90c89.  The buffer will be
freed when PyTokenizer_Free() is called on the tokenizer state.
(cherry picked from commit cda139d1ded6708665b53e4ed32ccc1d2627e1da)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years ago[3.7] Fix NEWS entry with incorrect bpo number (GH-12600)
Ned Deily [Thu, 28 Mar 2019 04:20:59 +0000 (00:20 -0400)] 
[3.7] Fix NEWS entry with incorrect bpo number (GH-12600)

6 years agobpo-36245: Fix more empty environment variable checks (GH-12592)
Miss Islington (bot) [Thu, 28 Mar 2019 00:01:31 +0000 (17:01 -0700)] 
bpo-36245: Fix more empty environment variable checks (GH-12592)

(cherry picked from commit b95a79c928fc4a6135d91c0c553cb2a63cf15140)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
6 years agobpo-31292: Fixed distutils check --restructuredtext for include directives (GH-10605)
Miss Islington (bot) [Wed, 27 Mar 2019 22:25:57 +0000 (15:25 -0700)] 
bpo-31292: Fixed distutils check --restructuredtext for include directives (GH-10605)

(cherry picked from commit d5a5a33f12b60129d57f9b423b77d2fcba506834)

Co-authored-by: Philipp A <flying-sheep@web.de>
6 years agobpo-36441: Fixes creating a venv when debug binaries are installed. (GH-12566)
Miss Islington (bot) [Wed, 27 Mar 2019 15:47:57 +0000 (08:47 -0700)] 
bpo-36441: Fixes creating a venv when debug binaries are installed. (GH-12566)

(cherry picked from commit 4a9a505d6f2474a570422dad89f8d1b344d6cd36)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
6 years agoDoc: Fixed missing punctuation in datamodel.rst (GH-12581)
Miss Islington (bot) [Wed, 27 Mar 2019 10:18:36 +0000 (03:18 -0700)] 
Doc: Fixed missing punctuation in datamodel.rst (GH-12581)

(cherry picked from commit 1fc5bf2ff27b898e8d9460d0fbc791e83009ed71)

Co-authored-by: Jules Lasne (jlasne) <jlasne@student.42.fr>
6 years agobpo-33832: Add "magic method" glossary entry (GH-7630)
Miss Islington (bot) [Wed, 27 Mar 2019 01:26:52 +0000 (18:26 -0700)] 
bpo-33832: Add "magic method" glossary entry (GH-7630)

(cherry picked from commit f760610bddd7e8f8ac0914d5d59ef806bc16a73b)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
6 years agoMinor doc improvement (GH-10341)
Miss Islington (bot) [Wed, 27 Mar 2019 01:23:54 +0000 (18:23 -0700)] 
Minor doc improvement (GH-10341)

Change "star-operator" to "* operator".
(cherry picked from commit dfd775a0b1aee51d842b20cdebd97cc52c0b32e7)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
6 years agobpo-36429: Fix starting IDLE with pyshell (GH-12548)
Miss Islington (bot) [Wed, 27 Mar 2019 00:19:23 +0000 (17:19 -0700)] 
bpo-36429: Fix starting IDLE with pyshell (GH-12548)

Add idlelib.pyshell alias at top; remove pyshell alias at bottom.
Remove obsolete __name__=='__main__' command.
(cherry picked from commit 6a258c88906a7e8acde455ee2acb78b6f315ea0b)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-34203: FAQ: improve wording of paragraph about 2.x vs. 3.x (GH-9821)
Miss Islington (bot) [Tue, 26 Mar 2019 21:20:29 +0000 (14:20 -0700)] 
bpo-34203: FAQ: improve wording of paragraph about 2.x vs. 3.x (GH-9821)

(cherry picked from commit 6cd658b1a5cb2413230dbc2d9395d20498be8518)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
6 years agobpo-36436: Fix _testcapi.pymem_buffer_overflow() (GH-12560)
Miss Islington (bot) [Tue, 26 Mar 2019 15:39:03 +0000 (08:39 -0700)] 
bpo-36436: Fix _testcapi.pymem_buffer_overflow() (GH-12560)

Handle memory allocation failure.
(cherry picked from commit 414b1cde93764cdabb0798b02af4dd7df954424d)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-36433: fix confusing error messages in classmethoddescr_call (GH-12556)
Miss Islington (bot) [Tue, 26 Mar 2019 09:47:08 +0000 (02:47 -0700)] 
bpo-36433: fix confusing error messages in classmethoddescr_call (GH-12556)

https://bugs.python.org/issue36433
(cherry picked from commit 871309c775fd4d72048bfaa31affd54f9934f7dd)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
6 years agobpo-36430: Fix a possible reference leak in itertools.count(). (GH-12551)
Miss Islington (bot) [Tue, 26 Mar 2019 06:26:42 +0000 (23:26 -0700)] 
bpo-36430: Fix a possible reference leak in itertools.count(). (GH-12551)

(cherry picked from commit 0523c39e7720b82b38ad793d3f1a5681adcdf873)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agoFix "the the" in the idle docs. (GH-12549)
Miss Islington (bot) [Tue, 26 Mar 2019 04:52:39 +0000 (21:52 -0700)] 
Fix "the the" in the idle docs. (GH-12549)

(cherry picked from commit 577277f669a6d5c626c142358a940a10d32813ff)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
6 years agobump to 3.7.3+
Ned Deily [Mon, 25 Mar 2019 23:31:06 +0000 (19:31 -0400)] 
bump to 3.7.3+

6 years agoMerge tag 'v3.7.3' into 3.7
Ned Deily [Mon, 25 Mar 2019 23:28:53 +0000 (19:28 -0400)] 
Merge tag 'v3.7.3' into 3.7

6 years agobpo-34085: Improve wording on classmethod/staticmethod (GH-8228)
Miss Islington (bot) [Mon, 25 Mar 2019 23:00:00 +0000 (16:00 -0700)] 
bpo-34085: Improve wording on classmethod/staticmethod (GH-8228)

* bpo-34085: Improve wording on classmethod/staticmethod

* Address comments from Éric

* Address comments from Éric
(cherry picked from commit 548cb6060ab9d5a66931ea2be4da08c2c72c9176)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
6 years agobpo-36370: Check for PyErr_Occurred() after PyImport_GetModule() (GH-12504)
Miss Islington (bot) [Mon, 25 Mar 2019 21:36:43 +0000 (14:36 -0700)] 
bpo-36370: Check for PyErr_Occurred() after PyImport_GetModule() (GH-12504)

6 years ago3.7.3 v3.7.3
Ned Deily [Mon, 25 Mar 2019 20:21:05 +0000 (16:21 -0400)] 
3.7.3

6 years agoAdd note to Queue.get() docs about block=True (GH-2223) (GH-12538)
Miss Islington (bot) [Mon, 25 Mar 2019 20:03:16 +0000 (13:03 -0700)] 
Add note to Queue.get() docs about block=True (GH-2223) (GH-12538)

(cherry picked from commit 713a8ae7926472b02ee1a394633eb54aaa7912d1)

Co-authored-by: Stephen Rosen <sirosen@globus.org>
6 years agobpo-36421: Fix a possible double decref in _ctypes.c's PyCArrayType_new(). (GH-12530)
Miss Islington (bot) [Mon, 25 Mar 2019 08:34:26 +0000 (01:34 -0700)] 
bpo-36421: Fix a possible double decref in _ctypes.c's PyCArrayType_new(). (GH-12530)

Set type_attr to NULL after the assignment to stgdict->proto (like
what is done with stgdict after the Py_SETREF() call) so that it is
not decrefed twice on error.
(cherry picked from commit 5e333784f007950f22de44c1ffab5b0c03d6691f)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agobpo-36218: Fix handling of heterogeneous values in list.sort (GH-12209) GH-12532)
Miss Islington (bot) [Mon, 25 Mar 2019 07:47:55 +0000 (00:47 -0700)] 
bpo-36218: Fix handling of heterogeneous values in list.sort (GH-12209) GH-12532)

(cherry picked from commit dd5417afcf8924bcdd7077351941ad21727ef644)

Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
6 years agoFix registry key for Windows SDK detection (GH-12445)
Miss Islington (bot) [Thu, 21 Mar 2019 21:54:59 +0000 (14:54 -0700)] 
Fix registry key for Windows SDK detection (GH-12445)

(cherry picked from commit aedc273fd90e31c7a20904568de3115f8957395b)

Co-authored-by: Isuru Fernando <isuruf@gmail.com>
6 years agoFix "catchs" typos in NEWS entries (GH-12364)
Harmon [Sun, 17 Mar 2019 23:49:43 +0000 (18:49 -0500)] 
Fix "catchs" typos in NEWS entries (GH-12364)

6 years agoRemove NEWS entries duplicated from 3.7.2final. (GH-12309)
Ned Deily [Wed, 13 Mar 2019 14:49:21 +0000 (10:49 -0400)] 
Remove NEWS entries duplicated from 3.7.2final. (GH-12309)

6 years agobpo-36174: Update nuget authoring for new license field. (GH-12300)
Miss Islington (bot) [Wed, 13 Mar 2019 00:11:08 +0000 (17:11 -0700)] 
bpo-36174: Update nuget authoring for new license field. (GH-12300)

(cherry picked from commit 26c910c59c47bdef4220c34e66c45a625bda5e56)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
6 years agoCorrect minor edit to news entry. (GH-12299)
Ned Deily [Tue, 12 Mar 2019 23:44:41 +0000 (19:44 -0400)] 
Correct minor edit to news entry. (GH-12299)

6 years agobpo-30348: IDLE: Add test_autocomplete unittest (GH-2209)
Miss Islington (bot) [Sun, 24 Mar 2019 23:53:13 +0000 (16:53 -0700)] 
bpo-30348: IDLE: Add test_autocomplete unittest (GH-2209)

(cherry picked from commit 113d735e2091427f9623097d2a222dd99b16b568)

Co-authored-by: Louie Lu <git@louie.lu>
6 years agobpo-31822: Document that urllib.parse.{Defrag,Split,Parse}Result are namedtuples...
Miss Islington (bot) [Sun, 24 Mar 2019 21:56:27 +0000 (14:56 -0700)] 
bpo-31822: Document that urllib.parse.{Defrag,Split,Parse}Result are namedtuples (GH-4434)

(cherry picked from commit 13c1f72cd1d91fdc2654f2f57356b2eacb75f164)

Co-authored-by: Lisa Roach <lisaroach14@gmail.com>
6 years agobpo-36405: IDLE - Restore __main__ and add tests (GH-12518)
Miss Islington (bot) [Sun, 24 Mar 2019 21:32:40 +0000 (14:32 -0700)] 
bpo-36405: IDLE - Restore __main__ and add tests (GH-12518)

Fix error in commit 2b75155 noticed by Serhiy Storchaka.
(cherry picked from commit 0fe4513d9a5510ae91c0da7eb0433f79a6d4dda9)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years ago[3.7] Replace "DOS box" with link to Windows FAQ. (GH-12390) (GH-12525)
Miss Islington (bot) [Sun, 24 Mar 2019 19:12:05 +0000 (12:12 -0700)] 
[3.7] Replace "DOS box" with link to Windows FAQ. (GH-12390) (GH-12525)

(cherry picked from commit 6661c1720ebd322e2cb6995a243e8dc6e588d931)

Co-authored-by: Ned Deily <nad@python.org>
6 years agobpo-32217: Correct usage of ABI tags in freeze. (GH-4719)
Miss Islington (bot) [Sat, 23 Mar 2019 16:47:40 +0000 (09:47 -0700)] 
bpo-32217: Correct usage of ABI tags in freeze. (GH-4719)

Check for sys.abiflags before using since not all platforms have it defined.
(cherry picked from commit a7987e71939fa631296f83861fb376361ddd59ee)

Co-authored-by: AraHaan <15173749+AraHaan@users.noreply.github.com>
6 years agobpo-23205: IDLE: Add tests and refactor grep's findfiles (GH-12203)
Miss Islington (bot) [Sat, 23 Mar 2019 12:21:46 +0000 (05:21 -0700)] 
bpo-23205: IDLE: Add tests and refactor grep's findfiles (GH-12203)

* Add tests for grep findfiles.
* Move findfiles to module function.
* Change findfiles to use os.walk.

Based on a patch by Al Sweigart.
(cherry picked from commit d60f658fc0278f3fcdadec8ddcab35b8ae03e1d1)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
6 years agobpo-36405: Use dict unpacking in idlelib (GH-12507)
Miss Islington (bot) [Sat, 23 Mar 2019 08:08:37 +0000 (01:08 -0700)] 
bpo-36405: Use dict unpacking in idlelib (GH-12507)

Remove now unneeded imports.
(cherry picked from commit 2b75155590eb42d25e474b776ee9fdcc4b3dc840)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-33319: Clarify subprocess call docs. (GH-12508)
Miss Islington (bot) [Sat, 23 Mar 2019 07:46:15 +0000 (00:46 -0700)] 
bpo-33319: Clarify subprocess call docs. (GH-12508)

Clarify capturing or suppressing stdout and stderr on the old call APIs.

Do not state that they are equivalent to run() calls when they are not implemented using run as that was misleading. Unlike run they cannot handle stdout or stderr being set to PIPE without a risk of deadlock.
(cherry picked from commit 7a2e84c3488cfd6c108c6b41ff040825f1757566)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
6 years agobpo-35155: clarify protocol handler method naming (GH-10313)
Miss Islington (bot) [Fri, 22 Mar 2019 23:30:04 +0000 (16:30 -0700)] 
bpo-35155: clarify protocol handler method naming (GH-10313)

Clarify that the naming of protocol handler methods shouldn't be literally called "protocol" but should be named after the actual protocol.

https://bugs.python.org/issue35155
(cherry picked from commit dd7c4ceed90792f711347024852d4cf883a9ab9e)

Co-authored-by: Denton Liu <liu.denton+github@gmail.com>
6 years agobpo-36396: Remove fgBg param of idlelib.config.GetHighlight() (GH-12491)
Miss Islington (bot) [Fri, 22 Mar 2019 22:42:51 +0000 (15:42 -0700)] 
bpo-36396: Remove fgBg param of idlelib.config.GetHighlight() (GH-12491)

This param was only used once and changed the return type.
(cherry picked from commit c1419578a18d787393c7ccee149e7c1fff17a99e)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-35284: Fix the error handling in the compiler's compiler_call(). (GH-10625) ...
Zackery Spytz [Fri, 22 Mar 2019 13:20:49 +0000 (07:20 -0600)] 
bpo-35284: Fix the error handling in the compiler's compiler_call(). (GH-10625) (GH-12496)

compiler_call() needs to check if an error occurred during the
maybe_optimize_method_call() call.
(cherry picked from commit 97f5de01adf993aee17dcd26e22ae421d013f372)

6 years agobpo-23984: Improve descriptor documentation (GH-1034) (GH-12459)
Miss Islington (bot) [Fri, 22 Mar 2019 08:04:21 +0000 (01:04 -0700)] 
bpo-23984: Improve descriptor documentation (GH-1034) (GH-12459)

6 years agoRaise the timeout in test_multiprocessing_* for slow buildbots (GH-12489)
Miss Islington (bot) [Fri, 22 Mar 2019 07:54:32 +0000 (00:54 -0700)] 
Raise the timeout in test_multiprocessing_* for slow buildbots (GH-12489)

(cherry picked from commit 40b6907b377cfc8c4743007894364ac8c5a1c113)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
6 years agobpo-36256: Fix bug in parsermodule when parsing if statements (GH-12488) 12493/head
Miss Islington (bot) [Thu, 21 Mar 2019 23:56:20 +0000 (16:56 -0700)] 
bpo-36256: Fix bug in parsermodule when parsing if statements (GH-12488)

bpo-36256: Fix bug in parsermodule when parsing if statements

In the parser module, when validating nodes before starting the parsing with to create a ST in "parser_newstobject" there is a problem that appears when two arcs in the same DFA state has transitions with labels with the same type. For example, the DFA for if_stmt has a state with
two labels with the same type: "elif" and "else" (type NAME). The algorithm tries one by one the arcs until the label that starts the arc transition has a label with the same type of the current child label we are trying to accept. In this case, the arc for "elif" comes before the arc for "else"and passes this test (because the current child label is "else" and has the same type as "elif"). This lead to expecting a namedexpr_test (305) instead of a colon (11). The solution is to compare also the string representation (in case there is one) of the labels to see if the transition that we have is the correct one.
(cherry picked from commit 9a0000d15d27361eaa47b77600c7c00a9787a894)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
6 years agoFix registry key for Windows SDK detection (GH-12445)
Miss Islington (bot) [Thu, 21 Mar 2019 21:54:59 +0000 (14:54 -0700)] 
Fix registry key for Windows SDK detection (GH-12445)

(cherry picked from commit aedc273fd90e31c7a20904568de3115f8957395b)

Co-authored-by: Isuru Fernando <isuruf@gmail.com>
6 years agobpo-35978: Correctly skips venv tests in venvs (GH-12220)
Miss Islington (bot) [Thu, 21 Mar 2019 17:33:40 +0000 (10:33 -0700)] 
bpo-35978: Correctly skips venv tests in venvs (GH-12220)

Also fixes venvs from the build directory on Windows.
(cherry picked from commit 8bba81fd55873148c65b7d0e6a6effbd63048c76)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
6 years agobpo-36245: Avoid problems when building in a directory containing spaces. (GH-12241)
Miss Islington (bot) [Thu, 21 Mar 2019 16:25:11 +0000 (09:25 -0700)] 
bpo-36245: Avoid problems when building in a directory containing spaces. (GH-12241)

(cherry picked from commit 7ee88bf3e59493137a775368165c5c5fe1ed7f46)

Co-authored-by: Jess <jess@gmail.com>
6 years agobpo-36312: Fix decoders for some code pages. (GH-12369)
Miss Islington (bot) [Thu, 21 Mar 2019 04:31:57 +0000 (21:31 -0700)] 
bpo-36312: Fix decoders for some code pages. (GH-12369)

(cherry picked from commit c1e2c288f41cdc1c6e6e09d9a5277a58232ceb03)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-36367: Free buffer if realloc fails in tokenize.c (GH-12442) (GH-12471)
Victor Stinner [Wed, 20 Mar 2019 12:03:11 +0000 (13:03 +0100)] 
bpo-36367: Free buffer if realloc fails in tokenize.c (GH-12442) (GH-12471)

6 years ago[3.7] bpo-35564: add master_doc='contents' to conf.py (GH-12460)
Julien Palard [Wed, 20 Mar 2019 09:40:30 +0000 (10:40 +0100)] 
[3.7] bpo-35564: add master_doc='contents' to conf.py (GH-12460)

(cherry picked from commit fc8284e22074af8154e9865c8391b955f13a308b)

Co-authored-by: Jean-François B <jfbu@free.fr>
6 years agoFix compiler warning in call_readline() (GH-10820) (GH-12452)
Victor Stinner [Wed, 20 Mar 2019 00:00:41 +0000 (01:00 +0100)] 
Fix compiler warning in call_readline() (GH-10820) (GH-12452)

Replace strncpy() with memcpy() in call_readline() to fix the
following warning, the NUL byte is written manually just after:

Modules/readline.c: In function ‘call_readline’:
Modules/readline.c:1303:9: warning: ‘strncpy’ output truncated before
terminating nul copying as many bytes from a string as its length
[-Wstringop-truncation]
         strncpy(p, q, n);
         ^~~~~~~~~~~~~~~~
Modules/readline.c:1279:9: note: length computed here
     n = strlen(p);
         ^~~~~~~~~

(cherry picked from commit 1600f60414e620c4298c15dac803427d8f0a977c)

6 years agobpo-36365: Fix compiler warning in structseq.c (GH-12451)
Victor Stinner [Tue, 19 Mar 2019 23:32:11 +0000 (00:32 +0100)] 
bpo-36365: Fix compiler warning in structseq.c (GH-12451)

6 years agobpo-36236: Handle removed cwd at Python init (GH-12450)
Victor Stinner [Tue, 19 Mar 2019 23:30:45 +0000 (00:30 +0100)] 
bpo-36236: Handle removed cwd at Python init (GH-12450)

At Python initialization, the current directory is no longer
prepended to sys.path if it has been removed.

6 years agobpo-36356: pymain_free() calls _PyRuntime_Finalize() (GH-12436)
Victor Stinner [Tue, 19 Mar 2019 14:08:17 +0000 (15:08 +0100)] 
bpo-36356: pymain_free() calls _PyRuntime_Finalize() (GH-12436)

Ensure that _PyRuntime_Finalize() is always call. This change fix a
few memory leaks when running "python3 -V".

6 years agobpo-36307: Travis: upgrade to Xenial environment (GH-12356)
Inada Naoki [Tue, 19 Mar 2019 08:30:58 +0000 (17:30 +0900)] 
bpo-36307: Travis: upgrade to Xenial environment (GH-12356)

(cherry picked from commit 74ae50e53e59bbe39d6287b902757f0cd01327dc)

Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
6 years agobpo-36235: Enhance distutils test_customize_compiler() (GH-12403) (GH-12415)
Victor Stinner [Mon, 18 Mar 2019 17:34:11 +0000 (18:34 +0100)] 
bpo-36235: Enhance distutils test_customize_compiler() (GH-12403) (GH-12415)

The test test_customize_compiler() now mocks all sysconfig variables
and all environment variables used by customize_compiler().

(cherry picked from commit 72c7b372cf145fded93a9a776acc742a60090f95)

6 years agobpo-36272: Logging now propagates RecursionError (GH-12312) (GH-12391)
Miss Islington (bot) [Mon, 18 Mar 2019 14:22:41 +0000 (07:22 -0700)] 
bpo-36272: Logging now propagates RecursionError (GH-12312) (GH-12391)

(cherry picked from commit 65f64b1903ae85b97a30f514bbc1b7ce940c3af2)

Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
6 years agobpo-36317: Fix typo in _PyObject_FastCallDict documentation (GH-12383) (GH-12402)
Rémi Lapeyre [Mon, 18 Mar 2019 11:51:23 +0000 (12:51 +0100)] 
bpo-36317: Fix typo in _PyObject_FastCallDict documentation (GH-12383) (GH-12402)

(cherry picked from commit b4b97af8bed21e32eb77e7f7497acde1f8af4e70)

6 years agobpo-36321: Fix misspelled attribute in namedtuple() (GH-12375) (GH-12395)
Miss Islington (bot) [Mon, 18 Mar 2019 07:48:02 +0000 (00:48 -0700)] 
bpo-36321: Fix misspelled attribute in namedtuple() (GH-12375) (GH-12395)

(cherry picked from commit 23581c018fceb607fe829a41c6fbe81b4d502cab)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
6 years agoFix typo in unittest.mock documentation: manger -> manager (GH-12352)
Mariatta [Sun, 17 Mar 2019 23:53:06 +0000 (16:53 -0700)] 
Fix typo in unittest.mock documentation: manger -> manager (GH-12352)

(cherry picked from commit dc69f69f14fb89511d018a3927fc6378a58d2def)

Co-authored-by: Joan Massich <mailsik@gmail.com>
6 years agoFix "catchs" typos in NEWS entries (GH-12364)
Harmon [Sun, 17 Mar 2019 23:49:43 +0000 (18:49 -0500)] 
Fix "catchs" typos in NEWS entries (GH-12364)