Commit Graph

106062 Commits

Author SHA1 Message Date
Miss Islington (bot) b934d832d1
bpo-41467: Fix asyncio recv_into() on Windows (GH-21720)
On Windows, fix asyncio recv_into() return value when the socket/pipe
is closed (BrokenPipeError): return 0 rather than an empty byte
string (b'').
(cherry picked from commit 602a971a2a)

Co-authored-by: Victor Stinner <vstinner@python.org>
2020-08-03 17:58:06 -07:00
Miss Islington (bot) 4bc8445c39
bpo-41425: Make tkinter doc example runnable (GH-21706)
Co-authored-by: Ankit Chandawala <achandaw@amazon.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit c36dbac588)
2020-08-03 00:25:04 -04:00
Miss Islington (bot) 45d37cbb04
bpo-41424: Remove extra words in Tkinter-Packer documentation (GH-21707)
(cherry picked from commit ecaf949cc4)

Co-authored-by: Nathan M <nathanmaynes@gmail.com>
2020-08-02 20:18:59 -07:00
Miss Islington (bot) 038827d0f5
bpo-41426 Fix grammar in curses.getmouse() documentation (GH-21677)
Automerge-Triggered-By: @brettcannon
(cherry picked from commit ba18c0b13b)

Co-authored-by: Sebastien Williams-Wynn <s.williamswynn.mail@gmail.com>
2020-07-29 11:44:50 -07:00
Miss Islington (bot) b7722ed0f3
Remove incorrect mention of method.__class__ in descriptor docs (GH-21665) (GH-21668) 2020-07-28 18:39:43 -07:00
Miss Islington (bot) 7cfede6859
closes bpo-38156: Always handle interrupts in PyOS_StdioReadline. (GH-21569)
This consolidates the handling of my_fgets return values, so that interrupts are always handled, even if they come after EOF.

 I believe PyOS_StdioReadline is still buggy in that I/O errors will not result in a proper Python exception being set. However, that is a separate issue.
(cherry picked from commit a74eea238f)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
2020-07-28 18:16:19 -07:00
Miss Islington (bot) 5e0ce46aeb
Fix `List_Append` description, list is extracted at TOS1[-i] (GH-21465)
(cherry picked from commit 34cd3e9f6a)

Co-authored-by: Xiang Zhang <angwerzx@126.com>
2020-07-28 09:59:18 -07:00
Miss Islington (bot) 59cfba3268
bpo-41328: Replace mention of Hudson CI with Travis CI and AppVeyor (GH-21653)
(cherry picked from commit 5e3826785d)

Co-authored-by: Dmytro Litvinov <litvinov.dmytro.it@gmail.com>
2020-07-28 07:57:11 -07:00
Guido van Rossum 3baff21f5b
[3.8] bpo-41045: Document debug feature of f-strings ('=') (GH-21509) (#21647)
Co-Authored-By: Rishi <rishi93dev@gmail.com>

(cherry picked from commit 13efaec)

Co-authored-by: amaajemyfren <32741226+amaajemyfren@users.noreply.github.com>
2020-07-27 16:22:16 -07:00
Miss Islington (bot) 104adedf64
bpo-41384: Raise TclError in tkinter.OptionMenu (GH-21601)
... when an unknown option is passed.  TypeError was being raised because a 2to3 fix was missing.

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit f1d40f941a)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2020-07-26 22:14:49 -04:00
Miss Islington (bot) 33cebe0b9a
bpo-41385: Fix test_executable_without_cwd on Windows (GH-21608)
(cherry picked from commit b1a87300a0)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-07-26 00:38:48 -07:00
Miss Islington (bot) 755cb49429
bpo-39868: Add documentation for Assignment Expressions (walrus, PEP 572) (GH-18851)
(cherry picked from commit f117cef25b)

