summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [3.10] bpo-46009: Do not exhaust generator when send() method raises ↵Mark Shannon2021-12-085-21/+30
| | | | | | | | | | | | (GH-29986). (GH-29988) * [3.10] bpo-46009: Do not exhaust generator when send() method raises (GH-29986). (cherry picked from commit 69806b9516dbe092381f3ef884c7c64bb9b8414a) Co-authored-by: Mark Shannon <mark@hotpy.org> * Rename variable after cherry-pick. * Add NULL check.
* doc: Add link issue 44010 (GH-29454)Miss Islington (bot)2021-12-081-1/+1
| | | | | (cherry picked from commit 3e0f13b9e48eec8c54a185e4180bfca4e5e685f6) Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
* Fix double-space in exception message (GH-29955)Miss Islington (bot)2021-12-081-1/+1
| | | | | (cherry picked from commit c602c1be439e295fed9ebab47e895ef1d9df28be) Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
* [3.10] bpo-35821: Fix restructuredtext code formatting in logging.rst ↵Miss Islington (bot)2021-12-071-5/+5
| | | | | | | | | | (GH-29963) (GH-29965) (cherry picked from commit c7e7a4b969b5728d4b4f3c59bf98e1e830d5c6d6) Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Automerge-Triggered-By: GH:Fidget-Spinner
* [3.10] bpo-46004: Fix error location for loops with invalid targets ↵Pablo Galindo Salgado2021-12-073-1/+5
| | | | | | | (GH-29959). (GH-29961) (cherry picked from commit 1c7a1c3be08ee911d347fffd2716f3911ba751f9) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.10] bpo-35821: Add an example to Logger.propagate documentation. ↵Miss Islington (bot)2021-12-071-0/+9
| | | | (GH-29841) (GH-29957)
* bpo-46001: Change OverflowError to RecursionError in JSON library docstrings ↵Miss Islington (bot)2021-12-073-5/+5
| | | | | | | (GH-29943) (cherry picked from commit 8db06528cacc94e67eb1fb2e4c2acc061a515671) Co-authored-by: James Gerity <snoopjedi@gmail.com>
* Post 3.10.1Pablo Galindo2021-12-061-1/+1
|
* Python 3.10.1v3.10.1Pablo Galindo2021-12-06153-477/+1884
|
* [3.10] bpo-44035: Check autoconf files thoroughly (GH-29935) (GH-29937)Miss Islington (bot)2021-12-063-7/+20
| | | Co-authored-by: Christian Heimes <christian@python.org>
* bpo-45732: Update python.org macOS installer to use Tcl/Tk 8.6.12. (GH-29932)Ned Deily2021-12-063-207/+5
|
* bpo-45664: Fix resolve_bases() and new_class() for GenericAlias instance as ↵Miss Islington (bot)2021-12-053-1/+19
| | | | | | | a base (GH-29298) (cherry picked from commit 2b318ce1c988b7b6e3caf293d55f289e066b6e0f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-45663: Fix is_dataclass() for dataclasses which are subclasses of ↵Miss Islington (bot)2021-12-053-1/+15
| | | | | | | types.GenericAlias (GH-29294) (cherry picked from commit 446be166861b2f08f87f74018113dd98ca5fca02) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-45662: Fix the repr of InitVar with a type alias to the built-in class ↵Miss Islington (bot)2021-12-053-1/+7
| | | | | | | | (GH-29291) For example, InitVar[list[int]]. (cherry picked from commit 1fd4de5bddbbf2a97cdbac4d298c89e1156bdc6c) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-27946: Fix possible crash in ElementTree.Element (GH-29915)Miss Islington (bot)2021-12-053-13/+25
| | | | | | | Getting an attribute via attrib.get() simultaneously with replacing the attrib dict can lead to access to deallocated dict. (cherry picked from commit d15cdb2f32f572ce56d7120135da24b9fdce4c99) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-45916: Use HTTPS link for The Perils of Floating Point (GH-29896)Miss Islington (bot)2021-12-021-1/+1
| | | | | (cherry picked from commit 9f2f7e42269db74a89fc8cd74d82a875787f01d7) Co-authored-by: Zachary Ware <zach@python.org>
* docs: Improve example for urlparse() (GH-29816) (GH-29888)Miss Islington (bot)2021-12-021-31/+42
| | | | | | (cherry picked from commit 226d22ff2d209495621550eb78e81ed4c0fe0152) Co-authored-by: Christian Clauss <cclauss@me.com>
* bpo-45896: Fix docs default asyncio event loop on Windows (GH-29857) (GH-29877)Miss Islington (bot)2021-12-011-3/+4
| | | | | (cherry picked from commit f27bef30438d2f07f19de91e021f34b77ccc4b20) Co-authored-by: Rob <r4226@pm.me>
* bpo-33381: [doc] strftime's %f option may pad zeros on the left or the right ↵Miss Islington (bot)2021-11-301-2/+2
| | | | | | | | (GH-29801) (GH-29862) (cherry picked from commit f97ec09baf8431494fd2ef5133090c7b0afd0551) Co-authored-by: Vishal Pandey <vishalpandeyviptsk@gmail.com>
* bpo-45931: Prevent Directory.Build.props/targets from leaking from ↵Miss Islington (bot)2021-11-293-2/+10
| | | | | | | directories above the repo when building on Windows (GH-29854) (cherry picked from commit 734ed3538314c9651ae64d5e2e0e98aae3aec17b) Co-authored-by: David Federman <david.federman@outlook.com>
* bpo-43905: Expand dataclasses.astuple() and asdict() docs (GH-26154)Miss Islington (bot)2021-11-292-4/+20
| | | | | | | | | Expanded ``astuple()`` docs, warning about deepcopy being applied and providing a workaround. Automerge-Triggered-By: GH:ericvsmith (cherry picked from commit c1f93f0d378958dfae4f24aad0c0088e3e04e403) Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
* [3.10] bpo-44391: Remove unused argument from a varargs call. (GH-29843) ↵Miss Islington (bot)2021-11-291-1/+1
| | | | (GH-29849)
* [3.10] [Doc] Add info to logging cookbook about running logging socket ↵Miss Islington (bot)2021-11-291-0/+22
| | | | listeners i… (GH-29838) (GH-29839)
* bpo-43498: Fix dictionary iteration error in _ExecutorManagerThread (GH-24868)Miss Islington (bot)2021-11-292-1/+3
| | | | | (cherry picked from commit 7431448b817d3bf87f71661cf8f3d537807ab2e2) Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
* bpo-45614: Fix traceback display for exceptions with invalid module name ↵Irit Katriel2021-11-294-1/+15
| | | | | (GH-29726) (GH-29826) (cherry picked from commit 4dfae6f38e1720ddafcdd68043e476ecb41cb4d5)
* bpo-37658: Actually return result in race condition (GH-29202)Miss Islington (bot)2021-11-293-36/+13
| | | | | (cherry picked from commit 934a82623793e9d52b85f74d5395d65927a52205) Co-authored-by: Sam Bull <aa6bs0@sambull.org>
* [3.10] bpo-42268: Fail the configure step if the selected compiler doesn't ↵Pablo Galindo Salgado2021-11-284-43/+63
| | | | | | | support memory sanitizer (GH-29806) (GH-29815) (cherry picked from commit e71c12efcddc1076d5367461a5b416092267aa77) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.10] bpo-19460: Add test for MIMENonMultipart (GH-29817) (GH-29818)Miss Islington (bot)2021-11-282-0/+15
| | | | Co-authored-by: 180909 <wjh180909@gmail.com> Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
* [3.10] bpo-45881: Use CC from env first for cross building (GH-29752). ↵Christian Heimes2021-11-272-10/+11
| | | | | (GH-29753) Co-authored-by: Christian Heimes <christian@python.org>
* [3.10] bpo-41735: Fix thread lock in zlib.Decompress.flush() may go wrong ↵Miss Islington (bot)2021-11-272-2/+4
| | | | | | | | | | | | | (GH-29587) (GH-29811) * Fix thread lock in zlib.Decompress.flush() may go wrong Getting `.unconsumed_tail` before acquiring the thread lock may mix up decompress state. (cherry picked from commit 7edb6270a78c695e4c2ae2432797dc18105374fc) Co-authored-by: Ma Lin <animalize@users.noreply.github.com> Automerge-Triggered-By: GH:gpshead
* bpo-45901: Fixes argument passing when invoking .py files directly through ↵Miss Islington (bot)2021-11-262-2/+6
| | | | | | | the Store package (GH-29799) (cherry picked from commit 4841e694ee1686f8c933ddfcb8c854915867ce17) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-45866: Fix typo in the NEWS entry (GH-29798)Miss Islington (bot)2021-11-261-1/+1
| | | | | (cherry picked from commit 9a7611a7c4da6406383f8ffcea272ded6f890f1e) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-45866: pegen strips directory of "generated from" header (GH-29777) ↵Victor Stinner2021-11-265-4/+12
| | | | | | | | | (GH-29792) "make regen-all" now produces the same output when run from a directory other than the source tree: when building Python out of the source tree. (cherry picked from commit 253b7a0a9fef1d72a4cb87b837885576e68e917c)
* bpo-44353: Correct docstring for `NewType` (GH-29785)Miss Islington (bot)2021-11-261-1/+1
| | | | | | The docstring for `typing.NewType` is no longer strictly accurate, now that `NewType` is a class, rather than a function (cherry picked from commit 93c65df83cef71a4bc77d71afecdec8744c4f73a) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* bpo-45619: documentation of execution model: clarify and update binding ↵Miss Islington (bot)2021-11-261-9/+19
| | | | | | | | | | | | | summary (GH-29232) This does two changes that are quite related. 0. it add that variable binding can occur in pattern matching, an update of 3.10 which seems to have been omitted from the list of bindings 1. Given how long the sentence already was, with even subcases in the middle of the sentence, the commit breaks the sentence into an actual list. (cherry picked from commit cd876c84932ecc2f7a6c41f3fc800a34d5b06b95) Co-authored-by: Arthur Milchior <arthur@milchior.fr>
* [3.10] bpo-33393: Update config.guess and config.sub (GH-29781) (GH-29782)Christian Heimes2021-11-254-1870/+2230
| | | Co-authored-by: Christian Heimes <christian@python.org>
* [3.10] bpo-45568: Actually use @asynccontextmanager in usage example ↵Andrew Svetlov2021-11-251-0/+2
| | | | | | | | | | (GH-29151) (GH-29779) Automerge-Triggered-By: GH:asvetlov (cherry picked from commit 4dd82194f4a0e48a94191655e571b3aad1c4a22a) Co-authored-by: Zbigniew Siciarz <zbigniew@siciarz.net> Co-authored-by: Zbigniew Siciarz <zbigniew@siciarz.net>
* bpo-39026: Fix Python.h when building with Xcode (GH-29488) (GH-29732)Victor Stinner2021-11-253-4/+3
| | | | | | Fix Python.h to build C extensions with Xcode: remove a relative include from Include/cpython/pystate.h. (cherry picked from commit 4ae26b9c1d0c33e3db92c6f305293f9240dea358)
* [3.10] bpo-41498: Fix build on platforms without sigset_t (GH-29770) (GH-29773)Miss Islington (bot)2021-11-255-18/+35
| | | | | | | | (cherry picked from commit dc19e8698327cae3d6274b73c135375955f1d0d0) Co-authored-by: Christian Heimes <christian@python.org> Automerge-Triggered-By: GH:tiran
* [3.10] bpo-45727: Only trigger the 'did you forgot a comma' error suggestion ↵Pablo Galindo Salgado2021-11-258-9/+15
| | | | | | | if inside parentheses. (GH-29767) Backport of GH-29757 Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
* bpo-45893: Add missing extern C to initconfig.h (GH-29761)Miss Islington (bot)2021-11-242-0/+10
| | | | | | Co-authored-by: Steve Dower <steve.dower@python.org> (cherry picked from commit f4afc53bf68c8ded20b281cd1baa88a679b4a3fd) Co-authored-by: Christian Heimes <christian@python.org>
* bpo-45693: Document `port` parameter to `loop.create_server` (GH-29760) ↵Miss Islington (bot)2021-11-241-0/+5
| | | | | | | | | | | | | | | (GH-29762) Document the `port` parameter to `loop.create_server` in `asyncio`. In particular, note that if `host` resolves to multiple network interfaces, passing in `port=0` will result in a different random unused port being used for each interface. Automerge-Triggered-By: GH:ericvsmith (cherry picked from commit d71c7bc7339eb82de493c66ebbbfa1cad250ac78) Co-authored-by: Jim Crist-Harif <jcristharif@gmail.com> Co-authored-by: Jim Crist-Harif <jcristharif@gmail.com>
* bpo-45616: Let py.exe distinguish between v3.1 and v3.10 (GH-29731)Miss Islington (bot)2021-11-242-1/+14
| | | | | (cherry picked from commit f9de97aae5fe9dafb58a8099171f4a09c449f4e8) Co-authored-by: Zachary Ware <zach@python.org>
* bpo-45561: Run smelly.py tool from $(srcdir) (GH-29138)Miss Islington (bot)2021-11-233-4/+8
| | | | | (cherry picked from commit 457e6a6e96b5afad403a0bc892508a77beef4d33) Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
* [3.10] bpo-45250: fix docs regarding `__iter__` and iterators being ↵Brett Cannon2021-11-227-47/+51
| | | | | | | | inconsistently required by CPython (GH-29170) (GH-29650) It is now considered a historical accident that e.g. `for` loops and the `iter()` built-in function do not require the iterators they work with to define `__iter__`, only `__next__`. (cherry picked from commit be36e0634060c7d5dee8e8876fb888bbb53d992a) Co-authored-by: Brett Cannon <brett@python.org>
* bpo-45859: Mark test_field_descriptor in test_collections as CPython-only ↵Miss Islington (bot)2021-11-221-0/+1
| | | | | | | | | (GH-29691) (GH-29708) (cherry picked from commit 4fad314246399b69ef0c57ba8527d9efade99069) Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de> Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de>
* bpo-44649: Fix dataclasses(slots=True) with a field with a default, but ↵Miss Islington (bot)2021-11-223-6/+37
| | | | | | | | init=False (GH-29692) Special handling is needed, because for non-slots dataclasses the instance attributes are not set: reading from a field just references the class's attribute of the same name, which contains the default value. But this doesn't work for classes using __slots__: they don't read the class's attribute. So in that case (and that case only), initialize the instance attribute. Handle this for both normal defaults, and for fields using default_factory. (cherry picked from commit d3062f672c92855b7e9e962ad4bf1a67abd4589b) Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
* Fix out-of-tree build support for multissltest (GH-29694)Miss Islington (bot)2021-11-222-6/+12
| | | | | (cherry picked from commit 512dbf6f56364d359e16988b3fd7e766edfaebf9) Co-authored-by: Christian Heimes <christian@python.org>
* [3.10] Ensure the str member of the tokenizer is always initialised ↵Pablo Galindo Salgado2021-11-214-3/+428
| | | | | | | (GH-29681). (GH-29683) (cherry picked from commit 4f006a789a35f5d1a7ef142bd1304ce167392457) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* bpo-45852: Fix the Counter/iter test for statistics.mode() (GH-29667) ↵Miss Islington (bot)2021-11-211-4/+7
| | | | | | | | | | (GH-29671) Suggested by Stefan Pochmann. (cherry picked from commit 48744db70ed519c1566c22bf123a0e1f5c69253f) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com> Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>