# Latest

**URL:** https://discuss.python.org/latest.md

[Latest](https://discuss.python.org/latest.md) · [Categories](https://discuss.python.org/categories.md) · [Tags](https://discuss.python.org/tags.md)

---

## [\`pip download --platform\` is not matching compatible wheels?](https://discuss.python.org/t/pip-download-platform-is-not-matching-compatible-wheels/105915)

<div class="topic-metadata">

**Author:** [@Andrej730](https://discuss.python.org/u/Andrej730)\
**Replies:** 7\
**Last updated:** [September 30, 2026, 8:53am UTC](https://discuss.python.org/t/pip-download-platform-is-not-matching-compatible-wheels/105915 "2026-09-30T08:53:58Z")

</div>

Hi! I’ve just stumbled an issue trying to download a wheel from PyPI for the specified platform. E.g. pyradiance==1.1.5 has pyradiance-1.1.5-cp311-cp311-manylinux\_2\_28\_x86\_64.whl wheel, which seems to be compatible with…

---

## [Passing a string containing keyword arguments to a function, combining into list comprehension](https://discuss.python.org/t/passing-a-string-containing-keyword-arguments-to-a-function-combining-into-list-comprehension/109266)

<div class="topic-metadata">

**Author:** [@NickC](https://discuss.python.org/u/NickC)\
**Replies:** 19\
**Last updated:** [September 30, 2026, 6:55am UTC](https://discuss.python.org/t/passing-a-string-containing-keyword-arguments-to-a-function-combining-into-list-comprehension/109266 "2026-09-30T06:55:33Z")

</div>

Having encountered the difficulty of passing a string of keyword arguments into a function I have found the solution below by converting the string into a dict. However I am having some difficulty combining the for...in …

---

## [Regex, string with diacritics](https://discuss.python.org/t/regex-string-with-diacritics/41013)

<div class="topic-metadata">

**Author:** [@marian](https://discuss.python.org/u/marian)\
**Replies:** 5\
**Last updated:** [September 30, 2026, 6:55am UTC](https://discuss.python.org/t/regex-string-with-diacritics/41013 "2026-09-30T06:55:17Z")

</div>

I noticed some strange behavior when searching string with diacritics using regex. Fortunately in Python I get the results right, without any extra setting. (So perhaps it’s wrong forum to write here, but still, I’d li…

---

## [Null Literal Unpacking](https://discuss.python.org/t/null-literal-unpacking/109195)

<div class="topic-metadata">

**Author:** [@gesslerpd](https://discuss.python.org/u/gesslerpd)\
**Replies:** 35\
**Last updated:** [September 30, 2026, 6:43am UTC](https://discuss.python.org/t/null-literal-unpacking/109195 "2026-09-30T06:43:43Z")

</div>

Prior discussion thread: PEP 802: Display Syntax for the Empty Set - #166 by gesslerpd This is a request for PEP sponsors and general continuation of this specific topic. Preamble PEP: TBD Title: Null Literal Unpacking…

---

## [Ouch: several instances of the same key in a dictionary. Duplicate keys in a dictionary](https://discuss.python.org/t/ouch-several-instances-of-the-same-key-in-a-dictionary-duplicate-keys-in-a-dictionary/109273)

<div class="topic-metadata">

**Author:** [@Mabooka-Mabooka](https://discuss.python.org/u/Mabooka-Mabooka)\
**Replies:** 10\
**Last updated:** [September 30, 2026, 5:31am UTC](https://discuss.python.org/t/ouch-several-instances-of-the-same-key-in-a-dictionary-duplicate-keys-in-a-dictionary/109273 "2026-09-30T05:31:40Z")

</div>

I ran into some very strange behavior. I have right now a \*.json file (that I am willing to upload / show); that json file is created by a simple single statement json.dump(d, file); the object d stored in this file …

---

## [How to annotate a dict containing classes](https://discuss.python.org/t/how-to-annotate-a-dict-containing-classes/109279)

<div class="topic-metadata">

**Author:** [@NickC](https://discuss.python.org/u/NickC)\
**Replies:** 1\
**Last updated:** [September 29, 2026, 11:38pm UTC](https://discuss.python.org/t/how-to-annotate-a-dict-containing-classes/109279 "2026-09-29T23:38:01Z")

</div>

How do I correctly annotate a dict containing a list of str and a class: local\_dict: dict\[(str, Any)\] = {"oRequest": Process.oRequest, "oResponse": self} Both oRequest and self are classes instances of their respective…

---

## [PEP 849: More Expressive Type Expressions](https://discuss.python.org/t/pep-849-more-expressive-type-expressions/109189)

<div class="topic-metadata">

**Author:** [@ImogenBits](https://discuss.python.org/u/ImogenBits)\
**Replies:** 9\
**Last updated:** [September 29, 2026, 11:20pm UTC](https://discuss.python.org/t/pep-849-more-expressive-type-expressions/109189 "2026-09-29T23:20:05Z")

</div>

I’m excited to present PEP 849, which adds some new background capabilities to the way type annotations are processed in order to let us use arbitrary expressions while maintaining runtime introspection. Currently, you …

---

## [Should Python JSON decoders silently convert oversized integers to float?](https://discuss.python.org/t/should-python-json-decoders-silently-convert-oversized-integers-to-float/109278)

<div class="topic-metadata">

**Author:** [@Nineteendo](https://discuss.python.org/u/Nineteendo)\
**Replies:** 4\
**Last updated:** [September 29, 2026, 8:29pm UTC](https://discuss.python.org/t/should-python-json-decoders-silently-convert-oversized-integers-to-float/109278 "2026-09-29T20:29:56Z")

</div>

I came across a behavior in orjson that I’m curious about. \>\>\> n = 2\*\*64 + 1 \>\>\> s = json.dumps(n) \>\>\> json.loads(s) 18446744073709551617 \>\>\> orjson.loads(s) 1.8446744073709552e+19 So orjson.loads() turns a JSON intege…

---

## [Add \`getprotobynumber\` to the \`socket\` module](https://discuss.python.org/t/add-getprotobynumber-to-the-socket-module/108465)

<div class="topic-metadata">

**Author:** [@herbanonymous](https://discuss.python.org/u/herbanonymous)\
**Replies:** 8\
**Last updated:** [September 29, 2026, 7:41pm UTC](https://discuss.python.org/t/add-getprotobynumber-to-the-socket-module/108465 "2026-09-29T19:41:44Z")

</div>

getprotobyname already exists there. This should be trivial to implement. getservbyport also exists. If we do it for /etc/services, then why not /etc/protocols? It doesn’t make sense to make a multiplication table: ge…

---

## [Iteration While Nested Loop](https://discuss.python.org/t/iteration-while-nested-loop/109277)

<div class="topic-metadata">

**Author:** [@AmericanFailure](https://discuss.python.org/u/AmericanFailure)\
**Replies:** 0\
**Last updated:** [September 29, 2026, 6:40pm UTC](https://discuss.python.org/t/iteration-while-nested-loop/109277 "2026-09-29T18:40:34Z")

</div>

Can someone help me figure out this nested while loop This is what I was given to do: And this is what I have so far:

---

## [Remove \_\_author\_\_, \_\_credits\_\_ and \_\_copyright\_\_ from stdlib modules](https://discuss.python.org/t/remove-author-credits-and-copyright-from-stdlib-modules/109199)

<div class="topic-metadata">

**Author:** [@Stanfromireland](https://discuss.python.org/u/Stanfromireland)\
**Replies:** 8\
**Last updated:** [September 29, 2026, 5:49pm UTC](https://discuss.python.org/t/remove-author-credits-and-copyright-from-stdlib-modules/109199 "2026-09-29T17:49:44Z")

</div>

Around twenty stdlib modules, including json, io, inspect, and tarfile, still set \_\_author\_\_, \_\_credits\_\_ or \_\_copyright\_\_ attributes, mostly left over from when the modules were first added. $ git grep -E "\_\_(author|cr…

---

## [Protocol as a soft keyword, making structural typing a first-class citizen](https://discuss.python.org/t/protocol-as-a-soft-keyword-making-structural-typing-a-first-class-citizen/109139)

<div class="topic-metadata">

**Author:** [@mfish33](https://discuss.python.org/u/mfish33)\
**Replies:** 15\
**Last updated:** [September 29, 2026, 5:42pm UTC](https://discuss.python.org/t/protocol-as-a-soft-keyword-making-structural-typing-a-first-class-citizen/109139 "2026-09-29T17:42:03Z")

</div>

Hi everyone, Building on Guido’s comments at the recent PyCon US Typing Summit regarding the evolution of type hints, I’d like to propose elevating structural typing to a first-class language feature by introducing prot…

---

## [Documentation community meeting: 19:00 UTC, Tuesday 6th October, 2026](https://discuss.python.org/t/documentation-community-meeting-19-00-utc-tuesday-6th-october-2026/109272)

<div class="topic-metadata">

**Author:** [@hugovk](https://discuss.python.org/u/hugovk)\
**Replies:** 0\
**Last updated:** [September 29, 2026, 2:45pm UTC](https://discuss.python.org/t/documentation-community-meeting-19-00-utc-tuesday-6th-october-2026/109272 "2026-09-29T14:45:12Z")

</div>

The next docs meeting will be held on Tuesday 6th October, 2026, at 19:00 UTC on Discord. The agenda will be on HackMD. If you have any topics to discuss, please add them there so we can allocate time better. But import…

---

## [PEP 823: None-aware access operators](https://discuss.python.org/t/pep-823-none-aware-access-operators/109159)

<div class="topic-metadata">

**Author:** [@cdce8p](https://discuss.python.org/u/cdce8p)\
**Replies:** 37\
**Last updated:** [September 29, 2026, 1:59pm UTC](https://discuss.python.org/t/pep-823-none-aware-access-operators/109159 "2026-09-29T13:59:44Z")

</div>

Building on the ideas from PEP 505 and after many discussions over the years, I’m happy to present PEP 823: None-aware access operators. Please be sure to also check out the discussion for the companion PEP 824. Abstrac…

---

## [Lisp Machine style Listener for Python](https://discuss.python.org/t/lisp-machine-style-listener-for-python/109265)

<div class="topic-metadata">

**Author:** [@dharmatech](https://discuss.python.org/u/dharmatech)\
**Replies:** 2\
**Last updated:** [September 29, 2026, 11:34am UTC](https://discuss.python.org/t/lisp-machine-style-listener-for-python/109265 "2026-09-29T11:34:32Z")

</div>

Hey y’all :man\_raising\_hand: The Symbolics Lisp Machine had something called the Listener. It was sort of a combination of command shell and Lisp read eval print loop. But it also featured a “presentation based user i…

---

## [PEP 824: None-coalescing operators](https://discuss.python.org/t/pep-824-none-coalescing-operators/109161)

<div class="topic-metadata">

**Author:** [@cdce8p](https://discuss.python.org/u/cdce8p)\
**Replies:** 21\
**Last updated:** [September 29, 2026, 6:14am UTC](https://discuss.python.org/t/pep-824-none-coalescing-operators/109161 "2026-09-29T06:14:21Z")

</div>

Building on the ideas from PEP 505 and after many discussions over the years, I’m happy to present PEP 824: None-coalescing operators. Please be sure to also check out the discussion for the companion PEP 823. Abstract T…

---

## [Py314t uses 2× memory](https://discuss.python.org/t/py314t-uses-2x-memory/108941)

<div class="topic-metadata">

**Author:** [@weixlu](https://discuss.python.org/u/weixlu)\
**Replies:** 20\
**Last updated:** [September 29, 2026, 3:46am UTC](https://discuss.python.org/t/py314t-uses-2x-memory/108941 "2026-09-29T03:46:19Z")

</div>

I’m migrating BEVFormer (an auto-driving model training framework) from Py3.14 to 3.14t. Functionally it runs, but memory usage (RAM, not GPU memory) on 3.14t is about twice that of 3.14. I’ve run many training epochs an…

---

## [Syntactic sugar for union cases in match statements](https://discuss.python.org/t/syntactic-sugar-for-union-cases-in-match-statements/49274)

<div class="topic-metadata">

**Author:** [@tmk](https://discuss.python.org/u/tmk)\
**Replies:** 36\
**Last updated:** [September 28, 2026, 8:59pm UTC](https://discuss.python.org/t/syntactic-sugar-for-union-cases-in-match-statements/49274 "2026-09-28T20:59:53Z")

</div>

Given these definitions: from typing import NamedTuple, TypeAlias class A(NamedTuple): x: int y: str class B(NamedTuple): x: int y: str it would be nice if I could write the following: AB: TypeAlias …

---

## [I have issues with Python IDLE 3.xx under windows](https://discuss.python.org/t/i-have-issues-with-python-idle-3-xx-under-windows/108951)

<div class="topic-metadata">

**Author:** [@beta-tester](https://discuss.python.org/u/beta-tester)\
**Replies:** 4\
**Last updated:** [September 28, 2026, 8:56pm UTC](https://discuss.python.org/t/i-have-issues-with-python-idle-3-xx-under-windows/108951 "2026-09-28T20:56:54Z")

</div>

hi, i am new here. i have issues with Python IDLE 3.13.15 under Windows 11. if i have entries under “File|Recent Files \>” in Python IDLE Shell where the underlying file does not exist anymore, and i click that entry, …

---

## [Class-like syntax for union type aliases and natural docstrings](https://discuss.python.org/t/class-like-syntax-for-union-type-aliases-and-natural-docstrings/109103)

<div class="topic-metadata">

**Author:** [@mjmikulski](https://discuss.python.org/u/mjmikulski)\
**Replies:** 13\
**Last updated:** [September 28, 2026, 8:54pm UTC](https://discuss.python.org/t/class-like-syntax-for-union-type-aliases-and-natural-docstrings/109103 "2026-09-28T20:54:24Z")

</div>

In many type aliases, a union is the outermost operation. The recent PEP 846 (docstrings for type aliases) reminded me of an old idea of mine. That PEP proposes to attach a string statement to the preceding type stateme…

---

## [PEP 847: Problem Details for the Simple Repository API](https://discuss.python.org/t/pep-847-problem-details-for-the-simple-repository-api/108996)

<div class="topic-metadata">

**Author:** [@woodruffw](https://discuss.python.org/u/woodruffw)\
**Replies:** 5\
**Last updated:** [September 28, 2026, 5:42pm UTC](https://discuss.python.org/t/pep-847-problem-details-for-the-simple-repository-api/108996 "2026-09-28T17:42:33Z")

</div>

Pre-PEP thread: Pre-PEP Discussion: RFC 9457 Error Responses for Package registries Current PEP text: PEP 847 – Problem Details for the Simple Repository API | peps.python.org Summary of rationale and motivation Right …

---

## [Should non-generic classes with \`\_\_class\_getitem\_\_\` be subscriptable in a type expression?](https://discuss.python.org/t/should-non-generic-classes-with-class-getitem-be-subscriptable-in-a-type-expression/108666)

<div class="topic-metadata">

**Author:** [@carljm](https://discuss.python.org/u/carljm)\
**Replies:** 40\
**Last updated:** [September 28, 2026, 4:20pm UTC](https://discuss.python.org/t/should-non-generic-classes-with-class-getitem-be-subscriptable-in-a-type-expression/108666 "2026-09-28T16:20:21Z")

</div>

The AstroPy library documents a suggested pattern to type-annotate using an expression like Quantity\[u.km\]. Quantity is not a generic class, but it implements \_\_class\_getitem\_\_ to return Annotated\[Quantity, u.km\] – effec…

---

## [\`fnmatch.translate\` and anchoring](https://discuss.python.org/t/fnmatch-translate-and-anchoring/109239)

<div class="topic-metadata">

**Author:** [@pekkaklarck](https://discuss.python.org/u/pekkaklarck)\
**Replies:** 3\
**Last updated:** [September 28, 2026, 1:49pm UTC](https://discuss.python.org/t/fnmatch-translate-and-anchoring/109239 "2026-09-28T13:49:58Z")

</div>

fnmatch.translate can be used for converting glob patterns to regular expressions. It’s especially convenient if you want your tool to support pattern matching, but don’t want to confuse users with regular expressions. A…

---

## [Why doesn't str.strip work as I expect?](https://discuss.python.org/t/why-doesnt-str-strip-work-as-i-expect/109257)

<div class="topic-metadata">

**Author:** [@tjreedy](https://discuss.python.org/u/tjreedy)\
**Replies:** 4\
**Last updated:** [September 28, 2026, 1:43pm UTC](https://discuss.python.org/t/why-doesnt-str-strip-work-as-i-expect/109257 "2026-09-28T13:43:21Z")

</div>

A beginner who should have asked this here, opened a tracker issue thinking that " ##Python## ".lstrip('#') (edited to change ’ #’ to ‘#’) should produce "Python## ". In other words, that lstrip always deletes leading …

---

## [PEP 805: Safe Parallel Python](https://discuss.python.org/t/pep-805-safe-parallel-python/108670)

<div class="topic-metadata">

**Author:** [@markshannon](https://discuss.python.org/u/markshannon)\
**Replies:** 108\
**Last updated:** [September 28, 2026, 12:46pm UTC](https://discuss.python.org/t/pep-805-safe-parallel-python/108670 "2026-09-28T12:46:56Z")

</div>

After a year of on and off development, I am pleased to present PEP 805. Abstract This PEP proposes internal changes to CPython and a new API to support safe, parallel execution of Python. With this PEP, parallel execut…

---

## [Getting frustrated trying to setup my vim settings how I used to have them some years ago!](https://discuss.python.org/t/getting-frustrated-trying-to-setup-my-vim-settings-how-i-used-to-have-them-some-years-ago/109250)

<div class="topic-metadata">

**Author:** [@useronetoothreeeee](https://discuss.python.org/u/useronetoothreeeee)\
**Replies:** 2\
**Last updated:** [September 28, 2026, 8:57am UTC](https://discuss.python.org/t/getting-frustrated-trying-to-setup-my-vim-settings-how-i-used-to-have-them-some-years-ago/109250 "2026-09-28T08:57:43Z")

</div>

Just getting back into it after a few years and trying to set up Vim nicely how I remember it as when I started coding the settings came back to me of how I used to have them but been mucking about for about an hour now …

---

## [Workflow change coming: mandatory reviews on new features](https://discuss.python.org/t/workflow-change-coming-mandatory-reviews-on-new-features/68135)

<div class="topic-metadata">

**Author:** [@ambv](https://discuss.python.org/u/ambv)\
**Replies:** 16\
**Last updated:** [September 28, 2026, 6:43am UTC](https://discuss.python.org/t/workflow-change-coming-mandatory-reviews-on-new-features/68135 "2026-09-28T06:43:23Z")

</div>

The Steering Council asked me to implement a change to our core workflow on python/cpython specifically that will prevent us landing PRs that are new features without a review from another core developer. Implementation …

---

## [Python spell checker](https://discuss.python.org/t/python-spell-checker/109252)

<div class="topic-metadata">

**Author:** [@jason1](https://discuss.python.org/u/jason1)\
**Replies:** 9\
**Last updated:** [September 28, 2026, 4:37am UTC](https://discuss.python.org/t/python-spell-checker/109252 "2026-09-28T04:37:51Z")

</div>

I’m trying to make spell checker program that will compare words from a text file to a dictionary of words that are in alphabetical order. If the words don’t appear in the dictionary they should show up in a list as pote…

---

## [Make \_\_replace\_\_ stop interfering with variance inference](https://discuss.python.org/t/make-replace-stop-interfering-with-variance-inference/96092)

<div class="topic-metadata">

**Author:** [@NeilGirdhar](https://discuss.python.org/u/NeilGirdhar)\
**Replies:** 44\
**Last updated:** [September 27, 2026, 10:07pm UTC](https://discuss.python.org/t/make-replace-stop-interfering-with-variance-inference/96092 "2026-09-27T22:07:08Z")

</div>

Consider: from dataclasses import dataclass from typing import Generic, TypeVar, override if False: # Switch to True is a type error. @dataclass(frozen=True) class C\[T\]: x: T # T is inferred to be in…

---

## [Segfault in CPython 3.14.7](https://discuss.python.org/t/segfault-in-cpython-3-14-7/109256)

<div class="topic-metadata">

**Author:** [@Zatt](https://discuss.python.org/u/Zatt)\
**Replies:** 1\
**Last updated:** [September 27, 2026, 6:40pm UTC](https://discuss.python.org/t/segfault-in-cpython-3-14-7/109256 "2026-09-27T18:40:35Z")

</div>

Is there anyplace specific to send a crash report so that the devs get the details?

[Next page](https://discuss.python.org/latest.md?page=1)
