[3.10] bpo-44490: Add __parameters__ and __getitem__ to types.Union (GH-26980)#27207
Conversation
…ythonGH-26980) Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>. (cherry picked from commit c45fa1a) Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
|
Since you are backporting this, can I assume it means you approve of the original? One of the conditions by Pablo is that 2 core devs need to approve it for backport, and we already have Guido's approval. |
Sorry, something went wrong.
|
It includes changes made after merging the original PR. There are two bugs left, but I am going to fix them soon. |
Sorry, something went wrong.
|
LGTM but I don't understand why Also let's wait for Pablo :). |
Sorry, something went wrong.
I am a bit uncomfortable backporting 100 lines of C for a new feature bit I will allow it based on:
But please, understand that we cannot backport new features in general, specially so close to the release candidate, so don't take this as the norm :) @serhiy-storchaka I saw that you are preparing several bugfixes and cleanups for this type. Please, merge these ASAP as we are very close the the release candidate and I want them to be tested as much as possible. Thanks! |
Sorry, something went wrong.
@pablogsal I understand that the last beta is generally the cut-off for new features, and that this is a rare exception by you. Thanks for allowing it! I'll try my best to ensure typing-related stuff doesn't cause you any more release headaches (especially on a weekend) for the 3.10/3.11 cycle. One unfortunate cause for things like these is that it seems that not many people actually test the betas until the last one, or when the release candidates arrive. So bugs/missing features get caught very late :(. |
Sorry, something went wrong.
They actually test it, but not so much for new features. The 90% of the tests they do is based on compatibility with existing code, and they don't stress test that much the new stuff |
Sorry, something went wrong.
Hmm I realised my original wording sounds kinda unfair on large packages that do test the betas. Yeah I meant just for the new features. (Sorry, no harm intended). I'm well aware third party packages like Django have been testing the betas since day 1 :). |
Sorry, something went wrong.
No problem, I understood your intent ;) |
Sorry, something went wrong.
Actually the first beta is the cut-off for new features. |
Sorry, something went wrong.
Oops right thanks, I blame timezones for my lapse in memory :P. In any case, the windows x64 tests are unrelated |
Sorry, something went wrong.
If that check if failing it means that this PR is affecting the ABI in any way, it doesn't distinguish the public or private one. Is comparing the old dump go the new one, so I'd claiming that the old one has these functions removed |
Sorry, something went wrong.
|
Yeah, the Py_API is for exported names, not for purely internal functions. |
Sorry, something went wrong.
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Ken Jin 28750310+Fidget-Spinner@users.noreply.github.com
Co-authored-by: Guido van Rossum gvanrossum@gmail.com.
(cherry picked from commit c45fa1a)
Co-authored-by: Yurii Karabas 1998uriyyo@gmail.com
https://bugs.python.org/issue44490