Co-authored-by: Shankar Jha <shankarj67@gmail.com>
2020-07-25 16:41:20 -07:00
Miss Islington (bot) b99f770230
bpo-41314: fixed annotations __future__ version (GH-21616)
PEP 563 was updated to change the release where `from __future__ import annotations` becomes the default (and only) behavior from 4.0 to 3.10. Update `__future__.py` and its docs to reflect this.
(cherry picked from commit 0028c14073)

Co-authored-by: YoSTEALTH <35307184+YoSTEALTH@users.noreply.github.com>
2020-07-25 15:00:17 -07:00
Miss Islington (bot) 949cf93f8e
bpo-38731: Fix NameError in command-line interface of py_compile (GH-21617)
(cherry picked from commit 2024d7aca1)

Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
2020-07-26 00:03:50 +03:00
Terry Jan Reedy a667e1c66a
[3.8] bpo-37309: NEWS for #41373 (GH-21612)
Cherry-picked from  af08db7.
2020-07-25 00:33:01 -04:00
Miss Islington (bot) 1c562ced21
bpo-41373: IDLE: Fix saving files loaded with no newlines or mixed newlines (GH-21597)
Fixes regression in 3.8.4 and 3.9.0b4.

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit 0dd463c8a4)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-07-24 20:38:46 -07:00
Terry Jan Reedy 29df301a92
[3.8] bpo-4630: Fix errors in Lib/idlelib/NEWS.txt (GH-21594)
Also one in news log.

(cherry picked from commit 592527f3ee)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2020-07-23 04:18:03 -04:00
Steve Dower a18f22ab11
bpo-41364: Reduce import overhead of uuid module (GH-21586) 2020-07-22 12:26:37 +01:00
Miss Islington (bot) f599f9ea3c
bpo-40741: Update Windows build to include SQLite 3.32.3 (GH-21570)
(cherry picked from commit 84761c3cc4)

Co-authored-by: Steve Dower <steve.dower@python.org>
2020-07-20 17:09:51 -07:00
Łukasz Langa 22d6d88013
Post 3.8.5 2020-07-20 19:25:23 +02:00
Łukasz Langa 580fbb018f
Python 3.8.5
Contains security fixes for CVE-2019-20907, CVE-2020-15801, and BPO-39603.
2020-07-20 15:01:32 +02:00
Miss Islington (bot) f526d10267
Simple Documentation fix: Missing link to return type class. (GH-21291)
Just a simple documentation fix: apply_async and map_async return a "multiprocessing.pool.AsyncResult Object", not a "result object".
(cherry picked from commit f9bf015799)

Co-authored-by: Volker-Weissmann <39418860+Volker-Weissmann@users.noreply.github.com>
2020-07-20 04:35:11 -07:00
Miss Islington (bot) 58f59a9621
bpo-37703: improve asyncio.gather documentation regarding cancellation (GH-15312)
These changes updates the doc to comprehensively mention the behaviour of gather.cancel()

Automerge-Triggered-By: @asvetlov
(cherry picked from commit d42528a3a2)

Co-authored-by: Vinay Sharma <vinay04sharma@icloud.com>
2020-07-20 02:00:51 -07:00
Miss Islington (bot) 892fc8d328
bpo-40741: Update macOS installer to use SQLite 3.32.3 (GH-20979)
(cherry picked from commit 7cf1cb36ec)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
2020-07-19 23:37:57 -07:00
Miss Islington (bot) dac8a3a156
bpo-41205: Document Decimal power 0 to the 0 (GH-21386)
Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
(cherry picked from commit 10e466448f)

Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్  రెడ్డి తాటిపర్తి) <thatiparthysreenivas@gmail.com>
2020-07-19 04:10:47 -07:00
Miss Islington (bot) 700cb66175
bpo-32528: Document the change in inheritance of asyncio.CancelledError (GH-21474)
GH-msg373510

[bpo-32528]()/GH-13528 changed `asyncio.CancelledError` such that it no longer inherits from `concurrent.futures.CancelledError`. As this affects existing code, specifically when catching the latter instead of the former in exception handling, it should be documented in the "What's new in 3.8?" document.

