summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Python 3.10.0rc2v3.10.0rc2Pablo Galindo2021-09-0770-152/+695
|
* bpo-45123: PyAiter_Check and PyObject_GetAiter fix & rename. (GH-28194) ↵Miss Islington (bot)2021-09-0711-10793/+5870
| | | | | | | (GH-28199) Fix PyAiter_Check to only check for the `__anext__` presense (not for `__aiter__`). Rename `PyAiter_Check()` to `PyAIter_Check()`, `PyObject_GetAiter()` -> `PyObject_GetAIter()`.
* bpo-44964: Add a note explaining the new semantics of f_last_i in frame ↵Miss Islington (bot)2021-09-072-2/+9
| | | | | | | objects (GH-28200) (cherry picked from commit fa2c0b85a8d5c9486661083afdf38cbaadb3432a) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* bpo-44860: Make sysconfig posix_user not depend on platlibdir (GH-27655) ↵Miss Islington (bot)2021-09-072-1/+3
| | | | | | | (GH-28197) (cherry picked from commit a5c6bcf24479934fe9c5b859dd1cf72685a0003a) Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
* bpo-44963: Implement send() and throw() methods for anext_awaitable objects ↵Miss Islington (bot)2021-09-073-22/+270
| | | | | | | | (GH-27955) Co-authored-by: Yury Selivanov <yury@edgedb.com> (cherry picked from commit 533e725821b15e2df2cd4479a34597c1d8faf616) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* Update idlelib/help.html to include idle.rst spelling fix (GH-28191)Miss Islington (bot)2021-09-071-13/+7
| | | | | | The idle.rst fix was GH-27903 two weeks ago. (cherry picked from commit f05ad9202896f21ca9717f5c9f4b933b7f5b6550) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* Fix typo in a comment in Modules/_ssl.c: s/validata/validate/ (GH-27993) ↵Miss Islington (bot)2021-09-061-1/+1
| | | | | (GH-27997) (cherry picked from commit 28db1f61f20352c02e4ae1518e5aeb6505df3045)
* bpo-45052: Unskips a failing `test_shared_memory_basics` test (GH-28182)Miss Islington (bot)2021-09-062-2/+7
| | | | | (cherry picked from commit 19871fce3b74fc3f37e334a999e00d0ef65a8f1e) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* More useful OrderedDict LRU recipes (GH-28164)Miss Islington (bot)2021-09-051-19/+76
| | | | | (cherry picked from commit c860d30fa055ada336c75157b488c7baafb5bdad) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* Check that 'configure' is generated by GNU Autoconf 2.69 (GH-28152) (GH-28155)Miss Islington (bot)2021-09-051-0/+2
| | | | (cherry picked from commit 6beaf2ffaecd92955c5b3c579f184cbecc222636)
* bpo-45102: unittest: add tests for skipping and errors in cleanup (GH-28166)Miss Islington (bot)2021-09-051-0/+138
| | | | | (cherry picked from commit 28264269de9ff88d9ee7110fc56ac2d2db275bec) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-44571: Add itertool recipe for a variant of takewhile() (GH-28167)Miss Islington (bot)2021-09-052-1/+77
| | | | | (cherry picked from commit 91be41ad933e24bff26353a19f56447e17fb6367) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* bpo-45042: Now test classes decorated with `requires_hashdigest` are not ↵Miss Islington (bot)2021-09-044-6/+22
| | | | | | | | skipped (GH-28060) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> (cherry picked from commit dd7b816ac87e468e2fa65ce83c2a03fe1da8503e) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* bpo-45030: Fix integer overflow in __reduce__ of the range iterator (GH-28000)Miss Islington (bot)2021-09-043-18/+27
| | | | | | | It happened with fast range iterator when the calculated stop = start + step * len was out of the C long range. (cherry picked from commit 936f6a16b9ef85bd56b18a247b962801e954c30e) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.10] bpo-45097: Add more tests for shutdown_asyncgens() (GH-28154) (GH-28159)Miss Islington (bot)2021-09-041-0/+80
| | | | | | | * bpo-45097: Add more tests for shutdown_asyncgens() (GH-28154) (cherry picked from commit c2970fdec52788b6d9ff419ab7e31f255d87433d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Add What's New for dataclass keyword-only parameters. (GH-28158) (GH-28163)Miss Islington (bot)2021-09-041-1/+60
| | | | | | | (cherry picked from commit a1ba3597d2d2dd5e5d73f42b1174ab5e0a2cd224) Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com> Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
* [3.10] Regenerate autoconf files with version 2.69 (GH-28151)Pablo Galindo Salgado2021-09-041-7260/+4992
|
* [3.10] bpo-45060: Get rid of few uses of the equality operators with None ↵Serhiy Storchaka2021-09-049-13/+13
| | | | | | | (GH-28087). (GH-28092) (cherry picked from commit 3c65457156d87e55010507d616b4eecb7a02883d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-42255: Update webbrowser doc for macOS (GH-28144)Dong-hee Na2021-09-031-2/+2
|
* bpo-45081: Fix __init__ method generation when inheriting from Protocol ↵Miss Islington (bot)2021-09-033-13/+47
| | | | | | | | (GH-28121) Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> (cherry picked from commit 0635e201beaf52373f776ff32702795e38f43ae3) Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
* [doc] Reword sentinel object summary in dataclasses (GH-27792)Miss Islington (bot)2021-09-021-4/+3
| | | | | | | | This sentinel value (`MISSING`) is also used as default value for the `kw_only` parameter introduced in Python 3.10. It's cleaner to simply omit the usage here. Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 767a17f35a581da664ac8cf5d67281da9485eebf) Co-authored-by: Ville Korhonen <ville@xd.fi>
* [3.10] [doc] Link to deprecation policy PEP from the DeprecationWarning ↵Łukasz Langa2021-09-021-0/+4
| | | | | | | documentation (GH-28123) (#28126) (cherry picked from commit a7ef15aae8608560bffeeaba412c10e52cab07dd) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-40360: [doc] Rephrase deprecation note about lib2to3 (GH-28122)Miss Islington (bot)2021-09-021-6/+9
| | | | | (cherry picked from commit f0b63d5b56a6324f5f86807d9548c7b38aa2a8f7) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-45057: Simplify RegressionTestResult (GH-28081) (GH-28101)Miss Islington (bot)2021-09-011-31/+2
| | | | | | | Remove code which duplicates the functionality of TextTestResult. (cherry picked from commit 2b76a5322fdf71d62b531fd765085f96f981c244) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-45059: Add module cleanup to IDLE test_macosx (GH-28102)Miss Islington (bot)2021-08-311-0/+9
| | | | | (cherry picked from commit 22fe0eb13c3441b71b60aaea0e7fe289a29783da) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-45039: Consistently use ADDOP_LOAD_CONST in compiler rather than ↵Miss Islington (bot)2021-08-311-2/+4
| | | | | | | ADDOP_O(c, LOAD_CONST,...) (GH-28015) (cherry picked from commit 70ccee418d1f9d34ed15cfe7104221f9cfd27d03) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* bpo-45059: Fix IDLE test typo: using "==" instead of "=" (GH-28086)Miss Islington (bot)2021-08-311-1/+1
| | | | | (cherry picked from commit 54f100514b02f6628450043e21ccfe39350d7ac7) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-44135: [docs] Fix inline markup (GH-28095)Miss Islington (bot)2021-08-311-1/+1
| | | | | (cherry picked from commit 9a7ec2fcdee2da9e080ca459d4c240776df72567) Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
* bpo-45061: Enhance faulthandler traceback wit no Python frame (GH-28090)Miss Islington (bot)2021-08-311-1/+1
| | | | | | | | | | | Fix indentation of <no Python frame> message in a faulthandler traceback or a Fatal Python error traceback. Example: Current thread 0x00007f03896fb740 (most recent call first): Garbage-collecting <no Python frame> (cherry picked from commit 888d4cc06b887e77f281ba4d640e281cb4c61b7b) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-44135: Refine explanation of how passing tuples to issubclass() behaves ↵Miss Islington (bot)2021-08-311-3/+3
| | | | | | | | (GH-26193) Co-authored-by: Zachary Kneupper <zachary.kneupper@gmail.com> (cherry picked from commit 08767c73b5bf1f28792d5fef7f41d52822a4989f) Co-authored-by: Zack Kneupper <zachary.kneupper@gmail.com>
* bpo-44925: [docs] Fix confusing deprecation notice for typing.IO (GH-28004)Miss Islington (bot)2021-08-311-4/+4
| | | | | (cherry picked from commit edae42f99f8153b92ccf365dbd1c2fa954f913b4) Co-authored-by: DonnaDia <37962843+DonnaDia@users.noreply.github.com>
* bpo-43913: Fix bugs in cleaning up classes and modules in unittest. (GH-28006)Miss Islington (bot)2021-08-304-70/+719
| | | | | | | | | | | | | | | | | * Functions registered with addModuleCleanup() were not called unless the user defines tearDownModule() in their test module. * Functions registered with addClassCleanup() were not called if tearDownClass is set to None. * Buffering in TestResult did not work with functions registered with addClassCleanup() and addModuleCleanup(). * Errors in functions registered with addClassCleanup() and addModuleCleanup() were not handled correctly in buffered and debug modes. * Errors in setUpModule() and functions registered with addModuleCleanup() were reported in wrong order. * And several lesser bugs. (cherry picked from commit 08d9e597c8ef5a2b26375ac954fdf224f5d82c3c) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-41620: TestCase.run() now always return a TestResult instance (GH-28030)Miss Islington (bot)2021-08-303-24/+34
| | | | | | | | | Previously it returned None if the test class or method was decorated with a skipping decorator. Co-authored-by: Iman Tabrizian <iman.tabrizian@gmail.com> (cherry picked from commit 7e246a3a7b43762480ee4fe0cfb859e8e997a8c8) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-44449: faulthandler don't modify frame refcnt (GH-27850)Victor Stinner2021-08-302-5/+7
| | | | Fix a crash in the signal handler of the faulthandler module: no longer modify the reference count of frame objects.
* [3.10] bpo-45007: Update to OpenSSL 1.1.1l in Windows build and CI ↵Łukasz Langa2021-08-306-22/+23
| | | | | | | | (GH-28009) (GH-28039) (cherry picked from commit d3bdbbf9a4352a24fc2bfc7a63a024b244b61aba) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-45007: Update multissl to openssl 1.1.1l as well (GH-28044)Miss Islington (bot)2021-08-301-1/+1
| | | | | | This was missed while upgrading CI. (cherry picked from commit d6cb5dd9e19210f5963ff8beadde7ca2fda71574) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-44689: ctypes.util.find_library() now finds macOS 11+ system libraries ↵Miss Islington (bot)2021-08-302-3/+31
| | | | | | | | when built on older macOS systems (GH-27251) Previously, when built on older macOS systems, `find_library` was not able to find macOS system libraries when running on Big Sur due to changes in how system libraries are stored. (cherry picked from commit 71853a73024a98aa38a3c0444fe364dbd9709134) Co-authored-by: Tobias Bergkvist <tobias@bergkv.ist>
* bpo 45007: Update macOS installer builds to use OpenSSL 1.1.1l. (GH-28051)Miss Islington (bot)2021-08-303-3/+64
| | | | | (cherry picked from commit 94b2639fad50d7ff8acd12c11e5fe5f9a6e1da5c) Co-authored-by: Ned Deily <nad@python.org>
* bpo-43124: Fix smtplib multiple CRLF injection (GH-25987)Miss Islington (bot)2021-08-293-3/+65
| | | | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 0897253f426068ea6a6fbe0ada01689af9ef1019) Co-authored-by: Miguel Brito <5544985+miguendes@users.noreply.github.com>
* bpo-44394: Update libexpat copy to 2.4.1 (GH-26945)Miss Islington (bot)2021-08-2922-191/+1389
| | | | | | | | | | Update the vendored copy of libexpat to 2.4.1 (from 2.2.8) to get the fix for the CVE-2013-0340 "Billion Laughs" vulnerability. This copy is most used on Windows and macOS. Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 3fc5d84046ddbd66abac5b598956ea34605a4e5d) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-42278: Use tempfile.TemporaryDirectory rather than tempfile.mktemp in ↵Miss Islington (bot)2021-08-292-6/+9
| | | | | | | | pydoc (GH-23200) Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit c9227df5a9d8e958a2324cf0deba8524d1ded26a) Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
* bpo-25130: Make SQLite tests more compatible with PyPy (GH-28021)Miss Islington (bot)2021-08-292-2/+5
| | | | | (cherry picked from commit 07d3d54f4e84b1259b800884b202701f69e408d8) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-25130: Make unit-test about restricting the maximum number of nested ↵Miss Islington (bot)2021-08-281-32/+35
| | | | | | | | | | | | blocks cpython-only (GH-28002) (GH-28016) PyPy and potentially other implementations have different or no contraints on the number of blocks that can be statically nested. move the test that checks for this behaviour into a unit test and mark it as CPython-only. (cherry picked from commit eb263f9a356f5c5f21b8d5ce20bac92f31c40cad) Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de>
* [3.10] bpo-27334: roll back transaction if sqlite3 context manager fails to ↵Erlend Egeberg Aasland2021-08-283-8/+98
| | | | commit (GH-26202) (GH-27943)
* bpo-44524: Fix cryptic TypeError message when trying to subclass special ↵Miss Islington (bot)2021-08-283-0/+21
| | | | | | | | forms in `typing` (GH-27710) This was a Python 3.9 regression. (cherry picked from commit a3a4d20d6798aa2975428d51f3a4f890248810cb) Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
* bpo-45018: Fix rangeiter_reduce in rangeobject.c (GH-27938)Miss Islington (bot)2021-08-283-17/+33
| | | | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 94a3d2a6329ab7941e93ad2f5bcbb8af2b8b80d2) Co-authored-by: chilaxan <chilaxan@gmail.com>
* bpo-44962: Fix a race in WeakKeyDict, WeakValueDict and WeakSet when two ↵Miss Islington (bot)2021-08-283-12/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | threads attempt to commit the last pending removal (GH-27921) Fixes: Traceback (most recent call last): File "/home/graingert/projects/asyncio-demo/demo.py", line 36, in <module> sys.exit(main()) File "/home/graingert/projects/asyncio-demo/demo.py", line 30, in main test_all_tasks_threading() File "/home/graingert/projects/asyncio-demo/demo.py", line 24, in test_all_tasks_threading results.append(f.result()) File "/usr/lib/python3.10/concurrent/futures/_base.py", line 438, in result return self.__get_result() File "/usr/lib/python3.10/concurrent/futures/_base.py", line 390, in __get_result raise self._exception File "/usr/lib/python3.10/concurrent/futures/thread.py", line 52, in run result = self.fn(*self.args, **self.kwargs) File "/usr/lib/python3.10/asyncio/runners.py", line 47, in run _cancel_all_tasks(loop) File "/usr/lib/python3.10/asyncio/runners.py", line 56, in _cancel_all_tasks to_cancel = tasks.all_tasks(loop) File "/usr/lib/python3.10/asyncio/tasks.py", line 53, in all_tasks tasks = list(_all_tasks) File "/usr/lib/python3.10/_weakrefset.py", line 60, in __iter__ with _IterationGuard(self): File "/usr/lib/python3.10/_weakrefset.py", line 33, in __exit__ w._commit_removals() File "/usr/lib/python3.10/_weakrefset.py", line 57, in _commit_removals discard(l.pop()) IndexError: pop from empty list Also fixes: Exception ignored in: weakref callback <function WeakKeyDictionary.__init__.<locals>.remove at 0x00007fe82245d2e0> Traceback (most recent call last): File "/usr/lib/pypy3/lib-python/3/weakref.py", line 390, in remove del self.data[k] KeyError: <weakref at 0x00007fe76e8d8180; dead> Exception ignored in: weakref callback <function WeakKeyDictionary.__init__.<locals>.remove at 0x00007fe82245d2e0> Traceback (most recent call last): File "/usr/lib/pypy3/lib-python/3/weakref.py", line 390, in remove del self.data[k] KeyError: <weakref at 0x00007fe76e8d81a0; dead> Exception ignored in: weakref callback <function WeakKeyDictionary.__init__.<locals>.remove at 0x00007fe82245d2e0> Traceback (most recent call last): File "/usr/lib/pypy3/lib-python/3/weakref.py", line 390, in remove del self.data[k] KeyError: <weakref at 0x000056548f1e24a0; dead> See: https://github.com/agronholm/anyio/issues/362GH-issuecomment-904424310 See also: https://bugs.python.org/issue29519 Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 206b21ed9f64fedff67bfea7cf73e423e3e32393) Co-authored-by: Thomas Grainger <tagrain@gmail.com>
* bpo-45022: Pin current libffi build to fixed version in preparation for ↵Miss Islington (bot)2021-08-273-9/+17
| | | | | | | | upcoming update (GH-27982) Also improve the build script for libffi, which is not used as part of the regular build. (cherry picked from commit 969ae7f7356584e30667b4e490ffa2ffa1810429) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-44997: macOS does not support loadable SQLite extensions (GH-27979)Miss Islington (bot)2021-08-271-0/+2
| | | | | | Authored-by: Ronald Oussoren <ronaldoussoren@mac.com> (cherry picked from commit 2ec9428e3516b6e7c6583687aa3b39fb96925577) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-40635: Fix getfqdn() docstring and docs (GH-27971)Miss Islington (bot)2021-08-262-4/+6
| | | | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit fdcb675eed47b1f6054fae381af4388b16a6fff4) Co-authored-by: andrei kulakov <andrei.avk@gmail.com>