]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Mon, 18 Nov 2019 21:59:51 +0000 (13:59 -0800)]
bpo-38622: Ensure ctypes.PyObj_FromPtr audit event passes tuples as a single argument (GH-17243)
(cherry picked from commit
dcf1f83de8678b09df5bd7d04ca5f4ef1cd02aca )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Mon, 18 Nov 2019 21:58:02 +0000 (13:58 -0800)]
bpo-38722: Runpy use io.open_code() (GH-17234)
https://bugs.python.org/issue38722
Automerge-Triggered-By: @taleinat
(cherry picked from commit
e243bae9999418859106328d9fce71815b7eb2fe )
Co-authored-by: jsnklln <jsnklln@gmail.com>
Miss Islington (bot) [Mon, 18 Nov 2019 19:53:34 +0000 (11:53 -0800)]
bpo-38622: Add missing audit events for ctypes module (GH-17158)
(cherry picked from commit
00923c63995e34cdc25d699478f113de99a69df9 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Mon, 18 Nov 2019 17:53:21 +0000 (09:53 -0800)]
bpo-38809: Windows build scripts use python.exe from virtual envs (GH-17164)
https://bugs.python.org/issue38809
(cherry picked from commit
ee703cbb418b7458bebb1d26a5e19d6b55280b28 )
Co-authored-by: Tal Einat <taleinat+github@gmail.com>
Miss Islington (bot) [Mon, 18 Nov 2019 15:42:13 +0000 (07:42 -0800)]
Correct the description of the 3.7 change in urllib.parse.quote (GH-17065)
`~` is now treated as an unreserved character (i.e. it doesn't get quoted), not a reserved one.
(cherry picked from commit
f49f6baa6bf7916ac039194c24b59d2eff5b180a )
Co-authored-by: Роман Донченко <dpb@corrigendum.ru>
Miss Islington (bot) [Mon, 18 Nov 2019 15:10:31 +0000 (07:10 -0800)]
bpo-38823: Clean up refleaks in _tkinter initialization. (GH-17206)
https://bugs.python.org/issue38823
(cherry picked from commit
289cf0fbf78c4f38c38ac71ac8b772be7ec2672f )
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
Miss Islington (bot) [Mon, 18 Nov 2019 14:29:15 +0000 (06:29 -0800)]
bpo-16576: Add checks for bitfields passed by value to functions. (GH-17097) (GH-17223)
(cherry picked from commit
106271568c58cfebae58f0c52b640dbe716ba2ce )
Vinay Sajip [Mon, 18 Nov 2019 12:23:46 +0000 (12:23 +0000)]
[3.8] bpo-38830: Correct slot signature in Qt example. (GH-17220) (GH-17221)
(cherry picked from commit
5383956583bb758f3828513bcdd011871f24a0e8 )
Miss Islington (bot) [Mon, 18 Nov 2019 06:17:14 +0000 (22:17 -0800)]
bpo-38678: Improve argparse example in tutorial (GH-17207) (GH-17212)
(cherry picked from commit
04c79d6088a22d467f04dbe438050c26de22fa85 )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Sun, 17 Nov 2019 22:13:33 +0000 (14:13 -0800)]
bpo-25866: Minor cleanups to "sequence" in docs (GH-17177) (GH-17208)
(cherry picked from commit
4544e78ec4558b75bf95e5b7dfc1b5bbb07ae5f0 )
Co-authored-by: alclarks <57201106+alclarks@users.noreply.github.com>
Miss Islington (bot) [Sun, 17 Nov 2019 00:16:33 +0000 (16:16 -0800)]
bpo-38823: Clean up refleaks in _contextvars initialization. (GH-17198)
https://bugs.python.org/issue38823
(cherry picked from commit
143a97f64128070386b12a0ee589bdaad5e51f40 )
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
Miss Islington (bot) [Sat, 16 Nov 2019 22:44:15 +0000 (14:44 -0800)]
bpo-38823: Clean up refleaks in _asyncio initialization. (GH-17195)
https://bugs.python.org/issue38823
(cherry picked from commit
c3f6bdc332d23588102eba749a5929dd5bb67c9d )
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
Miss Islington (bot) [Sat, 16 Nov 2019 18:35:08 +0000 (10:35 -0800)]
Fix typo in Lib/socketserver.py (GH-17024)
changed 'This is bad class design, but save some typing'
into 'This is bad class design, but saves some typing'.
(cherry picked from commit
d0acdfcf345b44b01e59f3623dcdab6279de686a )
Co-authored-by: Jason (Perry) Taylor <jtaylor@seek.com.au>
Miss Islington (bot) [Sat, 16 Nov 2019 00:21:27 +0000 (16:21 -0800)]
bpo-38453: Ensure correct short path is obtained for test (GH-17184)
(cherry picked from commit
7c6130c8c36c941255365e5414c956fc919b8629 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Steve Dower [Fri, 15 Nov 2019 23:25:03 +0000 (15:25 -0800)]
bpo-38453: Ensure ntpath.realpath correctly resolves relative paths (GH-16967)
Ensure isabs() is always True for \\?\ prefixed paths
Avoid unnecessary usage of readlink() to avoid resolving broken links incorrectly
Ensure shutil tests run in test directory
Miss Islington (bot) [Fri, 15 Nov 2019 22:25:18 +0000 (14:25 -0800)]
Updated missing periods in cmdline.rst (GH-17173)
(cherry picked from commit
0fe0b88d6eb597c9a929e14ad47a5a9bd99bfe53 )
Co-authored-by: Jules Lasne (jlasne) <jules.lasne@gmail.com>
Miss Islington (bot) [Fri, 15 Nov 2019 21:54:33 +0000 (13:54 -0800)]
Fix the description of isdatadescriptor in inspect.rst (GH-16645)
(cherry picked from commit
84f2528d4836f9e8f80f8354cb26341ef7ef0a1b )
Co-authored-by: HongWeipeng <961365124@qq.com>
Miss Islington (bot) [Fri, 15 Nov 2019 21:37:25 +0000 (13:37 -0800)]
bpo-38778: Document that os.fork is not allowed in subinterpreters (GH-17123)
Small docs update for [bpo-34651](https://bugs.python.org/issue34651).
Other references to fork (e.g. the PyOS.*Fork functions or discussions of fork() when embedding Python) point back to os.fork, so I don't think any other updates are needed.
https://bugs.python.org/issue38778
Automerge-Triggered-By: @ericsnowcurrently
(cherry picked from commit
b22030073b9327a3aeccb69507694bce078192aa )
Co-authored-by: Phil Connell <pconnell@gmail.com>
Miss Islington (bot) [Fri, 15 Nov 2019 21:36:49 +0000 (13:36 -0800)]
bpo-38816: Add notes in the C-API docs about fork in subinterpreters. (GH-17176)
The C-API docs are a bit sparse on the interplay between C `fork()` and the CPython runtime. This change adds some more information on the subject.
https://bugs.python.org/issue38816
(cherry picked from commit
73cdb0c6b2c3861e034004cdc57be5e726876078 )
Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
Miss Islington (bot) [Fri, 15 Nov 2019 09:37:26 +0000 (01:37 -0800)]
bpo-38677: Fix arraymodule error handling in module initialization. (GH-17039)
(cherry picked from commit
b44ffc8b409fd539c5fb2b79385498e9fe168880 )
Co-authored-by: Marco Paolini <mpaolini@users.noreply.github.com>
Miss Islington (bot) [Fri, 15 Nov 2019 09:11:48 +0000 (01:11 -0800)]
bpo-38351: Modernize email examples from %-formatting to f-strings (GH-17162)
(cherry picked from commit
e8acc865a3f112b98417f676c897ca6ec2dac2c7 )
Co-authored-by: Andrey Doroschenko <dorosch.github.io@yandex.ru>
Miss Islington (bot) [Wed, 13 Nov 2019 21:54:56 +0000 (13:54 -0800)]
bpo-38785: Prevent asyncio from crashing (GH-17144)
if parent `__init__` is not called from a constructor of object derived from `asyncio.Future`
https://bugs.python.org/issue38785
(cherry picked from commit
dad6be5ffe48beb74fad78cf758b886afddc7aed )
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Miss Islington (bot) [Wed, 13 Nov 2019 07:36:42 +0000 (23:36 -0800)]
bpo-4630: Add cursor no-blink option for IDLE (GH-16960)
This immediately toggles shell, editor, and output windows, but does not affect other input widgets.
(cherry picked from commit
9c2844927d15b2d3e21b28d62249dead02b5b597 )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Miss Islington (bot) [Wed, 13 Nov 2019 03:18:47 +0000 (19:18 -0800)]
Fix minor typos. (GH-17095)
(cherry picked from commit
2d56af7a94fe7ec0bdf3011652558ae1b889b4a8 )
Co-authored-by: Shu <23287722+susan-shu-c@users.noreply.github.com>
Miss Islington (bot) [Wed, 13 Nov 2019 02:40:30 +0000 (18:40 -0800)]
Add Ilya Kulakov to Misc/ACKS. (GH-17130)
Contributions on bpo-26467 and bpo-29302.
(cherry picked from commit
d6d6e2aa0249bb661541705335ddbb97a53d64c8 )
Co-authored-by: Ilya Kulakov <kulakov.ilya@gmail.com>
Benjamin Peterson [Tue, 12 Nov 2019 23:54:19 +0000 (15:54 -0800)]
[3.8] closes bpo-27805: Ignore ESPIPE in initializing seek of append-mode files. (GH-17136)
This change, which follows the behavior of C stdio's fdopen and Python 2's file object, allows pipes to be opened in append mode..
(cherry picked from commit
74fa9f723f700a342e582b5ad4b51a2c4801cd1c )
Miss Islington (bot) [Tue, 12 Nov 2019 23:09:03 +0000 (15:09 -0800)]
bpo-38723: Pdb._runscript should use io.open_code() instead of open() (GH-17127)
Co-Authored-By: Brandt Bucher <brandtbucher@gmail.com>
(cherry picked from commit
d593881505c1f4acfd17f41312b27cc898451816 )
Co-authored-by: jsnklln <jsnklln@gmail.com>
Serhiy Storchaka [Tue, 12 Nov 2019 16:54:10 +0000 (18:54 +0200)]
[3.8] bpo-38738: Fix formatting of True and False. (GH-17083) (GH-17125)
* "Return true/false" is replaced with "Return ``True``/``False``"
if the function actually returns a bool.
* Fixed formatting of some True and False literals (now in monospace).
* Replaced "True/False" with "true/false" if it can be not only bool.
* Replaced some 1/0 with True/False if it corresponds the code.
* "Returns <bool>" is replaced with "Return <bool>".
(cherry picked from commit
138ccbb02216ca086047c3139857fb44f3dab1f9 )
Miss Islington (bot) [Tue, 12 Nov 2019 13:34:23 +0000 (05:34 -0800)]
[3.8] bpo-38421: Update email.utils documentation (GH-16678) (GH-17122)
Updates documentation around email.utils.parsedate_tz().
Currently, the documentation specifies that when a string without a is timezone passed to parsedate_tz(), the last tuple is returned as ```None```.
This is no longer true since Python 3.3
https://bugs.python.org/issue38421
(cherry picked from commit
a12255d8def0c82560545e66c1be981a447751c3 )
Co-authored-by: David K <dave@paddez.com>
https://bugs.python.org/issue38421
Automerge-Triggered-By: @encukou
Miss Islington (bot) [Tue, 12 Nov 2019 11:13:18 +0000 (03:13 -0800)]
bpo-26353: IDLE adds an unneeded newline when saving a shell window (GH-17103)
(cherry picked from commit
c8b53dc3d8f721ed8519aa5a35530a42fbfb9424 )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Terry Jan Reedy [Tue, 12 Nov 2019 10:02:48 +0000 (05:02 -0500)]
[3.8] bpo-37309: idlelib/NEWS.txt - add missing period. (#17115)
Miss Islington (bot) [Tue, 12 Nov 2019 08:04:12 +0000 (00:04 -0800)]
bpo-38385: Fix iterator/iterable terminology in statistics docs (GH-17111) (GH-17113)
(cherry picked from commit
733b9a308e3c49855888e2e12397ae56d831e780 )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Tue, 12 Nov 2019 00:59:14 +0000 (16:59 -0800)]
bpo-38771: Explict test for None in code example (GH-17108) (GH-17109)
(cherry picked from commit
98480cef9dba04794bd61c7e7cca643d384c8c35 )
Co-authored-by: Jonathan Scholbach <j.scholbach@posteo.de>
Miss Islington (bot) [Sat, 9 Nov 2019 11:12:28 +0000 (03:12 -0800)]
bpo-22367: Add tests for fcntl.lockf(). (GH-17010)
(cherry picked from commit
befa032d8869e0fab4732d910f3887642879d644 )
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
Miss Islington (bot) [Thu, 7 Nov 2019 05:58:11 +0000 (21:58 -0800)]
bpo-38382: Document the early-out behavior for a zero (GH-17037) (GH-17078)
(cherry picked from commit
7f460494d2309ace004a400bae8fc59134dc325c )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Wed, 6 Nov 2019 14:27:09 +0000 (06:27 -0800)]
bpo-38696: Fix usage example of HTTPStatus (GH-17066)
(cherry picked from commit
56698d57691af2272f695f8c17c835ed99545cde )
Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
Miss Islington (bot) [Wed, 6 Nov 2019 06:10:05 +0000 (22:10 -0800)]
bpo-38684: haslib: fix build when Blake2 not enabled in OpenSSL (GH-17043)
(cherry picked from commit
6552563b3d5061816720a5a6c7d4ffd6ba35b98b )
Co-authored-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Jules Lasne (jlasne) [Tue, 5 Nov 2019 13:51:48 +0000 (14:51 +0100)]
[3.8] Update interpreter.rst (GH-17059) (GH-17060)
Fixed what seemed to be a weird phrasing.
(cherry picked from commit
5e01a6542a1beb552a17e16b71dc0ba9fc6adcfb )
Co-authored-by: Jules Lasne (jlasne) <jules.lasne@gmail.com>
Miss Islington (bot) [Tue, 5 Nov 2019 13:35:56 +0000 (05:35 -0800)]
[3.8] bpo-38159: Clarify documentation of PyState_AddModule (GH-16101) (GH-17026)
This was never intented to be called manually from PyInit_*.
Also, clarify PyState_RemoveModule return value.
(cherry picked from commit
9bc94eca0c69a551f928692364a99e9b67c4a45b )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
https://bugs.python.org/issue38159
Automerge-Triggered-By: @encukou
Miss Islington (bot) [Tue, 5 Nov 2019 07:07:24 +0000 (23:07 -0800)]
Convert argument to snake_case (GH-16990) (GH-17033)
(cherry picked from commit
99b7701978d1fdc81e10c31d1ad8cce2c0c2d848 )
Co-authored-by: Борис Верховский <boris.verk@gmail.com>
Miss Islington (bot) [Tue, 5 Nov 2019 05:52:59 +0000 (21:52 -0800)]
closes bpo-37633: Reëxport some function compatibility wrappers for macros in ``pythonrun.h``. (GH-17056)
(cherry picked from commit
62161ce989d7d4fe2b0e6899a54da20feeddc798 )
Co-authored-by: Benjamin Peterson <benjamin@python.org>
Miss Islington (bot) [Tue, 5 Nov 2019 05:09:48 +0000 (21:09 -0800)]
Fix a typo in wave module docstring (GH-17009)
s/pathing/patching/
(cherry picked from commit
25fa3ecb98f2c038a422b19c53641fa8e3ef8e52 )
Co-authored-by: Michael Haas <micha2718l@gmail.com>
Miss Skeleton (bot) [Mon, 4 Nov 2019 05:55:22 +0000 (21:55 -0800)]
bpo-37759: Show output from var_access_benchmark (GH-17040) (GH-17041)
(cherry picked from commit
1cdadf414b9934bba9294efa1f4b8d97eef08434 )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Skeleton (bot) [Sun, 3 Nov 2019 12:03:16 +0000 (04:03 -0800)]
bpo-38388: Document pickle protocol version 5 (GH-16639)
(cherry picked from commit
d0e0f5bf0c07ca025f54df21fd1df55ee430d9fc )
Co-authored-by: Dima Tisnek <dimaqq@gmail.com>
Miss Skeleton (bot) [Sat, 2 Nov 2019 17:04:10 +0000 (10:04 -0700)]
bpo-38422: Clarify docstrings of pathlib suffix(es) (GH-16679)
Whenever I use `path.suffix` I have to check again whether it includes the dot or not. I decided to add it to the docstring so I won't have to keep checking.
https://bugs.python.org/issue38422
Automerge-Triggered-By: @pitrou
(cherry picked from commit
8d4fef4ee2a318097f429cf6cbd4fb2e430bb9da )
Co-authored-by: Ram Rachum <ram@rachum.com>
Jon Janzen [Sat, 2 Nov 2019 14:48:22 +0000 (09:48 -0500)]
[3.8] Slightly improve plistlib test coverage. (GH-17025) (GH-17028)
* Add missing test class (mistake in GH-4455)
* Increase coverage with 4 more test cases
* Rename neg_uid to huge_uid in test_modified_uid_huge
* Replace test_main() with unittest.main()
* Update plistlib docs.
(cherry picked from commit
d0d9f7cfa36bafa4e1d9e73eb08835180d376df1 )
Co-authored-by: Jon Janzen <jjjonjanzen@gmail.com>
Vinay Sajip [Thu, 31 Oct 2019 13:34:05 +0000 (13:34 +0000)]
[3.8] bpo-16575: Add checks for unions passed by value to functions. (GH-16799) (GH-17016)
(cherry picked from commit
79d4ed102a5069c6cebaed2627cb1645637f0429 )
Miss Skeleton (bot) [Thu, 31 Oct 2019 12:50:04 +0000 (05:50 -0700)]
Add docstring for shlex.split (GH-16740) (GH-17013)
(cherry picked from commit
65c7382c47af07aea5c1ce86b76cf7f4b6acaaa2 )
Co-authored-by: MaT1g3R <peijun.ma@protonmail.com>
Miss Skeleton (bot) [Thu, 31 Oct 2019 12:12:23 +0000 (05:12 -0700)]
Update the URL for the requests package (GH-17006)
Change the url from docs.python-requests.org to requests.readthedocs.io
(cherry picked from commit
112f2b805bc83429e8a66a54d088bbefc921abb7 )
Co-authored-by: Simon Legner <Simon.Legner@gmail.com>
Serhiy Storchaka [Wed, 30 Oct 2019 20:44:55 +0000 (22:44 +0200)]
[3.8] bpo-38600: NULL -> ``NULL``. (GH-17001) (GH-17003)
Also fix some other formatting.
(cherry picked from commit
e835b31d2b212c3c7820364398979cae2a9740b2 )
Serhiy Storchaka [Wed, 30 Oct 2019 19:36:33 +0000 (21:36 +0200)]
[3.8] bpo-38600: Change the mark up of NULL in the C API documentation. (GH-16950) (GH-16999)
Replace all *NULL* with ``NULL``.
(cherry picked from commit
25fc088607c855060ed142296dc1bd0125fad1af )
Miss Skeleton (bot) [Wed, 30 Oct 2019 12:11:41 +0000 (05:11 -0700)]
bpo-38640: Allow break and continue in always false while loops (GH-16992)
(cherry picked from commit
6c3e66a34b95fff07df0ad5086104dd637a091ce )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Victor Stinner [Tue, 29 Oct 2019 09:32:39 +0000 (10:32 +0100)]
bpo-37330: open(): "U" mode is removed in Python 3.9 (GH-16972)
Update open() documentation.
Miss Skeleton (bot) [Tue, 29 Oct 2019 07:44:07 +0000 (00:44 -0700)]
bpo-36993: Improve error reporting for zipfiles with bad zip64 extra data. (GH-14656)
(cherry picked from commit
da6ce58dd5ac109485af45878fca6bfd265b43e9 )
Co-authored-by: Daniel Hillier <daniel.hillier@gmail.com>
Miss Skeleton (bot) [Tue, 29 Oct 2019 02:00:26 +0000 (19:00 -0700)]
Fix asyncio.wait() 3.8 whatsnew entry (GH-16975)
(cherry picked from commit
457306bddbc0021396504b7349fe0c322b65f7a7 )
Co-authored-by: Kyle Stanley <aeros167@gmail.com>
Miss Skeleton (bot) [Mon, 28 Oct 2019 21:55:10 +0000 (14:55 -0700)]
bpo-38589: Fixes HTML Help shortcut when Windows is not installed to C drive (GH-16968)
(cherry picked from commit
0ac6137dd3d1e2c8f9558153ad63021f57e05e73 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Skeleton (bot) [Mon, 28 Oct 2019 18:15:24 +0000 (11:15 -0700)]
bpo-38534: Replace wrong KB number references (GH-16955)
(cherry picked from commit
794616f837c254c68d8384ab48fb78123a3c8a8b )
Co-authored-by: benedwards14 <53377856+benedwards14@users.noreply.github.com>
Miss Skeleton (bot) [Mon, 28 Oct 2019 17:23:07 +0000 (10:23 -0700)]
bpo-38519: Internal include files missing on Windows (GH-16921)
(cherry picked from commit
edb172a87296d9359593a23cd9a09f5867ea1f0e )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Miss Skeleton (bot) [Sun, 27 Oct 2019 10:11:14 +0000 (03:11 -0700)]
bpo-38592 Add pt-br switcher to Python Docs website (GH-16924) (GH-16953)
(cherry picked from commit
85c6f8c65cd4f7219522c1f304bdfff19f785e7a )
Co-authored-by: Marco Rougeth <marco@rougeth.com>
Miss Skeleton (bot) [Sun, 27 Oct 2019 08:40:44 +0000 (01:40 -0700)]
bpo-38334: Fix seeking backward on an encrypted zipfile.ZipExtFile. (GH-16937)
Test by Daniel Hillier.
(cherry picked from commit
5c32af7522d908e8c7da0243af37618433289cc5 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Terry Jan Reedy [Sun, 27 Oct 2019 05:25:27 +0000 (01:25 -0400)]
[3.8] bpo-37309: First idlelib/NEWS.txt for 3.8.1 (GH-16947)
Miss Skeleton (bot) [Sun, 27 Oct 2019 02:37:25 +0000 (19:37 -0700)]
bpo-34162: Last idlelib/NEWS.txt items for 3.8.0. (GH-16943)
(cherry picked from commit
e31a79a5b44357b409d71949dc5308889970f9ab )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Skeleton (bot) [Sun, 27 Oct 2019 01:41:26 +0000 (18:41 -0700)]
bpo-38598: Do not try to compile IDLE shell or output windows (GH-16939)
(cherry picked from commit
e3f90b217a5152275b180b466bd503658a734462 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Skeleton (bot) [Sat, 26 Oct 2019 20:09:35 +0000 (13:09 -0700)]
bpo-38434: Fixes some audit event documentation (GH-16932)
(cherry picked from commit
894e30ce0bcc1c509eb01c8ffa9ba6d7701aeaaf )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Skeleton (bot) [Sat, 26 Oct 2019 20:06:34 +0000 (13:06 -0700)]
bpo-38557: Improve documentation for list and tuple C API. (GH-16925)
(cherry picked from commit
d898d20e8c228229eb68e545f544db13f246f216 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Skeleton (bot) [Sat, 26 Oct 2019 14:06:40 +0000 (07:06 -0700)]
bpo-38535: Fix positions for AST nodes for calls without arguments in decorators. (GH-16861)
(cherry picked from commit
26ae9f6d3d755734c9f371b9356325afe5764813 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Skeleton (bot) [Fri, 25 Oct 2019 22:27:07 +0000 (15:27 -0700)]
bpo-38558: Mention `:=` in conditions tutorial (GH-16919)
(cherry picked from commit
cb2cf06b0aad1851f54999497c1b50c381d1fdd8 )
Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
Miss Skeleton (bot) [Fri, 25 Oct 2019 17:03:23 +0000 (10:03 -0700)]
Fix typo in formatter_unicode (GH-16831)
numbers's -> number's
(cherry picked from commit
7320ec05f72fc27b25789fe76f8297644e7e7e0a )
Co-authored-by: Hansraj Das <raj.das.136@gmail.com>
Miss Skeleton (bot) [Thu, 24 Oct 2019 06:37:21 +0000 (23:37 -0700)]
bpo-33348: parse expressions after * and ** in lib2to3 (GH-6586)
These are valid even in python 2.7
https://bugs.python.org/issue33348
Automerge-Triggered-By: @gpshead
(cherry picked from commit
96b06aefe23521b61e4e9cdd44f5d30b00c7eb95 )
Co-authored-by: Zsolt Dollenstein <zsol.zsol@gmail.com>
Miss Skeleton (bot) [Thu, 24 Oct 2019 04:22:06 +0000 (21:22 -0700)]
Add missing asyncio changes from 3.8 whatsnew (GH-16911)
(cherry picked from commit
3bbb6db545eff73ba4031bd9b8f2ef71b84c906e )
Co-authored-by: Kyle Stanley <aeros167@gmail.com>
Miss Skeleton (bot) [Wed, 23 Oct 2019 20:31:22 +0000 (13:31 -0700)]
Update URL in macOS installer copy of license (GH-16905)
(cherry picked from commit
01659ca62c4508518478a74615ac91c0009427ad )
Co-authored-by: Ned Deily <nad@python.org>
Miss Skeleton (bot) [Wed, 23 Oct 2019 15:43:57 +0000 (08:43 -0700)]
bpo-34679: ProactorEventLoop only uses set_wakeup_fd() in main thread (GH-16901)
bpo-34679, bpo-38563: asyncio.ProactorEventLoop.close() now only calls
signal.set_wakeup_fd() in the main thread.
(cherry picked from commit
1b53a24fb4417c764dd5933bce505f5c94249ca6 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Skeleton (bot) [Wed, 23 Oct 2019 12:18:10 +0000 (05:18 -0700)]
Spell Bitbucket correctly. (GH-16862) (GH-16898)
(cherry picked from commit
d34ac305327420bd68f05e201b63d2a665b073f8 )
Co-authored-by: Peter Bittner <django@bittner.it>
Miss Skeleton (bot) [Wed, 23 Oct 2019 12:07:23 +0000 (05:07 -0700)]
bpo-38555: Fix an undefined behavior. (GH-16883)
(cherry picked from commit
2e3d873d3bd0ef4708c4fa06b6cd6972574cb9af )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Skeleton (bot) [Tue, 22 Oct 2019 22:55:12 +0000 (15:55 -0700)]
Fix Zope URL (GH-16880)
(cherry picked from commit
dfe726b1ace03f206f45253b93ed7610473ae20f )
Co-authored-by: Kyle Stanley <aeros167@gmail.com>
Miss Skeleton (bot) [Tue, 22 Oct 2019 20:44:45 +0000 (13:44 -0700)]
bpo-38466: Fix threading.excepthook doc (GH-16891)
(cherry picked from commit
91528f40c30717563a478920861c81d18da5bf63 )
Co-authored-by: Daniel Baskal <MagnificentUrukHai@users.noreply.github.com>
Miss Skeleton (bot) [Tue, 22 Oct 2019 20:19:32 +0000 (13:19 -0700)]
bpo-37415: Fix stdatomic.h header check for ICC compiler (GH-16717)
Fix stdatomic.h header check for ICC compiler: the ICC implementation
lacks atomic_uintptr_t type which is needed by Python.
Test:
* atomic_int and atomic_uintptr_t types
* atomic_load_explicit() and atomic_store_explicit()
* memory_order_relaxed and memory_order_seq_cst constants
But don't test ATOMIC_VAR_INIT(): it's not used in Python.
(cherry picked from commit
028f7349a0f6eaea0fec31becb587fcdf6e3cb28 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Skeleton (bot) [Mon, 21 Oct 2019 18:17:57 +0000 (11:17 -0700)]
bpo-31202: Preserve case of literal parts in Path.glob() on Windows. (GH-16860)
(cherry picked from commit
10ecbadb799ddf3393d1fc80119a3db14724d381 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Skeleton (bot) [Mon, 21 Oct 2019 09:12:37 +0000 (02:12 -0700)]
bpo-38540: Fix possible leak in PyArg_Parse for "esGH-" and "etGH-". (GH-16869)
(cherry picked from commit
5bc6a7c06eda20ba131ecba6752be0506d310181 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sun, 20 Oct 2019 20:25:25 +0000 (13:25 -0700)]
bpo-38531: document extend action's added version (GH-16865) (GH-16868)
(cherry picked from commit
74142078b3b78fea7b4cd791e5c577c0c0964eb7 )
Co-authored-by: Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com>
Miss Islington (bot) [Sun, 20 Oct 2019 18:35:28 +0000 (11:35 -0700)]
bpo-37759: More updates to Whatsnew 3.8 (GH-16854) (GH-16867)
* math.perm() and math.comb()
* math.isqrt()
* Add singledispatchmethod()
* itertools.accumulate()
* Optional headers for xmlrpc.client.ServerProxy
* IDLE non-BMP characters
* import collections.abc directly
* @coroutine is deprecated
* pprint.pp()
* New options for object.__reduce__()
* DictReader no longer returns OrderedDicts
* "force" option for logging.basicConfig()
* Fix spelling
* cProfile context manager
* Various markup/grammar fixes from Kyle Stanley.
Other minor fixes as well.
Also, dedup the __reduce__ entry.
* Fix markup
* Fix grammar nits found by MS Word
(cherry picked from commit
c93883c6afbd99929516764263fc49c3e996b10a )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Sat, 19 Oct 2019 20:20:51 +0000 (13:20 -0700)]
bpo-38525: Fix a segmentation fault when using reverse iterators of empty dict (GH-16846)
The reverse iterator for empty dictionaries was not handling correctly shared-key dictionaries.
(cherry picked from commit
24dc2f8c56697f9ee51a4887cf0814b6600c1815 )
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
Miss Islington (bot) [Sat, 19 Oct 2019 19:30:28 +0000 (12:30 -0700)]
Remove doc reference to unmaitained Nose package (GH-16849)
The Nose package is no longer maintained.
(cherry picked from commit
88eeda6311a8e3bf57136da5f73c70bc91ad79f3 )
Co-authored-by: Jon Dufresne <jon.dufresne@gmail.com>
Miss Islington (bot) [Fri, 18 Oct 2019 21:41:19 +0000 (14:41 -0700)]
bpo-38521: Fix error in NormalDist.__eq__() (GH-16840) (GH-16842)
(cherry picked from commit
5eabec022b9a10734fcf58faad02c4d233592f64 )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Fri, 18 Oct 2019 16:32:14 +0000 (09:32 -0700)]
bpo-38418: Fixes audit event for os.system to be named 'os.system' (GH-16670)
https://bugs.python.org/issue38418
Automerge-Triggered-By: @zooba
(cherry picked from commit
fbe3c76c7ce1eec887d332d801d3784212cc0f73 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Senthil Kumaran [Fri, 18 Oct 2019 15:23:14 +0000 (08:23 -0700)]
[3.8] bpo-27657: Fix urlparse() with numeric paths (GH-661) (#16839)
* bpo-27657: Fix urlparse() with numeric paths
Revert parsing decision from bpo-754016 in favor of the documented
consensus in bpo-16932 of how to treat strings without a // to
designate the netloc.
* bpo-22891: Remove urlsplit() optimization for 'http' prefixed inputs.
(cherry picked from commit
5a88d50ff013a64fbdb25b877c87644a9034c969 )
Co-authored-by: Tim Graham <timograham@gmail.com>
Miss Islington (bot) [Fri, 18 Oct 2019 07:55:22 +0000 (00:55 -0700)]
Fix minor typos in What's New in Python 3.8. (GH-16770)
Added periods at the end of the sentences.
(cherry picked from commit
b1fa72a5b7e8666a40b6899d5d54778a2a42c3e8 )
Co-authored-by: Jero Bado <tokidokitalkyou@gmail.com>
Miss Islington (bot) [Fri, 18 Oct 2019 07:21:05 +0000 (00:21 -0700)]
Doc: Add missing entry for functools.cached_property (GH-16803)
(cherry picked from commit
93b81e1fcbeb61c1b49ac2fa52c5a0dff929940b )
Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
Miss Islington (bot) [Fri, 18 Oct 2019 03:48:42 +0000 (20:48 -0700)]
bpo-33604: Raise TypeError on missing hmac arg. (GH-16805)
Also updates the documentation to clarify the situation surrounding
the digestmod parameter that is required despite its position in the
argument list as of 3.8.0 as well as removing old python2 era
references to "binary strings".
We indavertently had this raise ValueError in 3.8.0 for the missing
arg. This is not considered an API change as no reasonable code would
be catching this missing argument error in order to handle it.
(cherry picked from commit
f33c57d5c780da1500619f548585792bb5b750ee )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Wed, 16 Oct 2019 17:46:29 +0000 (10:46 -0700)]
bpo-38492: Remove pythonw.exe dependency on the Microsoft C++ runtime (GH-16824)
(cherry picked from commit
7aebbd1182bc818324656b2fb764679faf51fdff )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Wed, 16 Oct 2019 08:36:57 +0000 (01:36 -0700)]
bpo-35998: Fix test_asyncio.test_start_tls_server_1() (GH-16815)
main() is now responsible to send the ANSWER, rather than
ServerProto. main() now waits until it got the HELLO before sending
the ANSWER over the new transport.
Previously, there was a race condition between main() replacing the
protocol and the protocol sending the ANSWER once it gets the HELLO.
TLSv1.3 was disabled for the test: reenable it.
(cherry picked from commit
fab4ef2df0857ab0c97f3058ac5ec3280c4eb891 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Tue, 15 Oct 2019 21:33:34 +0000 (14:33 -0700)]
Update doc switcher list for 3.8.0 (GH-16809)
(cherry picked from commit
3f36043db22361500f52634f2b8de49dde0e7da9 )
Co-authored-by: Ned Deily <nad@python.org>
Miss Islington (bot) [Tue, 15 Oct 2019 21:09:19 +0000 (14:09 -0700)]
Typo fix - implemention should be implementation (GH-16806)
(cherry picked from commit
2798b60c55619d8981288b69c20ba4a09efc7b0b )
Co-authored-by: Hansraj Das <raj.das.136@gmail.com>
Miss Islington (bot) [Tue, 15 Oct 2019 12:02:34 +0000 (05:02 -0700)]
bpo-38478: Correctly handle keyword argument with same name as positional-only parameter (GH-16800)
(cherry picked from commit
f3ef06a7cb347ab7bd3cc2b0b3dcebe4f9ff36f9 )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Victor Stinner [Tue, 15 Oct 2019 01:06:16 +0000 (03:06 +0200)]
[3.8] bpo-36389: Backport debug enhancements from master (GH-16796)
* bpo-36389: _PyObject_CheckConsistency() available in release mode (GH-16612)
bpo-36389, bpo-38376: The _PyObject_CheckConsistency() function is
now also available in release mode. For example, it can be used to
debug a crash in the visit_decref() function of the GC.
Modify the following functions to also work in release mode:
* _PyDict_CheckConsistency()
* _PyObject_CheckConsistency()
* _PyType_CheckConsistency()
* _PyUnicode_CheckConsistency()
Other changes:
* _PyMem_IsPtrFreed(ptr) now also returns 1 if ptr is NULL
(equals to 0).
* _PyBytesWriter_CheckConsistency() now returns 1 and is only used
with assert().
* Reorder _PyObject_Dump() to write safe fields first, and only
attempt to render repr() at the end.
(cherry picked from commit
6876257eaabdb30f27ebcbd7d2557278ce2e5705 )
* bpo-36389: Fix _PyBytesWriter in release mode (GH-16624)
Fix _PyBytesWriter API when Python is built in release mode with
assertions.
(cherry picked from commit
60ec6efd96d95476fe5e38c491491add04f026e5 )
* bpo-38070: Enhance visit_decref() debug trace (GH-16631)
subtract_refs() now pass the parent object to visit_decref() which
pass it to _PyObject_ASSERT(). So if the "is freed" assertion fails,
the parent is used in debug trace, rather than the freed object. The
parent object is more likely to contain useful information. Freed
objects cannot be inspected are are displayed as "<object at xxx is
freed>" with no other detail.
(cherry picked from commit
4d5f94b8cd20f804c7868c5395a15aa6032f874c )
* Fix also a typo in PYMEM_DEADBYTE macro comment
* bpo-36389: Add newline to _PyObject_AssertFailed() (GH-16629)
Add a newline between the verbose object dump and the Py_FatalError()
logs for readability.
(cherry picked from commit
7775349895088a7ae68cecf0c74cf817f15e2c74 )
Miss Islington (bot) [Mon, 14 Oct 2019 22:52:47 +0000 (15:52 -0700)]
bpo-38133: Update docs to reflect fixes to py.exe launcher (GH-16791)
(cherry picked from commit
4d202281c128e2026e78fc5f4cc752b1dafbf3ad )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Mon, 14 Oct 2019 22:21:32 +0000 (15:21 -0700)]
Doc: 3.8 is now stable. (GH-16790)
(cherry picked from commit
4504b4500d2a1a80c26b27b0bfff8b624d5ce06c )
Co-authored-by: Julien Palard <julien@palard.fr>
Gregory P. Smith [Mon, 14 Oct 2019 20:40:32 +0000 (13:40 -0700)]
[3.8] bpo-38456: Use /bin/true in test_subprocess (GH-16737)
* [3.8] bpo-38456: Use /bin/true in test_subprocess (GH-16736)
Instead of sys.executable, "-c", "pass" or "import sys; sys.exit(0)"
use /bin/true when it is available. On a reasonable machine this
shaves up to two seconds wall time off the otherwise ~40sec execution
on a --with-pydebug build. It should be more notable on many
buildbots or overloaded slower I/O systems (CI, etc)..
(cherry picked from commit
67b93f80c764bca01c81c989d74a99df208bea4d )
* Handle when there is no 'true' command
backport of
46113e0cf32748f66cf64cd633984d143b433cd1 by Pablo Galindo.
Łukasz Langa [Mon, 14 Oct 2019 20:02:48 +0000 (22:02 +0200)]
Post v3.8.0
Łukasz Langa [Mon, 14 Oct 2019 20:02:08 +0000 (22:02 +0200)]
Merge tag 'v3.8.0' into 3.8
Python 3.8.0