Automerge-Triggered-By: @1st1
(cherry picked from commit 2a5181829a)

Co-authored-by: JustAnotherArchivist <JustAnotherArchivist@users.noreply.github.com>
2020-07-19 00:50:54 -07:00
Miss Islington (bot) 38d930f2cc
bpo-41295: Reimplement the Carlo Verre "hackcheck" (GH-21528)
Walk down the MRO backwards to find the type that originally defined the final `tp_setattro`, then make sure we are not jumping over intermediate C-level bases with the Python-level call.

Automerge-Triggered-By: @gvanrossum
(cherry picked from commit c53b310e59)

Co-authored-by: scoder <stefan_ml@behnel.de>
2020-07-18 14:37:43 -07:00
Miss Islington (bot) 668d321476
bpo-39603: Prevent header injection in http methods (GH-18485)
reject control chars in http method in http.client.putrequest to prevent http header injection
(cherry picked from commit 8ca8a2e8fb)

Co-authored-by: AMIR <31338382+amiremohamadi@users.noreply.github.com>
2020-07-18 13:39:12 -07:00
Miss Islington (bot) 7734738d71
bpo-41325: Add version note for args and kwargs property in call object (GH-21525)
(cherry picked from commit 9b01c598ca)

Co-authored-by: Jordan Speicher <uSpike@users.noreply.github.com>
2020-07-18 06:13:21 -07:00
Miss Islington (bot) 79ed1a53fa
bpo-41304: Update NEWS to include CVE-2020-15801 reference (GH-21521)
(cherry picked from commit 164b04c47e)

Co-authored-by: Steve Dower <steve.dower@python.org>
2020-07-17 17:54:11 +01:00
Miss Islington (bot) ffeb920254
[3.8] bpo-41300: IDLE - save files with non-ascii chars (GH-21512)
Fix regression released in 3.9.0b4 and 3.8.4.
(cherry picked from commit 38d3864efe)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-07-16 18:47:52 -04:00
Miss Islington (bot) d4a63031da
Remove unnecessary spaces in code blocks in urllib.parse.rst (GH-21500)
This should also fix the syntax highlighting for these code blocks

Automerge-Triggered-By: @csabella
(cherry picked from commit 5e5c0f9866)

Co-authored-by: Christopher Yeh <chrisyeh96@users.noreply.github.com>
2020-07-16 04:29:45 -07:00
Miss Islington (bot) 3b6a8d2455
bpo-41304: Ensure python3x._pth is loaded on Windows (GH-21495)
(cherry picked from commit 936a660945)

Co-authored-by: Steve Dower <steve.dower@python.org>
2020-07-15 15:15:37 -07:00
Felix Yan 16eea45fbd
[3.8] bpo-41302: Support system libmpdec 2.5 for Python 3.8 (GH-21488)
Define UNUSED only when mpdecimal.h doesn't define it. This would support
building with system libmpdec 2.5 while retaining compatibility with system
libmpdec 2.4 or the vendored copy.

Tested to build fine with either system libmpdec or the vendored one.
2020-07-15 22:22:23 +02:00
Miss Islington (bot) f8055fb0f1
bpo-40150: Fix mismatched argument in RegisterWaitForSingleObject() call (GH-19686)
(cherry picked from commit af4eda46d1)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2020-07-15 12:25:49 -07:00
Miss Islington (bot) 05abf2a61c
Fix -Wstrict-prototypes warning in thread_pthread.h. (GH-21477)
(cherry picked from commit ea62a4bd54)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
2020-07-15 12:04:59 -07:00
Miss Islington (bot) c55479556d
[3.8] bpo-39017: Avoid infinite loop in the tarfile module (GH-21454) (GH-21483)
Avoid infinite loop when reading specially crafted TAR files using the tarfile module
(CVE-2019-20907).
(cherry picked from commit 5a8d121a1f)


