]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Serhiy Storchaka [Fri, 5 Oct 2018 18:58:15 +0000 (21:58 +0300)]
[3.7] Fix a compiler warning added in bpo-34872. (GH-9722). (GH-9726)
(cherry picked from commit
addf8afb43af58b9bf56a0ecfd0f316dd60ac0c3 )
Serhiy Storchaka [Fri, 5 Oct 2018 18:46:24 +0000 (21:46 +0300)]
Use assertEqual() instead of assertEquals(). (GH-9721) (GH-9725)
Fixes warnings in test added in bpo-34603.
(cherry picked from commit
4642d5f59828e774585e9895b538b24d71b9df8e )
Miss Islington (bot) [Fri, 5 Oct 2018 18:27:44 +0000 (11:27 -0700)]
bpo-34902: Fixes VM image for Azure Pipelines build (GH-9719)
(cherry picked from commit
4313a293dae579f3406aa94508ff3803a79b0344 )
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
Miss Islington (bot) [Fri, 5 Oct 2018 16:06:17 +0000 (09:06 -0700)]
bpo-34825: Add more entries to os to pathlib reference table (GH-9608) (#9717)
The added functions are as below :
| os module | Pathlib |
| ------------- | ------------- |
| os.chmod | Path.chmod |
| os.mkdir | Path.mkdir |
| os.rename | Path.rename |
| os.replace | Path.replace |
| os.rmdir | Path.rmdir |
| os.remove, os.unlink | Path.unlink |
| os.path.samefile | Path.samefile |
Thanks
https://bugs.python.org/issue34825
(cherry picked from commit
6f9c55d1c0bb399911ded00bb6b3e6f43a514ea2 )
Co-authored-by: Xtreak <tirkarthi@users.noreply.github.com>
Miss Islington (bot) [Fri, 5 Oct 2018 14:35:18 +0000 (07:35 -0700)]
bpo-34906: Doc: Fix typos (GH-9712)
(cherry picked from commit
07fbbfde1b300369b4f8d1cfb80045fbb23b7091 )
Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
Miss Islington (bot) [Fri, 5 Oct 2018 07:33:36 +0000 (00:33 -0700)]
Fix a typo ssl.py docstring (GH-9697) (GH-9709)
(cherry picked from commit
fc7d1b3b6a2be7061c000245bb1faa438e42f5d8 )
Co-authored-by: Matt Eaton <agnosticdev@gmail.com>
Miss Islington (bot) [Thu, 4 Oct 2018 19:26:33 +0000 (12:26 -0700)]
bpo-34871: inspect: Don't pollute sys.modules (GH-9696) (#9701)
https://bugs.python.org/issue34871
(cherry picked from commit
6f85b826b527e240551613aeec3118a5469e3a33 )
Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
Elvis Pranskevichus [Wed, 3 Oct 2018 15:49:00 +0000 (11:49 -0400)]
[3.7] bpo-34872: Fix self-cancellation in C implementation of asyncio.Task (GH-9679) (GH-9691)
The C implementation of asyncio.Task currently fails to perform the
cancellation cleanup correctly in the following scenario.
async def task1():
async def task2():
await task3 # task3 is never cancelled
asyncio.current_task().cancel()
await asyncio.create_task(task2())
The actuall error is a hardcoded call to `future_cancel()` instead of
calling the `cancel()` method of a future-like object.
Thanks to Vladimir Matveev for noticing the code discrepancy and to
Yury Selivanov for coming up with a pathological scenario..
(cherry picked from commit
548ce9dedd2e90945970671d441436a6a91608ab )
Co-authored-by: Elvis Pranskevichus <elvis@magic.io>
https://bugs.python.org/issue34872
Miss Islington (bot) [Wed, 3 Oct 2018 06:33:42 +0000 (23:33 -0700)]
bpo-34879: Fix a possible null pointer dereference in bytesobject.c (GH-9683)
formatfloat() was not checking if PyBytes_FromStringAndSize()
failed, which could lead to a null pointer dereference in
_PyBytes_FormatEx().
(cherry picked from commit
96c593279400693226d5a560c420ae0fcf1731b9 )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Miss Islington (bot) [Tue, 2 Oct 2018 21:17:04 +0000 (14:17 -0700)]
bpo-34172: multiprocessing.Pool leaks resources after being deleted (GH-8450) (GH-9676)
Fix a reference issue inside multiprocessing.Pool that caused the pool to remain alive if it was deleted without being closed or terminated explicitly.
(cherry picked from commit
97bfe8d3ebb0a54c8798f57555cb4152f9b2e1d0 )
Co-authored-by: tzickel <tzickel@users.noreply.github.com>
Miss Islington (bot) [Tue, 2 Oct 2018 05:32:01 +0000 (22:32 -0700)]
Make it clear that the msg argument to assertRaises is keyword-only. (GH-9670)
(cherry picked from commit
be4e5b89204283a62e369439025f00362d0424f6 )
Co-authored-by: Benjamin Peterson <benjamin@python.org>
Miss Islington (bot) [Tue, 2 Oct 2018 05:12:02 +0000 (22:12 -0700)]
closes bpo-34868: Improve error message with '_' is combined with an invalid type specifier. (GH-9666)
(cherry picked from commit
cbda8fc5d76b10bcbb92d927537576c229143836 )
Co-authored-by: Benjamin Peterson <benjamin@python.org>
Miss Islington (bot) [Tue, 2 Oct 2018 00:43:54 +0000 (17:43 -0700)]
bpo-31865: Fix a couple of typos in the html.unescape() docs. (GH-9663)
(cherry picked from commit
30534cc7172f36092e0002bb7df482edc0d539ce )
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Miss Islington (bot) [Mon, 1 Oct 2018 10:19:33 +0000 (03:19 -0700)]
bpo-34476: Document that asyncio.sleep() always suspends. (GH-9643) (#9654)
(cherry picked from commit
cd602b8af2d14ff686261eeb18b80f718bb16550 )
Co-authored-by: Hrvoje Nikšić <hniksic@gmail.com>
Miss Islington (bot) [Sun, 30 Sep 2018 21:35:53 +0000 (14:35 -0700)]
bpo-34850: Replace is with == in idlelib.iomenu (GH-9649)
Patch by Serhiy Storchaka (in PR GH-9642).
(cherry picked from commit
5fa247d60d4f3f2b8c8ae8cb57363aca234344c2 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sun, 30 Sep 2018 18:19:15 +0000 (11:19 -0700)]
bpo-34854: Fix compiling string annotations containing lambdas. (GH-9645)
* Compiling a string annotation containing a lambda with keyword-only
argument without default value caused a crash.
* Remove the final "*" (it is incorrect syntax) in the representation of
lambda without *args and keyword-only arguments when compile from AST.
* Improve the representation of lambda without arguments.
(cherry picked from commit
2a2940e5c3e6d92f4fac5e9d361a1e224bb2f12e )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sat, 29 Sep 2018 16:33:05 +0000 (09:33 -0700)]
bpo-27351: Fix ConfigParser.read() documentation and docstring (GH-8123)
Switch "list" with "iterable" to match with the implementation.
(cherry picked from commit
e45473e3ca31e5b78dc85cab575f5bb60d5b7f8f )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Miss Islington (bot) [Sat, 29 Sep 2018 10:55:14 +0000 (03:55 -0700)]
Fix astuple in dataclasses documentation (GH-9631)
(cherry picked from commit
508d8205121868ef24cca99f1f952558b1ff2f2e )
Co-authored-by: 방성범 (Bang Seongbeom) <bangseongbeom@hotmail.com>
Miss Islington (bot) [Sat, 29 Sep 2018 06:01:48 +0000 (23:01 -0700)]
Fix incorrect error handling in _pickle.Unpickler.__init__() (GH-9630)
_pickle.Unpickler.__init__() should return -1 if Pdata_New() fails, not 1.
(cherry picked from commit
4b430e5f6954ef4b248e95bfb4087635dcdefc6d )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Miss Islington (bot) [Fri, 28 Sep 2018 13:07:56 +0000 (06:07 -0700)]
bpo-34521: Fix tests in test_multiprocessing_spawn to use correctly CMSG_SPACE (GH-9613) (GH-9619)
After some failures in AMD64 FreeBSD CURRENT Debug 3.x buildbots
regarding tests in test_multiprocessing_spawn and after examining
similar failures in test_socket, some errors in the calculation of
ancillary data buffers were found in multiprocessing.reduction.
CMSG_LEN() can often be used as the buffer size for recvmsg() to
receive a single item of ancillary data, but RFC 3542 requires portable
applications to use CMSG_SPACE() and thus include space for padding,
even when the item will be the last in the buffer.
The failures we experience are due to the usage of CMSG_LEN() instead of
CMSG_SPACE().
(cherry picked from commit
077061a7b24917aaf31057885c69919c5a553c88 )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Miss Islington (bot) [Fri, 28 Sep 2018 06:12:54 +0000 (23:12 -0700)]
bpo-34736: improve error message for invalid length b64decode inputs (GH-9563)
Improvements:
1. Include the number of valid data characters in the error message.
2. Mention "number of data characters" rather than "length".
https://bugs.python.org/issue34736
(cherry picked from commit
1fba2ffc37da52c08db51fe4360459990b0311c9 )
Co-authored-by: Tal Einat <taleinat+github@gmail.com>
Miss Islington (bot) [Thu, 27 Sep 2018 19:53:18 +0000 (12:53 -0700)]
bpo-34802: Fix asyncio.iscoroutine() docs (GH-9611)
(cherry picked from commit
59ee5b12938efbf534f2a19300a847bf6b23a77d )
Co-authored-by: Yury Selivanov <yury@magic.io>
Yury Selivanov [Thu, 27 Sep 2018 19:33:23 +0000 (15:33 -0400)]
[3.7] bpo-34762: Update PyContext* refs to PyObject* in asyncio and decimal (GH-9610)
Andrés Delfino [Thu, 27 Sep 2018 15:25:47 +0000 (12:25 -0300)]
Fix markup for xml.sax entry in 3.7.1 notes (GH-9602)
Miss Islington (bot) [Thu, 27 Sep 2018 13:30:47 +0000 (06:30 -0700)]
Fix tests in test_socket to use correctly CMSG_LEN (GH-9594)
After some failures in AMD64 FreeBSD CURRENT Debug 3.x buildbots
regarding tests in test_socket that are using
testFDPassSeparateMinSpace(), FreeBDS revision 337423 was pointed
out to be the reason the test started to fail.
A close examination of the manpage for cmsg_space(3) reveals that
the number of file descriptors needs to be taken into account when
using CMSG_LEN().
This commit fixes tests in test_socket to use correctly CMSG_LEN, taking
into account the number of FDs.
(cherry picked from commit
7291108d88ea31d205da4db19d202d6cbffc6d93 )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Miss Islington (bot) [Thu, 27 Sep 2018 11:46:38 +0000 (04:46 -0700)]
bpo-34819: Use a monotonic clock to compute timeouts in concurrent.futures (GH-9599)
Use a monotonic clock to compute timeouts in :meth:`Executor.map` and :func:`as_completed`, in order to prevent timeouts from deviating when the system clock is adjusted.
This may not be sufficient on all systems. On POSIX for example, the actual waiting (e.g. in ``sem_timedwait``) is specified to rely on the CLOCK_REALTIME clock.
(cherry picked from commit
a94ee12c26aa8dd7dce01373779df8055aff765b )
Co-authored-by: orlnub123 <orlnub123@gmail.com>
Ned Deily [Thu, 27 Sep 2018 00:12:10 +0000 (20:12 -0400)]
Post release bump
Ned Deily [Thu, 27 Sep 2018 00:04:22 +0000 (20:04 -0400)]
Merge tag 'v3.7.1rc1' into 3.7
Miss Islington (bot) [Wed, 26 Sep 2018 15:21:15 +0000 (08:21 -0700)]
Clarify that Type[SomeTypeVar] is legal (GH-9585)
Currently, the docs state that when doing `Type[X]`, X is only allowed to
be a class, a union of classes, and Any. This pull request amends
that sentence to clarify X may also be a typevar (or a union involving
classes, Any, and TypeVars).
(cherry picked from commit
130717fe58abb2ab9e7938207df0c130a2562747 )
Co-authored-by: Michael Lee <michael.lee.0x2a@gmail.com>
Victor Stinner [Wed, 26 Sep 2018 14:45:19 +0000 (07:45 -0700)]
Drop confusing commented out code in pystrtod.c (GH-6072) (GH-9586)
Fix the following warning:
Python/pystrtod.c: In function 'format_float_short':
Python/pystrtod.c:1007:13: warning: 'strncpy' output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation]
strncpy(p, "ERR", 3);
(cherry picked from commit
9fb84157595a385f15799e5d0729c1e1b0ba9d38 )
Ned Deily [Wed, 26 Sep 2018 06:16:09 +0000 (02:16 -0400)]
3.7.1rc1
Miss Islington (bot) [Wed, 26 Sep 2018 05:19:08 +0000 (22:19 -0700)]
Fix pickletools doc for NEWFALSE. (GH-9432)
Also make docs for NEWFALSE and NEWTRUE more consistent
with docs for other opcodes.
(cherry picked from commit
488cfb78c8b81075942b5e4cc9630e7a6dd9dc28 )
Co-authored-by: Krzysztof Wroblewski <krzysiek.wr@gmail.com>
Ned Deily [Wed, 26 Sep 2018 03:38:11 +0000 (23:38 -0400)]
bpo-34370: Update Tk 8.6 used with macOS installers
Have macOS 10.9+ installer builds for 3.7.1rc and 3.6.7rc use a development
snapshot of Tk 8.6 (post-8.6.8) to mitigate certain scroller issues seen
with IDLE and tkinter apps.
Miss Islington (bot) [Wed, 26 Sep 2018 04:17:52 +0000 (21:17 -0700)]
bpo-34320: Fix dict(o) didn't copy order of dict subclass (GH-8624)
When dict subclass overrides order (`__iter__()`, `keys()`, and `items()`), `dict(o)`
should use it instead of dict ordering.
https://bugs.python.org/issue34320
(cherry picked from commit
2aaf98c16ae3070378de523a173e29644037d8bd )
Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
Yury Selivanov [Tue, 25 Sep 2018 22:00:15 +0000 (18:00 -0400)]
[3.7] asyncio/docs: Replace Python 4.0 -> 3.10 (GH-9580)
Miss Islington (bot) [Tue, 25 Sep 2018 18:57:49 +0000 (11:57 -0700)]
bpo-34790: [docs] Passing coroutines to asyncio.wait() can be confusing. (GH-9543)
(cherry picked from commit
996859a90df51f84eab47351702cb59c6db4428a )
Co-authored-by: Yury Selivanov <yury@magic.io>
Miss Islington (bot) [Tue, 25 Sep 2018 18:02:06 +0000 (11:02 -0700)]
bpo-34162: idlelib/NEWS.txt entry for squeezer (GH-9573)
(cherry picked from commit
22ef31d0b4b497eda5e356528c3e1d29584d6757 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Tue, 25 Sep 2018 16:17:57 +0000 (09:17 -0700)]
bpo-
1529353 : IDLE - Squeezer What's New for 3.7.1 (GH-9568)
(cherry picked from commit
ea718d377db3941ecfc86288a3465fce653cc682 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Tue, 25 Sep 2018 16:15:14 +0000 (09:15 -0700)]
bpo-
1529353 : IDLE: Squeezer What's New for 3.6.7 (GH-9567)
(cherry picked from commit
dac712d51667227ce3862fc61be6a8094b1066fa )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Tue, 25 Sep 2018 15:49:28 +0000 (08:49 -0700)]
bpo-33937: Catch ENOMEM error in test_socket (GH-9557)
Fix test_socket.SendmsgSCTPStreamTest: catch ENOMEM error.
testSendmsgTimeout() and testSendmsgDontWait() randomly fail on
Travis CI with: "OSError: [Errno 12] Cannot allocate memory".
(cherry picked from commit
46f40be8b907854deb81c6132b7cb038e9e5202a )
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Miss Islington (bot) [Tue, 25 Sep 2018 12:38:45 +0000 (05:38 -0700)]
bpo-
1529353 : IDLE: squeeze large output in the shell (GH-7626)
(cherry picked from commit
604e7b9931f9e7881a2941816e538f5f15930db8 )
Co-authored-by: Tal Einat <taleinat+github@gmail.com>
Miss Islington (bot) [Tue, 25 Sep 2018 04:44:11 +0000 (21:44 -0700)]
bpo-34770: Fix a possible null pointer dereference in pyshellext.cpp (GH-9497)
The GlobalLock() call in UpdateDropDescription() was not checked for
failure.
https://bugs.python.org/issue34770
(cherry picked from commit
f6c8007a29b95b3ea3ca687a9b4924769a696328 )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Miss Islington (bot) [Tue, 25 Sep 2018 03:35:46 +0000 (20:35 -0700)]
Fix wrong exception reference: BrokenThreadPool -> BrokenProcessPool (GH-9533)
(cherry picked from commit
b60b4683f6c995e9205f68439023c80a0b628f39 )
Co-authored-by: Joni Kähärä <joni.kahara@gmail.com>
Miss Islington (bot) [Tue, 25 Sep 2018 00:23:07 +0000 (17:23 -0700)]
bpo-34162: Update idlelib/NEWS.txt to 2018-9-24. (GH-9551)
(cherry picked from commit
16fba6231458cc1ff82db8695ee772b74131cc83 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Christophe Nanteuil [Mon, 24 Sep 2018 16:33:44 +0000 (18:33 +0200)]
[3.7]Documentation minor update related to 3.6 - 3.7 migration (GH-9501)
Change version from 3.6 to 3.7 in the documentation when it addresses newcomers.
original request from python/python-docs-fr#273
Miss Islington (bot) [Mon, 24 Sep 2018 15:28:23 +0000 (08:28 -0700)]
bpo-34783: Add test_cmd_line_script.test_nonexisting_script() (GH-9535)
Make sure that "./python script.py" does not crash if the script
file doesn't exist.
(cherry picked from commit
a46467ff198c42c8f34768c7be4b4562f6f44736 )
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Steve Dower [Mon, 24 Sep 2018 12:43:56 +0000 (08:43 -0400)]
Update Azure Pipelines badge (GH-9530)
Miss Islington (bot) [Mon, 24 Sep 2018 12:43:33 +0000 (05:43 -0700)]
bpo-34582: Update syntax of Azure Pipelines builds (GH-9521)
Christian Heimes [Mon, 24 Sep 2018 12:38:37 +0000 (14:38 +0200)]
[3.7] bpo-17239: Disable external entities in SAX parser (GH-9217) (GH-9511)
The SAX parser no longer processes general external entities by default
to increase security. Before, the parser created network connections
to fetch remote files or loaded local files from the file system for DTD
and entities.
Signed-off-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue17239.
(cherry picked from commit
17b1d5d4e36aa57a9b25a0e694affbd1ee637e45 )
Co-authored-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue17239
Victor Stinner [Mon, 24 Sep 2018 12:03:01 +0000 (05:03 -0700)]
bpo-34783: Fix Py_Main() (GH-9526)
Fix a crash with musl libc (on Alpine Linux) when the script filename
specified on the command line doesn't exist. pymain_open_filename()
now gets the current core configuration from the interpreter state.
Modify the code to make it closer to the master branch:
* Rename _Py_CommandLineDetails to _PyCmdline
* Remove _PyMain.config: replaced with a local variable
'local_config' in pymain_init()
* Reorganize pymain_main(): move code using the "local config"
into pymain_init()
* As soon as possible, switch from the local config to the core
configuration attached to the interpreter.
Miss Islington (bot) [Sun, 23 Sep 2018 13:31:35 +0000 (06:31 -0700)]
bpo-34548: IDLE: use configured theme colors in TextView (GH-9008)
https://bugs.python.org/issue34548
(cherry picked from commit
c87d9f406bb23657c1b4cd63017bb7bd7693a1fb )
Co-authored-by: Tal Einat <taleinat+github@gmail.com>
Serhiy Storchaka [Sun, 23 Sep 2018 07:31:53 +0000 (10:31 +0300)]
bpo-34421: Improve distutils logging for non-ASCII strings. (GH-9126) (GH-9506)
Use "backslashreplace" instead of "unicode-escape". It is not
implementation depended and escapes only non-encodable characters.
Also simplify the code.
(cherry picked from commit
4b860fd )
Christian Heimes [Sun, 23 Sep 2018 07:22:52 +0000 (09:22 +0200)]
[3.7] bpo-34670: Add TLS 1.3 post handshake auth (GH-9460) (GH-9505)
Add SSLContext.post_handshake_auth and
SSLSocket.verify_client_post_handshake for TLS 1.3 post-handshake
authentication.
Signed-off-by: Christian Heimes <christian@python.org>q
https://bugs.python.org/issue34670.
(cherry picked from commit
9fb051f032c36b9f6086b79086b4d6b7755a3d70 )
Co-authored-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue34670
Miss Islington (bot) [Sat, 22 Sep 2018 18:03:04 +0000 (11:03 -0700)]
bpo-34472: Add data descriptor signature to zipfile (GH-8871) (GH-9399)
This makes streamed zips compatible with MacOS Archive Utility and
other applications.
(cherry picked from commit
4ba3b50bfe6d50cd82d208023ea23e203ab50589 )
Co-authored-by: Silas Sewell <silas@sewell.org>
Ethan Furman [Sat, 22 Sep 2018 05:26:32 +0000 (22:26 -0700)]
[3.7] bpo-29577: Enum: mixin classes don't mix well with already mixed Enums (GH-9328) (GH-9486)
* bpo-29577: allow multiple mixin classes
Miss Islington (bot) [Sat, 22 Sep 2018 05:00:42 +0000 (22:00 -0700)]
bpo-34759: Fix error handling in ssl 'unwrap()' (GH-9468)
OpenSSL follows the convention that whenever you call a function, it
returns an error indicator value; and if this value is negative, then
you need to go look at the actual error code to see what happened.
Commit
c6fd1c1c3a introduced a small mistake in
_ssl__SSLSocket_shutdown_impl: instead of checking whether the error
indicator was negative, it started checking whether the actual error
code was negative, and it turns out that the error codes are never
negative. So the effect was that 'unwrap()' lost the ability to raise
SSL errors.
https://bugs.python.org/issue34759
(cherry picked from commit
c0da582b227f311126e278b5553a7fa89c79b054 )
Co-authored-by: Nathaniel J. Smith <njs@pobox.com>
Miss Islington (bot) [Sat, 22 Sep 2018 04:57:46 +0000 (21:57 -0700)]
[3.7] bpo-34623: Mention CVE-2018-14647 in news entry (GH-9482) (GH-9488)
https://bugs.python.org/issue34623
(cherry picked from commit
026337a7101369297c8083047d2f3c6fc9dd1e2b )
Co-authored-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue34623
Miss Islington (bot) [Sat, 22 Sep 2018 01:29:34 +0000 (18:29 -0700)]
bpo-34537: Fix test_gdb:test_strings with LC_ALL=C (GH-9483)
We cannot simply call locale.getpreferredencoding() here,
as GDB might have been linked against a different version
of Python with a different encoding and coercion policy
with respect to PEP 538 and PEP 540.
Thanks to Victor Stinner for a hint on how to fix this.
(cherry picked from commit
7279b5125e7c5d84a473d250b27d353cb7f6628e )
Co-authored-by: Elvis Pranskevichus <elvis@magic.io>
Miss Islington (bot) [Fri, 21 Sep 2018 20:35:34 +0000 (13:35 -0700)]
bpo-33649: Fix gather() docs; fix title; few other nits. (GH-9475) (GH-9481)
(cherry picked from commit
db1a80e97aa7217c561fb3627f70be1882de9534 )
Co-authored-by: Yury Selivanov <yury@magic.io>
Miss Islington (bot) [Fri, 21 Sep 2018 20:34:46 +0000 (13:34 -0700)]
Make docs of exitcode for subprocess.getstatusoutput more clear. (GH-9477)
Make it more accurate and not limited to UNIX.
(cherry picked from commit
7d161726e4ddd2b2cdd7ac58a7e9e9ea3f57a807 )
Co-authored-by: Xiang Zhang <angwerzx@126.com>
Miss Islington (bot) [Fri, 21 Sep 2018 19:48:10 +0000 (12:48 -0700)]
bpo-34762: Fix contextvars C API to use PyObject* pointer types. (GH-9473)
(cherry picked from commit
2ec872b31e25cee1f983fe07991fb53f3fd1cbac )
Co-authored-by: Yury Selivanov <yury@magic.io>
Miss Islington (bot) [Fri, 21 Sep 2018 07:41:50 +0000 (00:41 -0700)]
bpo-34735: Fix a memory leak in Modules/timemodule.c (GH-9418)
There was a missing PyMem_Free(format) in time_strftime().
(cherry picked from commit
91e6c8717b7dcbcc46b189509de5f2d335819f37 )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Miss Islington (bot) [Fri, 21 Sep 2018 01:52:36 +0000 (18:52 -0700)]
closes bpo-34656: Avoid relying on signed overflow in _pickle memos. (GH-9261)
(cherry picked from commit
a4ae828ee416a66d8c7bf5ee71d653c2cc6a26dd )
Co-authored-by: Benjamin Peterson <benjamin@python.org>
Steve Dower [Thu, 20 Sep 2018 21:39:21 +0000 (14:39 -0700)]
Fixes tests requiring extra environment values on Windows (GH-9462)
Miss Islington (bot) [Thu, 20 Sep 2018 17:20:32 +0000 (10:20 -0700)]
bpo-34743: Fix test_database_source_name under SQLite 3.7.9 (GH-9426)
(cherry picked from commit
b10a64d117de6121ea3e79c467c4107f8f399f3d )
Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
Miss Islington (bot) [Thu, 20 Sep 2018 16:57:19 +0000 (09:57 -0700)]
bpo-33649: More improvements (GH-9439)
(cherry picked from commit
e247b46cba4f4d32ea96a15dbc36d73265171106 )
Co-authored-by: Yury Selivanov <yury@magic.io>
Miss Islington (bot) [Thu, 20 Sep 2018 15:56:56 +0000 (08:56 -0700)]
bpo-32215: Fix performance regression in sqlite3 (GH-8511)
(cherry picked from commit
8d1e190fc507a9e304f6817e761e9f628a23cbd8 )
Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
Miss Islington (bot) [Thu, 20 Sep 2018 15:23:45 +0000 (08:23 -0700)]
bpo-19756: Prevent test failures due to EADDRNOTAVAIL (GH-9446)
(cherry picked from commit
8213eaddf3ce8e87564d2949454903a1484748b5 )
Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
Miss Islington (bot) [Thu, 20 Sep 2018 05:21:08 +0000 (22:21 -0700)]
bpo-34746: Fix stop -> close (GH-9437)
(cherry picked from commit
ffef50f1f5907e5f0f175b12088d3e509011f126 )
Co-authored-by: Yury Selivanov <yury@magic.io>
Miss Islington (bot) [Wed, 19 Sep 2018 23:41:11 +0000 (16:41 -0700)]
Enables test result collection for CI builds (GH-9433)
(cherry picked from commit
fd54a45f7987d5b3343c74cb49a12bd39bdad5bc )
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
Yury Selivanov [Wed, 19 Sep 2018 21:51:17 +0000 (17:51 -0400)]
bpo-34733: Return of the docs search bar (GH-9431)
Partially revert changes to Doc/tools/templates/layout.html
accidentally committed in
512d7101098b971837cbb406942215244f636547 .
Miss Islington (bot) [Wed, 19 Sep 2018 21:34:29 +0000 (14:34 -0700)]
Ignores failure to update lists (GH-9424)
(cherry picked from commit
76531e2e82319a487d659bc469441bd4b8251608 )
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
Miss Islington (bot) [Wed, 19 Sep 2018 20:30:40 +0000 (13:30 -0700)]
bpo-34712: Fix style in examples in "Input and Output" (GH-9361)
A couple of fixes here to make this more PEP-8:
* Avoid multiple statements on one line with `;` statement separator -- this is very rare in Python and is "generally discouraged" in PEP 8 (and if used, per PEP 8 there shouldn't be a space before the `;`)
* Add output for the first "Formatted String Literals" example. (Side note: are the doctests for this being run? If so, why didn't it fail?)
* Avoid space before `!r`. I have generally not seen spaces before the `!`, and this also matches the style used in the docs here: https://docs.python.org/3/library/string.htmlGH-format-string-syntax
https://bugs.python.org/issue34712
(cherry picked from commit
3705b9862025705ea60041a9e310f99a164db722 )
Co-authored-by: Ben Hoyt <benhoyt@gmail.com>
Victor Stinner [Wed, 19 Sep 2018 19:01:52 +0000 (12:01 -0700)]
Revert "[3.7] bpo-34589: Add -X coerce_c_locale option; C locale coercion off by default (GH-9379)" (GH-9416)
This reverts commit
144f1e2c6f4a24bd288c045986842c65cc289684 .
Miss Islington (bot) [Tue, 18 Sep 2018 22:09:51 +0000 (15:09 -0700)]
bpo-33649: Add a high-level section about Futures; few quick fixes (GH-9403)
Co-authored-by: Elvis Pranskevichus <elvis@magic.io>
(cherry picked from commit
471503954a91d86cf04228c38134108c67a263b0 )
Co-authored-by: Yury Selivanov <yury@magic.io>
Miss Islington (bot) [Tue, 18 Sep 2018 18:48:22 +0000 (11:48 -0700)]
bpo-34582: Adds JUnit XML output for regression tests (GH-9210)
(cherry picked from commit
d0f49d2f5085ca68e3dc8725f1fb1c9674bfb5ed )
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
Miss Islington (bot) [Tue, 18 Sep 2018 13:11:09 +0000 (06:11 -0700)]
bpo-34623: Use XML_SetHashSalt in _elementtree (GH-9146)
The C accelerated _elementtree module now initializes hash randomization
salt from _Py_HashSecret instead of libexpat's default CPRNG.
Signed-off-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue34623
(cherry picked from commit
cb5778f00ce48631c7140f33ba242496aaf7102b )
Co-authored-by: Christian Heimes <christian@python.org>
Miss Islington (bot) [Tue, 18 Sep 2018 07:00:58 +0000 (00:00 -0700)]
bpo-33649: Fix markup; add another note that asyncio.run is 3.7+ (GH-9389)
(cherry picked from commit
b042cf10c6084d14279c55a7e0d2d7595ff4e694 )
Co-authored-by: Yury Selivanov <yury@magic.io>
Miss Islington (bot) [Tue, 18 Sep 2018 06:27:27 +0000 (23:27 -0700)]
Fix syntax error on Asyncio example in doc (GH-9387) (GH-9388)
The `gather` method requires to close the parenthesis, but it is being closed twice.
(cherry picked from commit
9c53fa6ad9cd23fb03867b4a1f74264c426c1772 )
Co-authored-by: Miguel Ángel García <magmax@users.noreply.github.com>
Miss Islington (bot) [Tue, 18 Sep 2018 06:27:07 +0000 (23:27 -0700)]
Change "set_after" reference to `say_after`. (GH-9384) (GH-9386)
(cherry picked from commit
7bfbda46f49c0b2c43e128835106cf13315b6ae8 )
Co-authored-by: Danny Hermes <daniel.j.hermes@gmail.com>
Miss Islington (bot) [Tue, 18 Sep 2018 04:12:05 +0000 (21:12 -0700)]
bpo-33649: Note that asyncio.run() calls shutdown_asyncgens() (GH-9380)
(cherry picked from commit
ac94e38d076aebc56c2ff96a249b5e40f32633ea )
Co-authored-by: Yury Selivanov <yury@magic.io>
Victor Stinner [Tue, 18 Sep 2018 01:01:39 +0000 (18:01 -0700)]
[3.7] bpo-34589: Add -X coerce_c_locale option; C locale coercion off by default (GH-9379)
* bpo-34589: Make _PyCoreConfig.coerce_c_locale private (GH-9371)
_PyCoreConfig:
* Rename coerce_c_locale to _coerce_c_locale
* Rename coerce_c_locale_warn to _coerce_c_locale_warn
These fields are now private (name prefixed by "_").
(cherry picked from commit
188ebfa475a6f6aa2d0ea14ca8e1fbe7865b6d27 )
* bpo-34589: C locale coercion off by default (GH-9073)
Py_Initialize() and Py_Main() cannot enable the C locale coercion
(PEP 538) anymore: it is always disabled. It can now only be enabled
by the Python program ("python3).
test_embed: get_filesystem_encoding() doesn't have to set PYTHONUTF8
nor PYTHONCOERCECLOCALE, these variables are already set in the
parent.
(cherry picked from commit
7a0791b6992d420dc52536257f2f093851ed7215 )
* bpo-34589: Add -X coerce_c_locale command line option (GH-9378)
Add a new -X coerce_c_locale command line option to control C locale
coercion (PEP 538).
(cherry picked from commit
dbdee0073cf0b88fe541980ace1f650900f455cc )
Yury Selivanov [Mon, 17 Sep 2018 23:35:30 +0000 (19:35 -0400)]
bpo-33649: Backport asyncio docs from 'master' to 3.7 (GH-9377)
Miss Islington (bot) [Mon, 17 Sep 2018 22:42:09 +0000 (15:42 -0700)]
bpo-34717: Stop numbering stdlib titles/sections in the docs (GH-9370)
(cherry picked from commit
c62ab2862db2382808bb2228760eebdda3f608bd )
Co-authored-by: Yury Selivanov <yury@magic.io>
Miss Islington (bot) [Mon, 17 Sep 2018 22:39:18 +0000 (15:39 -0700)]
bpo-34267: Update find_python.bat to use 3.7 if available (GH-8552)
(cherry picked from commit
6750922f8d3428d84a016c34d6fcd99659e8610c )
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
Miss Islington (bot) [Mon, 17 Sep 2018 21:27:59 +0000 (14:27 -0700)]
bpo-34587, test_socket: remove RDSTest.testCongestion() (GH-9277)
The test tries to fill the receiver's socket buffer and expects an
error. But the RDS protocol doesn't require that. Moreover, the Linux
implementation of RDS expects that the producer of the messages
reduces its rate, it's not the role of the receiver to trigger an
error.
The test fails on Fedora 28 by design, so remove it.
(cherry picked from commit
7484bdfd1e2e33fdd2c44dd4ffa044aacd495337 )
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Miss Islington (bot) [Mon, 17 Sep 2018 19:12:13 +0000 (12:12 -0700)]
bpo-32533: Fixed thread-safety of error handling in _ssl. (GH-7158)
(cherry picked from commit
c6fd1c1c3a65217958b68df3a4991e4f306e9b7d )
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
Miss Islington (bot) [Mon, 17 Sep 2018 13:09:32 +0000 (06:09 -0700)]
bpo-33216: Improve the documentation for CALL_FUNCTION_* (GH-8338) (GH-8784)
(cherry picked from commit
5e99b56d6b249995a4fa2bc09c0bb03841f49572 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 17 Sep 2018 13:08:45 +0000 (06:08 -0700)]
bpo-34341: Fix appending to ZIP archives with the ZIP64 extension. (GH-8683)
(cherry picked from commit
9bdb7be482aef8f60daa1d36606568a132dcb616 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 17 Sep 2018 12:18:23 +0000 (05:18 -0700)]
bpo-34710: fix SSL module build (GH-9347)
Include ``openssl/dh.h`` header file to fix implicit function declaration of ``DH_free()``.
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
(cherry picked from commit
b3a271fc0ce3e13e427be8914decfc205a220ca8 )
Co-authored-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Miss Islington (bot) [Mon, 17 Sep 2018 12:10:56 +0000 (05:10 -0700)]
bpo-34610: Fixed iterator of multiprocessing.managers.DictProxy. (GH-9113)
(cherry picked from commit
e0e5065daef36dafe10a46eaa8b7800274d73062 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sun, 16 Sep 2018 05:53:13 +0000 (22:53 -0700)]
bpo-34603, ctypes/libffi_msvc: Fix returning structs from functions (GH-9258)
(cherry picked from commit
7843caeb909bd907e903606414e238db4082315a )
Co-authored-by: Vladimir Matveev <v2matveev@outlook.com>
Miss Islington (bot) [Sat, 15 Sep 2018 17:52:57 +0000 (10:52 -0700)]
closes bpo-34515: Support non-ASCII identifiers in lib2to3. (GH-8950)
(cherry picked from commit
10a428b64b3f224e2ccd40ff2afb141b9b3425b1 )
Co-authored-by: Monson Shao <holymonson@gmail.com>
Miss Islington (bot) [Fri, 14 Sep 2018 21:30:04 +0000 (14:30 -0700)]
bpo-32933: Implement __iter__ method on mock_open() (GH-5974)
(cherry picked from commit
2087023fdec2c89070bd14f384a3c308c548a94a )
Co-authored-by: Tony Flury <anthony.flury@btinternet.com>
Miss Islington (bot) [Fri, 14 Sep 2018 19:15:10 +0000 (12:15 -0700)]
Fix "Python" casing in a few places (GH-9001) (GH-9313)
(cherry picked from commit
271818fe279df5ab292789f97c3a52c477bd8f13 )
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Miss Islington (bot) [Fri, 14 Sep 2018 18:05:38 +0000 (11:05 -0700)]
closes bpo-28955: Clarified comparisons between NaN and number in reference documentation (GH-5982)
Co-authored-by: Benjamin Peterson <benjamin@python.org>
(cherry picked from commit
ad8a0004206ba7aec5a8a60fce413da718080db2 )
Co-authored-by: Tony Flury <anthony.flury@btinternet.com>
Miss Islington (bot) [Fri, 14 Sep 2018 17:47:14 +0000 (10:47 -0700)]
bpo-34363: dataclasses.asdict() and .astuple() now handle fields which are namedtuples. (GH-9151) (GH-9304)
(cherry picked from commit
9b9d97dd139a799d28ff8bc90d118b1cac190b03 )
Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
Miss Islington (bot) [Fri, 14 Sep 2018 16:28:07 +0000 (09:28 -0700)]
Change the xkcd link in comment over https. (GH-9293)
(cherry picked from commit
83df50ea5757816c7338d27f21fd18b1e79206f7 )
Co-authored-by: 觉 <Xdminsy@users.noreply.github.com>
Miss Islington (bot) [Fri, 14 Sep 2018 16:22:48 +0000 (09:22 -0700)]
Don't run AC_STRUCT_TIMEZONE twice. (GH-9305)
(cherry picked from commit
a4414ef20b971e6803309acebfa85b1621ac625e )
Co-authored-by: Benjamin Peterson <benjamin@python.org>
Miss Islington (bot) [Fri, 14 Sep 2018 08:13:17 +0000 (01:13 -0700)]
Note that distinct argument patterns can be cached separately (GH-9298) (GH-9299)
(cherry picked from commit
902bcd9a1e2c73c6de5510b771c590b618c4c94e )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>