Miss Islington (bot)
2a722d4fab
bpo-44317: Improve tokenizer errors with more informative locations (GH-26555) (GH-27079)
...
(cherry picked from commit f24777c2b3
)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2021-07-10 01:47:33 +01:00
Batuhan Taskaya
2f7636887e
[3.10] bpo-43897: ast validation for pattern matching nodes (GH-27074)
...
(cherry picked from commit 8dcb7d9808
)
Co-authored-by: Batuhan Taskaya <batuhan@python.org>
2021-07-10 01:16:15 +01:00
Miss Islington (bot)
662ace1093
Doc: Fix wrong exception used in example. (GH-26572)
...
(cherry picked from commit 15f0fc571c
)
Co-authored-by: Julien Palard <julien@palard.fr>
2021-07-08 21:51:26 -07:00
Mark Shannon
9f2c63b258
bpo-44570: Fix line tracing for forward jumps to duplicated tails (GH-27067)
2021-07-08 19:21:22 +01:00
Pablo Galindo
61eb9b5dfd
[3.10] bpo-44446: support lineno being None in traceback.FrameSummary (GH-26781) (GH-27072)
...
As of 088a15c49d
, lineno is None instead
of -1 if there is no line number.
Signed-off-by: Filipe Laíns <lains@riseup.net>.
(cherry picked from commit 91a8f8c16c
)
Co-authored-by: Filipe Laíns <lains@riseup.net>
Co-authored-by: Filipe Laíns <lains@riseup.net>
2021-07-08 17:47:12 +01:00
Miss Islington (bot)
08697ac5d1
bpo-44582: Accelerate mimetypes.init on Windows with a native accelerator (GH-27059)
...
(cherry picked from commit bbf2fb6c7a
)
Co-authored-by: Steve Dower <steve.dower@python.org>
2021-07-08 09:13:06 -07:00
Miss Islington (bot)
a219d6bc8f
docs: add the word 'official' (GH-26849)
...
(cherry picked from commit af4a2dcc40
)
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
2021-07-08 10:27:57 -05:00
Steve Dower
f2491c6479
bpo-44479: Simplified LICENSE.txt regeneration in Windows build (GH-27056)
2021-07-07 19:35:51 +01:00
Miss Islington (bot)
9f431dd0a5
bpo-44558: Match countOf is
/==
treatment to c (GH-27007)
...
(cherry picked from commit 6bd3ecfc27
)
Co-authored-by: Rupert Tombs <rupert.tombs@gmail.com>
2021-07-07 06:50:41 -07:00
Miss Islington (bot)
645e527298
bpo-44563: Fix error handling in tee.fromiterable() (GH-27020) (GH-27041)
...
In debug build failed tee.fromiterable() corrupted the linked list of all GC objects.
(cherry picked from commit f64de53ff0
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-07-05 23:34:53 +01:00
Miss Islington (bot)
846cc4d280
bpo-43453: Update and re-add example to typing runtime_checkable (GH-27013)
...
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
(cherry picked from commit 17f94e2888
)
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
2021-07-05 13:46:02 -07:00
Steve Dower
f3289a5050
bpo-44479: Regenerate test_frozenmain.h and frozen_hello.h during build on Windows (GH-26984)
2021-07-05 17:28:00 +01:00
Miss Islington (bot)
d17cc1ff9f
bpo-44562: Use PyType_GenericAlloc in Py_GenericAlias (GH-27021)
...
* bpo-44562: Use PyType_GenericAlloc in Py_GenericAlias
* Update Objects/genericaliasobject.c
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit b324c4c5f7
)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2021-07-05 04:33:53 -07:00
Miss Islington (bot)
1f8486fd50
bpo-44558: Make the implementation consistency of operator.indexOf (GH-27012)
...
(cherry picked from commit 09302405d2
)
Co-authored-by: Dong-hee Na <donghee.na@python.org>
2021-07-05 02:51:46 -07:00
Miss Islington (bot)
22bcc0768e
bpo-41486: zlib uses an UINT32_MAX sliding window for the output buffer (GH-26143)
...
* zlib uses an UINT32_MAX sliding window for the output buffer
These funtions have an initial output buffer size parameter:
- zlib.decompress(data, /, wbits=MAX_WBITS, bufsize=DEF_BUF_SIZE)
- zlib.Decompress.flush([length])
If the initial size > UINT32_MAX, use an UINT32_MAX sliding window, instead of clamping to UINT32_MAX.
Speed up when (the initial size == the actual size).
This fixes a memory consumption and copying performance regression in earlier 3.10 beta releases if someone used an output buffer larger than 4GiB with zlib.decompress.
Reviewed-by: Gregory P. Smith
(cherry picked from commit a9a69bb3ea
)
Co-authored-by: Ma Lin <animalize@users.noreply.github.com>
2021-07-04 18:32:56 -07:00
Miss Islington (bot)
68330b681a
bpo-44562: Remove invalid PyObject_GC_Del from error path of types.GenericAlias … (GH-27016)
...
(cherry picked from commit d33943a6c3
)
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
2021-07-04 10:55:35 -07:00
Ethan Furman
9bf7c2d638
[3.10] bpo-44559: [Enum] revert enum module to 3.9 (GH-27010)
...
* [Enum] revert enum module to 3.9
2021-07-03 21:08:42 -07:00
Miss Islington (bot)
000b9e803a
bpo-44553: Correct failure in tp_new for the union object (GH-27008) (GH-27009)
...
(cherry picked from commit bc39614856
)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2021-07-03 21:51:10 +01:00
Miss Islington (bot)
bea618d780
Fix a small typo in the docs (GH-26991) (GH-27003)
...
(cherry picked from commit a79e2b6497
)
Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <thatiparthysreenivas@gmail.com>
Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <thatiparthysreenivas@gmail.com>
2021-07-03 15:15:49 -03:00
Irit Katriel
33022f9e86
[3.10] bpo-34266: [pdb] handle ValueError from shlex.split() (GH-26656) (GH-27006)
...
(cherry picked from commit d968a638fc
)
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2021-07-03 17:28:46 +01:00
Miss Islington (bot)
0856134542
bpo-44553 : Implement GC methods for types.Union (GH-26993)
...
(cherry picked from commit 1097384ce9
)
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
2021-07-03 06:33:16 -07:00
Irit Katriel
7a2d2ed133
[3.10] bpo-30256: [doc] Fix formatting error in news (GH-26994) (GH-26998)
2021-07-02 18:39:52 +01:00
Miss Islington (bot)
42c26282a1
bpo-34798: [doc] clearer presentation of pprint.PrettyPrinter constru… (GH-26967) (GH-26990)
...
(cherry picked from commit 943e77d42d
)
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2021-07-02 11:07:50 +01:00
Miss Islington (bot)
3ec3e0f83c
bpo-30256: Add manager_owned keyword arg to AutoProxy (GH-16341) ( #26987 )
...
Co-authored-by: Jordan Speicher <jordan@jspeicher.com>
(cherry picked from commit 85b920498b
)
Co-authored-by: finefoot <33361833+finefoot@users.noreply.github.com>
2021-07-01 21:15:47 -07:00
Miss Islington (bot)
956f1fc894
bpo-43425: Update setup.py not to use distutils.log (GH-26969)
...
(cherry picked from commit a7e251b07a
)
Co-authored-by: Dong-hee Na <donghee.na@python.org>
2021-07-01 19:05:11 -07:00
Miss Islington (bot)
94a4136c8e
bpo-43425: Update _osx_support not to use distutils.log (GH-26968)
...
(cherry picked from commit c8979f780e
)
Co-authored-by: Dong-hee Na <donghee.na@python.org>
2021-06-30 18:20:24 -07:00
Miss Islington (bot)
6843a3b930
bpo-44535: Enable building with Visual Studio 2022 on Windows (GH-26962)
...
(cherry picked from commit d3a95c1b6e
)
Co-authored-by: Steve Dower <steve.dower@python.org>
2021-06-30 12:24:42 -07:00
Steve Dower
a5764d3d96
bpo-41180: Replace marshal code.__new__ audit event with marshal.load[s] and marshal.dumps (GH-26970)
2021-06-30 18:52:25 +01:00
Miss Islington (bot)
2df13e1211
bpo-44523: Remove the pass-through for hash() in weakref proxy objects (GH-26950)
...
(cherry picked from commit e2fea101fd
)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2021-06-29 16:19:06 -07:00
Miss Islington (bot)
08aa26e435
bpo-38062: [doc] clarify that atexit uses equality comparisons internally. (GH-26935) (GH-26956)
...
(cherry picked from commit 12803c59d5
)
Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
2021-06-29 18:52:27 +01:00
Miss Islington (bot)
d9fc4c3deb
bpo-42588: Update the docs for the TopologicalSorter.static_order() method (GH-26834)
...
(cherry picked from commit 0d7f7975d5
)
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
2021-06-29 04:14:52 -07:00
Miss Islington (bot)
a6acd1ab08
[doc] Fix typo in what's new in 3.10 (GH-26911) (GH-26940)
...
The `try` statement was missing a colon and therefore was not exemplifying the correct `SyntaxError`.
(cherry picked from commit dcb1caef5b
)
Co-authored-by: Rodrigo Girão Serrão <rodrigogiraoserrao@gmail.com>
2021-06-29 12:12:23 +01:00
Miss Islington (bot)
dc10264eb8
bpo-40939: Remove documentation for PyParser_*
& add porting notes (GH-26855) (GH-26898)
...
I tried to be relatively thorough and give lots of links.
One reason is that this wasn't deprecated very long; also it seems people running into this tend to not be familiar with similar APIs.
(cherry picked from commit 29987f7265
)
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2021-06-28 11:35:52 +02:00
Miss Islington (bot)
f4b31cdbc0
bpo-44464: Remove special exclusion for flake8 in the deprecation warnings. (GH-26807) (GH-26929)
...
Sync with importlib_metadata 4.6.
(cherry picked from commit efe7d08d17
)
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
2021-06-27 18:19:24 -04:00
Miss Islington (bot)
aeb63392e7
bpo-40620: Clarify tutorial controlflow.rst `range
` examples (GH-26919) (GH-26927)
...
(cherry picked from commit 2f49c9debc
)
Co-authored-by: jdevries3133 <58614260+jdevries3133@users.noreply.github.com>
2021-06-27 20:51:16 +01:00
Miss Islington (bot)
c95cdf2dae
Clarify the order of a stacked abstractmethod
(GH-26892)
...
Co-authored-by: Tal Einat <532281+taleinat@users.noreply.github.com>
(cherry picked from commit 74d60eab55
)
Co-authored-by: Ram Rachum <ram@rachum.com>
2021-06-27 11:50:38 -07:00
Miss Islington (bot)
e1f3bd2bb5
bpo-44404: tkinter after
support callable classes (GH-26812)
...
(cherry picked from commit e9c8f784fa
)
Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
2021-06-27 01:02:02 -07:00
Miss Islington (bot)
3df23b5199
[3.10] bpo-44468: Never skip base classes in typing.get_type_hints()
, even with invalid .__module__
. (GH-26862) (GH-26920)
...
(cherry picked from commit 7569c0fe91
)
Co-authored-by: will-ca <willchencontact@gmail.com>
Automerge-Triggered-By: GH:gvanrossum
2021-06-26 16:52:28 -07:00
Stéphane Bidoul
6cd369c48f
[3.10] Update vendored pip to 21.1.3 (GH-26912) (gh-26917)
2021-06-26 20:58:39 +01:00
Miss Islington (bot)
88970125e7
bpo-43977: Properly update the tp_flags of existing subclasses when their parents are registered (GH-26864)
...
(cherry picked from commit ca2009d72a
)
Co-authored-by: Brandt Bucher <brandt@python.org>
2021-06-25 08:46:23 -07:00
Miss Islington (bot)
8bec9fb92f
bpo-44498: suppress DeprecationWarnings for asynchat, asyncore and smtpd in tests (GH-26905) (GH-26907)
...
(cherry picked from commit 22e7effad5
)
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2021-06-25 00:38:01 +01:00
Miss Islington (bot)
a80a38ee9a
[3.10] bpo-44498: Issue a deprecation warning on asynchat, asyncore and smtpd import (GH-26882) (GH-26904)
...
* Issue a deprecation warning on smtpd import
* Also issue DeprecationWarnings for asynchat and asyncore
* Fix some tests
* test___all__ requires the word 'module' or 'package' in the deprecation
warning text, so add those to smtpd, asynchat, and asyncore.
* In test_support, use pprint now instead of asyncore as the landmark.
* Add What's New
* Use ..deprecated::
* Use ..deprecated::
* Update Lib/smtpd.py
Co-authored-by: Miro Hrončok <miro@hroncok.cz>
* Update Doc/library/smtpd.rst
Co-authored-by: Miro Hrončok <miro@hroncok.cz>
* Import async{hat,ore} after the DeprecationWarning for this module
Co-authored-by: Miro Hrončok <miro@hroncok.cz>
(cherry picked from commit 8488b85c63
)
Co-authored-by: Barry Warsaw <barry@python.org>
Automerge-Triggered-By: GH:warsaw
2021-06-24 12:57:55 -07:00
Miss Islington (bot)
11f1a30cdb
bpo-44456: Improve the syntax error when mixing keyword and positional patterns (GH-26793)
...
(cherry picked from commit 0acc258fe6
)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2021-06-24 08:34:28 -07:00
Miss Islington (bot)
b3fac2926b
bpo-44229: Ignore spurious EPROTOTYPE on macOS in test_ssl (GH-26893)
...
(cherry picked from commit b5a52eef67
)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
2021-06-24 05:27:35 -07:00
Miss Islington (bot)
733587011d
bpo-43916: Use test.support.check_disallow_instantiation() in test_tcl (GH-26412) (GH-26888)
...
(cherry picked from commit e90e042218
)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
2021-06-24 14:12:11 +02:00
Mark Shannon
0b6b286518
bpo-44297: Add a regression test for line numbers in with statements (GH-26891)
2021-06-24 13:09:14 +01:00
Erlend Egeberg Aasland
0a3452e7cf
[3.10] bpo-43988: Add test.support.check_disallow_instantiation() (GH-25757) (GH-26885)
...
(cherry picked from commit 4f725261c6
, fbff5387c3
, and 8cec740820
)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Automerge-Triggered-By: GH:vstinner
2021-06-23 16:46:25 -07:00
Victor Stinner
ece3841d3d
bpo-44441: _PyImport_Fini2() resets PyImport_Inittab (GH-26874) (GH-26877)
...
Py_RunMain() now resets PyImport_Inittab to its initial value at
exit. It must be possible to call PyImport_AppendInittab() or
PyImport_ExtendInittab() at each Python initialization.
(cherry picked from commit 489699ca05
)
2021-06-23 17:47:38 +02:00
Miss Islington (bot)
88a3342314
bpo-41621: Document defaultdict's default_factory parameter (GH-21945)
...
It defaults to None and is positional only.
(cherry picked from commit d1ae57027f
)
Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
2021-06-23 10:58:20 -04:00
Miss Islington (bot)
38e021ab90
bpo-44482: Fix very unlikely resource leak in glob in non-CPython implementations (GH-26843) (GH-26872)
...
(cherry picked from commit 5c7940257e
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-06-23 13:28:08 +03:00