Co-authored-by: Rishi <rishi_devan@mail.com>

Automerge-Triggered-By: @encukou
2020-07-15 05:30:53 -07:00
Miss Islington (bot) b4cd77de05
Fix repeated words in Classes tutorial (GH-21455)
The phrase "At any time during execution," was repeated twice.

Automerge-Triggered-By: @Mariatta
(cherry picked from commit 4f28f75dee)

Co-authored-by: Paul McMillan <paul@mcmillan.ws>
2020-07-13 18:49:44 -07:00
Łukasz Langa 73f20186c2
Post 3.8.4 2020-07-13 22:50:02 +02:00
Łukasz Langa 0277b914ca Python 3.8.4
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCAAdFiEE4/8oOcBIslwITevpsmmV4xAlBWgFAl8MT5gACgkQsmmV4xAl
 BWg0CA//Q+aC/BwXrpPrUfgFAGF1UlwxkRlaEfDRvA+Yip3mo2QR005w4xfxkrzS
 8A0PNWOMH/nbmGabmZ/2xZH4ntOvjy2/+5Bcmj1tqNuDOc1gUqywuQ9MtDmW6w+6
 oZ7NE/m948NJwlnoreJCOuFUqXsjtMtnGVfJWs8+Fb7kjZJW3MOytEScVku3434Y
 5/DMrs3kzQxAag2L5GqdUoA7rrdjpzSfMV25ZOeZAd41kZ2/4DqC22PfOp8ApmDA
 /cpeE9tuhHlHz3139bi89F584ZHW+EW7zSNtmBduMPVb1TPS+26oHw44MJ3hJBRK
 tpTtHQytISIRhS4r4iERd26QngbN2tsN7eQZbq4p5ilCx29+7p6ekeWEzNJgvl6O
 Lg9FN62nVacvJqpaa0DZTSUmP/rlCciZFIz+r2Yar0Z2y+Bv2s1IGu6TL0pk96d7
 NpnxvD2EUhN0DpjIm98QhaSeElfqdDTkLRsh6M0bhgiGwvQsVk+wXjNgysuDR3wR
 uXSmO7dBgicKdGpdXX9fd1p8Ind4ibyuD7XxvWRzsMxRm5GQgigEKt9IAXrrkf9n
 r/07AvKbJj8nf9y7SwleUPsaplsrbP0FALmHwkzDQeGA6nbwphRon6bkWQtHMWhu
 kIZJYpGhs0wqnGzylgkI1d5cyXlcok2JbH1D4PALbvkX0tKDN/0=
 =vlbw
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQJEBAABCAAuFiEE4/8oOcBIslwITevpsmmV4xAlBWgFAl8MyOsQHGx1a2FzekBs
 YW5nYS5wbAAKCRCyaZXjECUFaFdlD/sEkprGVKulgfYim0D18Al+0T/LjKRa2wMy
 FHehobDCtKtJDI1jSwbXmlajbid7LHlPBJ6x6pHX7JElXVUQmGsOey1xhqO0Zkkz
 xlbwnZmVby0sco8Mp+5tY+UWkxJX6KlYwqaJ8GLhzsmrhj3YZP1DeUCJr5t4mGjV
 gfFB1NY+5x3XbA2F8op8AASUb2djxbhKc9FPzT6e3+XgMHHSMMZZ60atwmoM0CFw
 9NWCxBteOsUGnhj1UTk4Cbh8Bmpf/4l6kQpIyo4lxiplox99LmE52z4nXgZsHjDs
 UMePNJeYtEsLRZoz9N0FZn/RU4oux2I86qqs6gQPh8Sg23TlP7XHBN4Gav+Lj9Sv
 CWl999p/MFduBRXCyNJKeUmSi2wawnBnT2vk3XFadLdfnM8UWU7JvtjBmki/YOQK
 D9mAXzOgDMpnah4ora2YeS554OxwxbIyJlf2PilRL6MMZ7mSqpndEYvFPd9yeIoK
 HWTKpyTM3W1UOAAZzs09UdOg17Aq1Ei6jLaeEm2uI3mvCP6YUlcQxZVSq5GVkaR1
 eB8JB5plCdM83mrP+9XPXCD+MPaO5V0L+1O2lxcJuwVl4kRKW6tsA6NoDbRqLdk+
 EnlryOAALHbk3aDD/J+qhfjNgPsfeuJLC9nvB6IkUWw57TcjKWReVHLhELfUmOkO
 3EP8tA3k9w==
 =YNqk
 -----END PGP SIGNATURE-----

