summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-95105: Return Iterator from wsgiref.types.InputStream.__iter__ (GH-95106)Miss Islington (bot)2022-07-211-0/+1
| | | | | (cherry picked from commit b4378948a066821ce5147940ce3c1a80bc018b3c) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* [3.11] GH-95060: Fix PyCode_Addr2Location when addrq < 0 (GH-95094)Miss Islington (bot)2022-07-211-0/+2
| | | | | | (cherry picked from commit a6daaf2a132efbb1965b4502ff8a8cf3b5afed0e) Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
* [3.11] GH-91409: Don't overwrite valid locations with NOP locations ↵Brandt Bucher2022-07-201-0/+2
| | | | | (GH-95067) (GH-95068) (cherry picked from commit 742d4614e1a645d765dbf76c19bd9a818239b1cb)
* gh-54781: Move NEWS item to Tests, and improve wording (GH-95063)Miss Islington (bot)2022-07-201-10/+10
| | | | | (cherry picked from commit 8ede67cdcf36d5f6988cb935a6f85a1e14196f78) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
* GH-90699: fix ref counting of static immortal strings (gh-94850)Miss Islington (bot)2022-07-201-0/+1
| | | | | (cherry picked from commit 1834133e66d95a143c9df5f068b3109927aefd65) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* [3.11] Remove blurb boilerplate from news item(#95033) (#95036)Terry Jan Reedy2022-07-201-5/+0
| | | Cherry-picked from 88e4eeba25df999866b23448b95dce2769c2da86
* gh-91256: Ensure help text has the program name even before getpath is ↵Miss Islington (bot)2022-07-191-0/+1
| | | | | | | called (GH-94929) (cherry picked from commit 49aeff49d71fa4bd935212340410311f13879447) Co-authored-by: Steve Dower <steve.dower@python.org>
* GH-91153: Handle mutating __index__ methods in bytearray item assignment ↵Miss Islington (bot)2022-07-191-0/+2
| | | | | | | (GH-94891) (cherry picked from commit f36589510b8708fa224d799d5b328deab558aa4e) Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com>
* gh-94949: Disallow parsing parenthesised ctx mgr with old feature_version ↵Miss Islington (bot)2022-07-181-0/+1
| | | | | | | | | | | | | | (GH-94950) * gh-94949: Disallow parsing parenthesised ctx manager with old feature_version * 📜🤖 Added by blurb_it. * Allow it with feature_version=(3, 9) as well Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> (cherry picked from commit 0daba822212cd5d6c63384a27f390f0945330c2b) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* [3.11] GH-94822: Don't specialize when metaclasses are involved (GH-94892) ↵Brandt Bucher2022-07-181-0/+2
| | | | | | | (GH-94980) (cherry picked from commit daf68ba92f315bfd239a0c993f9f683fb90325fb) Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com>
* gh-94930: skipitem() in getargs.c should return non-NULL on error (GH-94931)Miss Islington (bot)2022-07-181-0/+2
| | | | | (cherry picked from commit 067f0da33506f70c36a67d5f3d8d011c8dae10c9) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* GH-94857: fix test_io refleak (GH-94858)Miss Islington (bot)2022-07-181-0/+1
| | | | | (cherry picked from commit 631160c262b40bf4ce3da6cd7bbb972ae2e9fc91) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* [3.11] gh-94847: Don't force inlining in debug builds of libmpdec (GH-94848) ↵Miss Islington (bot)2022-07-181-0/+2
| | | | | (GH-94951) Co-authored-by: Christian Heimes <christian@python.org>
* gh-94947: Disallow parsing walrus with feature_version < (3, 8) (GH-94948)Miss Islington (bot)2022-07-181-0/+1
| | | | | | | | | | | | * gh-94947: Disallow parsing walrus with feature_version < (3, 8) * oops, commit the parser * 📜🤖 Added by blurb_it. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> (cherry picked from commit ae0be5a53bb4caee3de4888341addd9c94133f2d) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* [3.11] gh-94801: Use custom flags to check for headers and libs (GH-94802) ↵Christian Heimes2022-07-181-0/+2
| | | | | (GH-94881) Co-authored-by: Christian Heimes <christian@python.org>
* gh-94821: Fix autobind of empty unix domain address (GH-94826)Miss Islington (bot)2022-07-171-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When binding a unix socket to an empty address on Linux, the socket is automatically bound to an available address in the abstract namespace. >>> s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) >>> s.bind("") >>> s.getsockname() b'\x0075499' Since python 3.9, the socket is bound to the one address: >>> s.getsockname() b'\x00' And trying to bind multiple sockets will fail with: Traceback (most recent call last): File "/home/nsoffer/src/cpython/Lib/test/test_socket.py", line 5553, in testAutobind s2.bind("") OSError: [Errno 98] Address already in use Added 2 tests: - Auto binding empty address on Linux - Failing to bind an empty address on other platforms Fixes f6b3a07b7df6 (bpo-44493: Add missing terminated NUL in sockaddr_un's length (GH-26866) (cherry picked from commit c22f134211743cd5ad14cec1dd4f527bee542b4c) Co-authored-by: Nir Soffer <nsoffer@redhat.com>
* gh-94864: Fix PyArg_Parse* with deprecated format units "u" and "Z" (GH-94902)Serhiy Storchaka2022-07-171-0/+2
| | | It returned 1 (success) when warnings are turned into exceptions.
* gh-91181: drop support for bytes on sys.path (GH-31934)Miss Islington (bot)2022-07-171-0/+1
| | | | | | | | | Support for bytes broke sometime between Python 3.2 and 3.6 and has been broken ever since. Trying to bring back supports is surprisingly difficult in the face of -b and checking for keys in sys.path_importer_cache. Since the support was broken for so long, trying to overcome the difficulty of bringing back the support has been deemed not worth it. Co-authored-by: Eryk Sun <eryksun@gmail.com> Co-authored-by: Brett Cannon <brett@python.org> (cherry picked from commit 6da988a46c8955755624ad9878288d5214fceb4e) Co-authored-by: Thomas Grainger <tagrain@gmail.com>
* gh-94869: Fix the location in some expressions for multi-line f-string ast ↵Miss Islington (bot)2022-07-161-0/+2
| | | | | | | nodes (GH-94895) (cherry picked from commit 2e9da8e3522764d09f1d6054a2be567e91a30812) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* gh-90844: Allow virtual environments to correctly launch when they have ↵Miss Islington (bot)2022-07-161-0/+2
| | | | | | | spaces in the path (GH-94903) (cherry picked from commit 4b4439daed3992a5c5a83b86596d6e00ac3c1203) Co-authored-by: Steve Dower <steve.dower@python.org>
* gh-94772: Fix off-by-one error in Windows launcher (GH-94779)Miss Islington (bot)2022-07-161-0/+1
| | | | | | | (cherry picked from commit 407ff6556cc999d692b264466ad8d32304a09bce) Co-authored-by: Paul Moore <p.f.moore@gmail.com> Co-authored-by: Paul Moore <p.f.moore@gmail.com>
* gh-94731: Revert to C-style casts for _Py_CAST (GH-94782) (#94849)Miss Islington (bot)2022-07-151-0/+3
| | | | | Co-authored-by: da-woods <dw-git@d-woods.co.uk> (cherry picked from commit 6cbb57f62d345d7a5d6aeb1b3b5d37a845344d5e)
* gh-94841: Ensure arena_map_get() is inlined in PyObject_Free() (GH-94842)Miss Islington (bot)2022-07-141-0/+1
| | | | | (cherry picked from commit 9b3f7792093c533608f70043aa2a7daf7f903a16) Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
* GH-89988: Fix memory leak in pickle.Pickler dispatch_table lookup (GH-94298)Miss Islington (bot)2022-07-141-0/+1
| | | | | (cherry picked from commit 01ef1f95dab9c9930ce1a23634a3e5a8331bf3c7) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* gh-94773: deepfreeze: support frozensets with unsortable types (GH-94775)Miss Islington (bot)2022-07-121-0/+2
| | | | | (cherry picked from commit 0c66074e9f8c9728e1d920910d35da0c62f30403) Co-authored-by: Christian Heimes <christian@python.org>
* Python 3.11.0b4v3.11.0b4Pablo Galindo2022-07-11108-237/+1120
|
* [3.11] bpo-45924: Fix asyncio incorrect traceback when future's exception is ↵Miss Islington (bot)2022-07-111-0/+1
| | | | | raised multiple times (GH-30274) (#94747) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* GH-94736: Fix _multiprocessing.SemLock subclassing (GH-94738)Miss Islington (bot)2022-07-111-0/+1
| | | | | | | | | | | | * fix allocator and deallocator * 📜🤖 Added by blurb_it. * code review Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> (cherry picked from commit f5b76330cfb93e1ad1a77c71dafe719f6a808cec) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* [3.11] gh-93883: elide traceback indicators when possible (GH-93994) (GH-94740)John Belmonte2022-07-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Elide traceback column indicators when the entire line of the frame is implicated. This reduces traceback length and draws more attention to the remaining (very relevant) indicators. Example: ``` Traceback (most recent call last): File "query.py", line 99, in <module> bar() File "query.py", line 66, in bar foo() File "query.py", line 37, in foo magic_arithmetic('foo') File "query.py", line 18, in magic_arithmetic return add_counts(x) / 25 ^^^^^^^^^^^^^ File "query.py", line 24, in add_counts return 25 + query_user(user1) + query_user(user2) ^^^^^^^^^^^^^^^^^ File "query.py", line 32, in query_user return 1 + query_count(db, response['a']['b']['c']['user'], retry=True) ~~~~~~~~~~~~~~~~~~^^^^^ TypeError: 'NoneType' object is not subscriptable ``` Automerge-Triggered-By: GH:pablogsal
* [3.11] GH-94694: Fix column offsets for multi-line method lookups (GH-94721)Brandt Bucher2022-07-101-0/+4
| | | (cherry picked from commit 264b3ddfd561d97204ffb30be6a7d1fb0555e560)
* gh-94637: Release GIL in SSLContext.set_default_verify_paths (GH-94658)Miss Islington (bot)2022-07-091-0/+3
| | | | | (cherry picked from commit 78307c7dc2352b6633138466debd4c10fae32970) Co-authored-by: Christian Heimes <christian@python.org>
* [3.11] GH-93252: Fix error handling for failed Python calls (GH-94693) ↵Kumar Aditya2022-07-091-0/+2
| | | | | (GH-94708) Automerge-Triggered-By: GH:tiran
* gh-94607: Fix subclassing generics (GH-94610)Miss Islington (bot)2022-07-091-0/+2
| | | | | | Co-authored-by: Serhiy Storchaka <3659035+serhiy-storchaka@users.noreply.github.com> (cherry picked from commit 6442a9dd212fa18343db21849cf05c0181662c1f) Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
* [3.11] gh-94215: Fix error handling for line-tracing events (GH-94681) ↵Christian Heimes2022-07-081-0/+3
| | | | | | | | | | (GH-94688) * Re-enable crasher * Fix error handling for line-tracing events * blurb add (cherry picked from commit 23ee4a8067506e6c9c47748185653617413f7a60) Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com>
* gh-94321: Document sqlite3.PrepareProtocol (GH-94620)Miss Islington (bot)2022-07-071-0/+2
| | | | | (cherry picked from commit fb6dccae348b954d9f625031b54711a9a33da525) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
* gh-93910: Fix enum performance regression (GH-94614)Miss Islington (bot)2022-07-071-0/+3
| | | | | | | | | | | | | | | | | This removes the performance regression in 3.11, **at the expense of not fixing the "bug" that allows accessing values from values** (e.g. `Color.RED.BLUE`). Using the benchmark @markshannon [presented](https://github.com/python/cpython/issues/93910GH-issuecomment-1165503032), the results are: | Version | Enum | Fast enum | Normal class | | --- | --- | --- | --- | | 3.10 | 2.04 | 0.59 | 0.56 | | 3.11 | 2.78 | 0.31 | 0.15 | | This PR | 1.30 | 0.32 | 0.16 | I share this mostly as information about the source of the regression, as this may be useful. It may be that the lower-risk approach for the beta is just to revert to a previously-known working state. (cherry picked from commit ed136b96737fdbeff864079d12904cb962c6cce5) Co-authored-by: Michael Droettboom <mdboom@gmail.com>
* [3.11] gh-94430: Allow params named `module` or `self` with custom C names ↵Erlend Egeberg Aasland2022-07-071-0/+2
| | | | | | | in AC (GH-94431) (#94649) (cherry picked from commit 8bbd70b4d130f060f87e3f53810dc747a49fa369) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
* [3.11] gh-92228: disable the compiler's 'small exit block inlining' ↵Christian Heimes2022-07-071-0/+1
| | | | | | | | | | optimization for blocks that have a line number (GH-94592) (GH-94643) Inlining of code that corresponds to source code lines, can make it hard to distinguish later between code which is only reachable from except handlers, and that which is reachable in normal control flow. This caused problems with the debugger's jump feature. This PR turns off the inlining optimisation for code which has line numbers. We still inline things like the implicit "return None".. (cherry picked from commit bde06e1b8381f140b296a397ddd1deb1c784ff8e) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* GH-93896: AAlways set event loop in asyncio.run and IsolatedAsyncioTestCase ↵Miss Islington (bot)2022-07-061-0/+1
| | | | | | | (GH-94593) (cherry picked from commit 14fea6b4d25658bc00adbb97dd40ea3d3e6843ad) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* [3.11] gh-94510: Raise on re-entrant calls to sys.setprofile and ↵Łukasz Langa2022-07-051-0/+2
| | | | | | | | sys.settrace (GH-94511) (GH-94578) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 40d81fd63b46cf998880ce3bf3e5cb42bc3199c1)
* gh-91330: Tests and docs for dataclass descriptor-typed fields (GH-94424) ↵Miss Islington (bot)2022-07-051-0/+7
| | | | | | | | (GH-94576) Co-authored-by: Erik De Bonte <erikd@microsoft.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 5f319308a820f49fec66fc3ade50bbaa9fe2105d)
* gh-94360: Fix a tokenizer crash when reading encoded files with syntax ↵Miss Islington (bot)2022-07-051-0/+2
| | | | | | | | | | | | | | errors from stdin (GH-94386) * gh-94360: Fix a tokenizer crash when reading encoded files with syntax errors from stdin Signed-off-by: Pablo Galindo <pablogsal@gmail.com> * nitty nit Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 36fcde61ba48c4e918830691ecf4092e4e3b9b99) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* gh-90355: Add isolated flag if currently isolated (GH-92857) (GH-94568)Miss Islington (bot)2022-07-051-0/+1
| | | | | | | Co-authored-by: Carter Dodd <carter.dodd@gmail.com> Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit c8556bcf6c0b05ac46bd74880626a2853e7c99a1)
* [3.11] bpo-46755: Don't log stack info twice in QueueHandler (GH-31355) ↵Miss Islington (bot)2022-07-051-0/+2
| | | | | (GH-94564) Co-authored-by: Erik Montnemery <erik@montnemery.com>
* [3.11] gh-94485: Set line number of module's RESUME instruction to 0 as ↵Łukasz Langa2022-07-051-0/+2
| | | | | | | | | specified by PEP 626 (GH-94552) (GH-94562) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Co-authored-by: Mark Shannon <mark@hotpy.org> (cherry picked from commit 324d01944d16868b07df9e8eef6987766a31a36d)
* gh-84753: Clarify change made to `inspect` functions (GH-94554) (GH-94560)Miss Islington (bot)2022-07-051-2/+6
| | | | | (cherry picked from commit a2a3f2c541290fc8f0720d1abdc12d564b856c28) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-94538: Fix Argument Clinic output to custom file (GH-94539) (GH-94555)Miss Islington (bot)2022-07-051-0/+2
| | | | | (cherry picked from commit 2b8ed4d3d4741811da31fc774a202d535755c0a9) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
* Docs: remove redundant "adverb-adjective" hyphens from compound modifiers ↵Miss Islington (bot)2022-07-057-7/+7
| | | | | | | | (GH-94551) (GH-94557) Discussion: https://discuss.python.org/t/slight-grammar-fix-throughout-adverbs-dont-need-hyphen/17021 (cherry picked from commit 3440d197a55800ecceea3e115e44b4262411359c) Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
* gh-93626: Set the release for `__future__.annotations` to `None` (GH-93628) ↵Miss Islington (bot)2022-07-051-0/+1
| | | | | | | | (GH-94553) Co-authored-by: Guido van Rossum <gvanrossum@gmail.com> (cherry picked from commit 4791a8a8357e67431cb686d9559aa419074b8e33) Co-authored-by: KotlinIsland <65446343+KotlinIsland@users.noreply.github.com>
* [3.11] GH-94262: Don't create frame objects for frames that aren't yet ↵Miss Islington (bot)2022-07-041-0/+3
| | | | | complete. (GH-94371) (#94482) Co-authored-by: Mark Shannon <mark@hotpy.org>