summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-44469: Fix tests for "async with" with bad object (GH-26817)Miss Islington (bot)2021-06-211-6/+12
| | | | | | | Test for execution of the body was null. It would pass even if the code which should be skipped was executed. (cherry picked from commit 5d2b3a0d688cf8a33db3d266c9e7049c13766a4c) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.10] bpo-44087: Disallow instantiation of sqlite3.Statement (GH-26567) ↵Erlend Egeberg Aasland2021-06-202-1/+6
| | | | | (GH-26816) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-44077: Expose IP_RECVTOS in the socket module (GH-25992)Miss Islington (bot)2021-06-204-0/+12
| | | | | | Co-authored-by: Pablo Galindo <pablogsal@gmail.com> (cherry picked from commit a317778fd58b1c6b250feffbdb4ecf15e293ef48) Co-authored-by: Georg Sauthoff <mail@georg.so>
* bpo-43298: Improved error message when building without the Windows SDK ↵Miss Islington (bot)2021-06-202-3/+13
| | | | | | | | | installed (GH-26800) (GH-26802) (cherry picked from commit 80190b3e533097b55077becddc75423318ab2371) Co-authored-by: Steve Dower <steve.dower@python.org> Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-41299: Reduce lag in Windows threading timeouts by using a higher ↵Miss Islington (bot)2021-06-202-4/+11
| | | | | | | | | precision time source (GH-26568) (GH-26580) (cherry picked from commit 449e6f0ef395231e3abe467f910b02d7f075c27f) Co-authored-by: Ryan Hileman <lunixbochs@gmail.com> Co-authored-by: Ryan Hileman <lunixbochs@gmail.com>
* bpo-43667: Add news fragment for Solaris changes (GH-26405) (GH-26498)Miss Islington (bot)2021-06-201-0/+2
| | | (cherry picked from commit 164a4f46d1606e21d82babc010e397a9116e6730)
* Fix typos and grammatical changes in the 3.10 what's new document (GH-26319) ↵Miss Islington (bot)2021-06-201-1/+1
| | | | (GH-26814)
* Add a note about NameError/AttributeError suggestions with custom error ↵Miss Islington (bot)2021-06-201-0/+11
| | | | | | | | | functions (GH-26794) (GH-26796) (cherry picked from commit 83c9dad8da5fc90b717eef683304aaa49448615a) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-44426: Fix use of the C keyword 'default' as a variable name (GH-26798) ↵Miss Islington (bot)2021-06-191-2/+2
| | | | | (GH-26804) (cherry picked from commit 291848195f85e23c01adb76d5a0ff9c6eb7f2614)
* [3.10] bpo-38820: Test with OpenSSL 3.0.0-beta1 (GH-26769) (GH-26799)Miss Islington (bot)2021-06-192-2/+2
| | | | | | | | | Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit 44fb55149934d8fb095edb6fc3f8167208035b96) Co-authored-by: Christian Heimes <christian@python.org> Automerge-Triggered-By: GH:tiran
* Remove dubious suggestion (GH-26789) (#26797)Miss Islington (bot)2021-06-191-18/+0
|
* [3.10] bpo-43945: [Enum] reduce scope of new format() behavior (GH-26752) Ethan Furman2021-06-185-29/+226
| | | | | | | | | | | | | | | | | | | | | | | | | * [Enum] reduce scope of new format behavior Instead of treating all Enums the same for format(), only user mixed-in enums will be affected. In other words, IntEnum and IntFlag will not be changing the format() behavior, due to the requirement that they be drop-in replacements of existing integer constants. If a user creates their own integer-based enum, then the new behavior will apply: class Grades(int, Enum): A = 5 B = 4 C = 3 D = 2 F = 0 Now: format(Grades.B) -> DeprecationWarning and '4' 3.12: -> no warning, and 'B'. (cherry picked from commit f60b07ab6c943fce084772c3c7731ab3bbd213ff) Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* [3.10] bpo-44368: Improve syntax errors with invalid as pattern targets ↵Pablo Galindo2021-06-184-213/+332
| | | | | | | (GH-26632) (GH-26792) (cherry picked from commit 05073036dcecefc00b0c3e7397601809da41e2f1) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-44451: Reset DeprecationWarning filters in ↵Miss Islington (bot)2021-06-182-0/+4
| | | | | | | | | | | | | | | | | | | | test_importlib.test_entry_points_by_index (GH-26784) This avoids the following error if DeprecationWarnings are ignored. ====================================================================== ERROR: test_entry_points_by_index (test.test_importlib.test_metadata_api.APITests) Prior versions of Distribution.entry_points would return a ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/Python-3.10.0b3/Lib/test/test_importlib/test_metadata_api.py", line 145, in test_entry_points_by_index expected = next(iter(caught)) StopIteration ---------------------------------------------------------------------- Ran 1402 tests in 2.125s FAILED (errors=1, skipped=18, expected failures=1) (cherry picked from commit df1502e47fc1e0cf1e7d460ae04530c3e2e4a7c6) Co-authored-by: Miro Hrončok <miro@hroncok.cz>
* [3.10] Reorganize the pattern matching suite (GH-26661) (GH-26787)Miss Islington (bot)2021-06-181-548/+497
| | | | | | | | (cherry picked from commit c106cf31f816f719de0a83ff31b9f4d0bea3519b) Co-authored-by: Brandt Bucher <brandt@python.org> Automerge-Triggered-By: GH:brandtbucher
* bpo-44310: Add a FAQ entry for caching method calls (GH-26731) (GH-26777)Miss Islington (bot)2021-06-171-0/+97
|
* bpo-43024: improve signature (in help, etc) for functions taking sent… ↵Miss Islington (bot)2021-06-173-1/+21
| | | | | | | | (GH-24331) (GH-26773) …inel defaults (cherry picked from commit f73377d57c5272390de63cccc3c292c44689310a) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* Post 3.10.0b3Pablo Galindo2021-06-171-1/+1
|
* Python 3.10.0b3v3.10.0b3Pablo Galindo2021-06-1737-81/+346
|
* bpo-43908: Make heap types converted during 3.10 alpha immutable (GH-26351) ↵Miss Islington (bot)2021-06-1722-38/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (GH-26766) * Make functools types immutable * Multibyte codec types are now immutable * pyexpat.xmlparser is now immutable * array.arrayiterator is now immutable * _thread types are now immutable * _csv types are now immutable * _queue.SimpleQueue is now immutable * mmap.mmap is now immutable * unicodedata.UCD is now immutable * sqlite3 types are now immutable * _lsprof.Profiler is now immutable * _overlapped.Overlapped is now immutable * _operator types are now immutable * winapi__overlapped.Overlapped is now immutable * _lzma types are now immutable * _bz2 types are now immutable * _dbm.dbm and _gdbm.gdbm are now immutable (cherry picked from commit 00710e6346fd2394aa020b2dfae170093effac98) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-44389: Fix typo in ssl deprecation warning message (GH-26754)Miss Islington (bot)2021-06-172-2/+2
| | | | | | `ssl.SSL_NO_TLS` should be `ssl.OP_NO_TLS`. (cherry picked from commit c544393b89f9b3e2b1a22588fc9ae58019314879) Co-authored-by: Joe <nigelchiang@outlook.com>
* bpo-44426: Use of 'complex' as a C variable name confuses Sphinx; change it ↵Miss Islington (bot)2021-06-161-2/+2
| | | | | | to 'num'. (GH-26744) (GH-26760) (cherry picked from commit 7247f6f433846c6e37308a550e8e5eb6be379856)
* bpo-44392: Add Py_GenericAlias to C API docs (GH-26724)Miss Islington (bot)2021-06-166-3/+53
| | | | | | Also fix stable ABI type definitions (cherry picked from commit 6773c3eaa735b5061b4a97f2c730703a32d8c9ff) Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
* bpo-43795: Don't list private names in the limited API (GH-26740)Miss Islington (bot)2021-06-164-5/+17
| | | | | | | | | | | | | | | | * Remove struct _node from the stable ABI list This struct was removed along with the old parser in Python 3.9 (PEP 617) * Stable ABI list: Use the public name "PyFrameObject" rather than "_frame" * Ensure limited API doesn't contain private names Names prefixed by an underscore are private by definition. * Add a blurb (cherry picked from commit 7cad9cb51bdae2144cbab330f13a607ba3471742) Co-authored-by: Petr Viktorin <encukou@gmail.com>
* [3.10] bpo-44342: [Enum] improve test, add andrei kulakov to ACKS (GH-26726)Ethan Furman2021-06-164-4/+28
| | | | | | * [3.10] [Enum] improve test, add andrei kulakov to ACKS (GH-26726). (cherry picked from commit cb2014f2077c92c35486bf0db7e646a68478a7a5) Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* bpo-44342: [Enum] fix data type search (GH-26667)Miss Islington (bot)2021-06-152-1/+9
| | | | | | | | | | | | In an inheritance chain of int -> my_int -> final_int the data type is now final_int (not my_int) (cherry picked from commit 3a7cccfd6cd3693e1a2ab65ee05d7f45f8501dfa) Co-authored-by: Ethan Furman <ethan@stoneleaf.us> Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* [3.10] bpo-43475: Add what's new entry for NaN hash changes (GH-26725) ↵Mark Dickinson2021-06-151-0/+7
| | | | | | | (GH-26743) (cherry picked from commit 1d10bf0bb9409a406c56b0de8870df998637fd0f) Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
* Fix a typo in _make_class_unpicklable() docstring (GH-26729)Miss Islington (bot)2021-06-151-1/+1
| | | | | (cherry picked from commit 689a84475e7b1da79d5ae82df67ab8897316f98c) Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
* bpo-44422: Fix threading.enumerate() reentrant call (GH-26727)Miss Islington (bot)2021-06-152-3/+9
| | | | | | | The threading.enumerate() function now uses a reentrant lock to prevent a hang on reentrant call. (cherry picked from commit 243fd01047ddce1a7eb0f99a49732d123e942c63) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-42972: _thread.RLock implements the GH protocol (GH-26734)Miss Islington (bot)2021-06-152-1/+12
| | | | | | | The _thread.RLock type now fully implement the GC protocol: add a traverse function and the Py_TPFLAGS_HAVE_GC flag. (cherry picked from commit 1cd3d859a49b047dd08abb6f44f0539564d3525a) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-44351: Restore back parse_makefile in distutils.sysconfig (GH-26637) ↵Miss Islington (bot)2021-06-152-4/+109
| | | | | | | | | (GH-26673) The function uses distutils.text_file.TextFile and therefore behaves differently than _parse_makefile in sysconfig. (cherry picked from commit fc98266ff627ba0f56f8ae241245b66bc983baa3) Co-authored-by: Lumír 'Frenzy' Balhar <lbalhar@redhat.com>
* bpo-44409: Fix error location in tokenizer errors that happen during ↵Miss Islington (bot)2021-06-143-0/+4
| | | | | | | initialization (GH-26712) (cherry picked from commit 507ed6fa1d6661e0f8e6d3282764aa9625a99594) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-38291: Remove mention of typing.io and typing.re again (GH-26113)Miss Islington (bot)2021-06-142-2/+12
| | | | | | | They were originally removed in GH-10173 per bpo-35089, but then readded in GH-21574. Cf. bpo-38291 for decision to remove. (cherry picked from commit 8a76683cfb842e12b57f6d276839f6c68fd94e1a) Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
* bpo-44310: Note that lru_cache keep references to both arguments and ↵Miss Islington (bot)2021-06-141-6/+9
| | | | results (GH-26715) (GH-26716)
* bpo-43425: Update test_c_parser not to use TempdirManager (GH-26693)Miss Islington (bot)2021-06-141-5/+8
| | | | | (cherry picked from commit 736ed6f7a9f465ba728198e8bca81e5fbe71bc37) Co-authored-by: Dong-hee Na <donghee.na@python.org>
* bpo-43475: Fix the Python implementation of hash of Decimal NaN (GH-26679)Miss Islington (bot)2021-06-134-10/+36
| | | | | (cherry picked from commit 9f1c5f6e8af6ba3f659b2aea1e221ac9695828ba) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.10] bpo-44389: Fix deprecation of OP_NO_TLSv1_3 (GH-26700) (GH-26705)Miss Islington (bot)2021-06-133-9/+58
| | | | | | | | | Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit bf527277d4e4907e32d76ca7ba667ab3149fe258) Co-authored-by: Christian Heimes <christian@python.org> Automerge-Triggered-By: GH:tiran
* bpo-44389: Remove duplicate SSL_OP_NO_TLSv1_2 flag (GH-26680)Miss Islington (bot)2021-06-131-1/+1
| | | | | (cherry picked from commit cb7230c7a7d6d497e54c25e9ba640eec79de10f2) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* [3.10] Fix a potential reference-counting bug in long_pow (GH-26690) (GH-26703)Mark Dickinson2021-06-131-0/+1
| | | | | (cherry picked from commit 59242431991794064824cf2ab70886367613f29e) Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
* bpo-44396: Update multi-line-start location when reallocating tokenizer ↵Miss Islington (bot)2021-06-123-0/+14
| | | | | | buffers (GH-26676) (GH-26695) Automerge-Triggered-By: GH:pablogsal (cherry picked from commit a342cc5891dbd8a08d40e9444f2e2c9e93258721)
* [3.10] Add more const modifiers. (GH-26691). (GH-26692)Serhiy Storchaka2021-06-127-24/+24
| | | | | (cherry picked from commit be8b631b7a587aa781245e14c8cca32970e1be5b) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-40128: Fix IDLE autocomplete on macOS (GH-26672)Miss Islington (bot)2021-06-112-0/+4
| | | | | | | | In particular, when running with tk8.6.8, as in PSF 3.9. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 3ec3ee7d2e9b45b586e486e429b412d6d0ca530f) Co-authored-by: Kaustubh J <kaustubhkj@gmail.com>
* bpo-44381: Windows build now allows enabling control flow guard (GH-26645)Miss Islington (bot)2021-06-112-2/+4
| | | | | (cherry picked from commit 5af56c6f2a0d11df37fed7ecaaf321cf6926ba13) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-43318: Fix a bug where pdb does not always echo cleared breakpoints ↵Miss Islington (bot)2021-06-113-1/+31
| | | | | | | (GH-24646) (GH-26674) (cherry picked from commit 4cb6ba14325cff98589c2660d1d2c65f4aacfee4) Co-authored-by: huzhaojie <hu.zj@foxmail.com>
* bpo-44242: [Enum] improve error messages (GH-26669)Miss Islington (bot)2021-06-112-19/+30
| | | | | | | (cherry picked from commit c956734d7af83ad31f847d31d0d26df087add9a4) Co-authored-by: Ethan Furman <ethan@stoneleaf.us> Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* bpo-44378: Fix a compiler warning in Py_IS_TYPE() (GH-26644)Miss Islington (bot)2021-06-112-1/+6
| | | | | | | Py_IS_TYPE() no longer uses Py_TYPE() to avoid a compiler warning: no longer cast "const PyObject*" to "PyObject*". (cherry picked from commit 304dfec8d3c0763734ea8b5fa2af1d9e1ce69ffa) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-44362: ssl: improve deprecation warnings and docs (GH-26646)Miss Islington (bot)2021-06-116-47/+98
| | | | | | Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit e26014f1c47d26d6097ff7a0f25384bfbde714a9) Co-authored-by: Christian Heimes <christian@python.org>
* bpo-44342: [Enum] changed pickling from by-value to by-name (GH-26658) ↵Miss Islington (bot)2021-06-103-25/+9
| | | | | | | | | | | | | | (GH-26660) by-value lookups could fail on complex enums, necessitating a check for __reduce__ and possibly sabotaging the final enum; by-name lookups should never fail, and sabotaging is no longer necessary for class-based enum creation. (cherry picked from commit 62f1d2b3d7dda99598d053e10b785c463fdcf591) Co-authored-by: Ethan Furman <ethan@stoneleaf.us> Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* bpo-44385: Remove unused grammar rules (GH-26655)Miss Islington (bot)2021-06-102-1267/+791
| | | | | | Automerge-Triggered-By: GH:lysnikolaou (cherry picked from commit e7b4644607789848f9752a3bd20ff216e25b4156) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
* bpo-44356: [Enum] allow multiple data-type mixins if they are all the same ↵Miss Islington (bot)2021-06-103-4/+52
| | | | | | | | | | | | | | | | | | | (GH-26649) (GH-26653) This enables, for example, two base Enums to both inherit from `str`, and then both be mixed into the same final Enum: class Str1Enum(str, Enum): GH- some behavior here class Str2Enum(str, Enum): GH- some more behavior here class FinalStrEnum(Str1Enum, Str2Enum): GH- this now works (cherry picked from commit 8a4f0850d75747af8c96ca0e7eef1f5c1abfba25) Co-authored-by: Ethan Furman <ethan@stoneleaf.us> Co-authored-by: Ethan Furman <ethan@stoneleaf.us>