Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 33.9k
[3.10] bpo-44490: Add __parameters__ and __getitem__ to types.Union (GH-26980)#27207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[3.10] bpo-44490: Add __parameters__ and __getitem__ to types.Union (GH-26980) #27207
Uh oh!
There was an error while loading. Please reload this page.
Conversation
serhiy-storchaka commented Jul 17, 2021 • edited by bedevere-bot
Loading Uh oh!
There was an error while loading. Please reload this page.
edited by bedevere-bot
Uh oh!
There was an error while loading. Please reload this page.
…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>
Fidget-Spinner commented Jul 17, 2021 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
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. |
serhiy-storchaka commented Jul 17, 2021
It includes changes made after merging the original PR. There are two bugs left, but I am going to fix them soon. |
Fidget-Spinner commented Jul 17, 2021
LGTM but I don't understand why Also let's wait for Pablo :). |
pablogsal commented Jul 17, 2021 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
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! |
Fidget-Spinner commented Jul 17, 2021 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
@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 :(. |
pablogsal commented Jul 17, 2021
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 |
Fidget-Spinner commented Jul 17, 2021 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
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 :). |
pablogsal commented Jul 17, 2021
No problem, I understood your intent ;) |
gvanrossum commented Jul 17, 2021
Actually the first beta is the cut-off for new features. |
Fidget-Spinner commented Jul 17, 2021
Oops right thanks, I blame timezones for my lapse in memory :P. In any case, the windows x64 tests are unrelated |
pablogsal commented Jul 17, 2021 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
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 |
Uh oh!
There was an error while loading. Please reload this page.
gvanrossum commented Jul 17, 2021
Yeah, the Py_API is for exported names, not for purely internal functions. |
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