Merge tag 'v3.8.4' into 3.8

Python 3.8.4
2020-07-13 22:49:45 +02:00
Miss Islington (bot) f56c75ed53
bpo-41288: Fix a crash in unpickling invalid NEWOBJ_EX. (GH-21458)
Automerge-Triggered-By: @tiran
(cherry picked from commit 4f309abf55)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-07-13 06:05:44 -07:00
Łukasz Langa dfa645a65e
Python 3.8.4 2020-07-13 14:11:53 +02:00
Miss Islington (bot) c77f71f981
bpo-41228: Fix /a/are/ in monthcalendar() descripton (GH-21372)
(cherry picked from commit 344dce312a)

Co-authored-by: Nima Dini <nima.dini@gmail.com>
2020-07-10 19:09:07 -07:00
Miss Islington (bot) a1d208435c
Fix typo in docs: 'created by th' -> 'created by the' (GH-21384)
(cherry picked from commit 6fc732a211)

Co-authored-by: marload <rladhkstn8@gmail.com>
2020-07-10 08:51:31 -07:00
Miss Islington (bot) 33672c0191
bpo-41175: Guard against a NULL pointer dereference within bytearrayobject (GH-21240)
The issue is triggered by the bytearray() + bytearray() operation.

Detected by GCC 10 static analysis tool.
(cherry picked from commit 61fc23ca10)

Co-authored-by: stratakis <cstratak@redhat.com>
2020-07-10 03:15:59 -07:00
Miss Islington (bot) 3d1c06e8b9
bpo-37765: Add keywords to IDLE tab completions (GH-15138)
Keywords are present in the main module tab completion lists generated by rlcompleter, which is used by REPLs on *nix. Add all keywords to IDLE's main module name list except those already added from builtins (True, False, and None) . This list may also be used by Show Completions on the Edit menu, and its hot key.

Rewrite Completions doc.

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
(cherry picked from commit bce2eb4646)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-07-09 15:54:44 -07:00
Tony Solomonik 0b6169e391
bpo-41247: asyncio.set_running_loop() cache running loop holder (#21406)
The running loop holder cache variable was always set to NULL when
calling set_running_loop.

Now set_running_loop saves the newly created running loop holder in the
cache variable for faster access in get_running_loop.
2020-07-09 10:38:46 -07:00
Miss Islington (bot) 1e66f7e102
bpo-41199: Docstring convention not followed for dataclasses documentation page (GH-21413)
Automerge-Triggered-By: @ericvsmith
(cherry picked from commit 61bb24a270)

Co-authored-by: marload <rladhkstn8@gmail.com>
2020-07-09 05:21:11 -07:00
Miss Islington (bot) 54babbe976
bpo-41252: Fix incorrect refcounting in _ssl.c's _servername_callback() (GH-21407)
(cherry picked from commit ee96f32ca2)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2020-07-09 03:15:36 -07:00
Miss Islington (bot) c1c5034593
bpo-40597: Allow email.contextmanager set_content() to set a null string. (GH-20542)
(cherry picked from commit 4fa61a7732)

Co-authored-by: Mark Sapiro <mark@msapiro.net>
2020-07-08 14:18:38 -07:00