Uh oh!
There was an error while loading. Please reload this page.
bpo-43224: Implement PEP 646 changes to genericaliasobject.c - #31019
Conversation
JelleZijlstra
left a comment
There was a problem hiding this comment.
Thanks for splitting up the PR, I think this will be easier to review.
I think you should add a separate news entry for each PR, something like "Allow unpacking GenericAlias objects. Part of PEP 646."
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Uh oh!
There was an error while loading. Please reload this page.
mrahtz
commented
Feb 1, 2022
@pablogsal Might be good to have your eyes on this too, to make sure we get GC correct :) |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
mrahtz
commented
Feb 14, 2022
Apologies for the slow reply - it's been a busy couple of weeks! Taking a look at this feedback now. |
mrahtz
commented
Mar 10, 2022
@Fidget-Spinner Done. |
bedevere-bot
commented
Mar 10, 2022
🤖 New build scheduled with the buildbot fleet by @JelleZijlstra for commit 1102d27 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
JelleZijlstra
commented
Mar 10, 2022
Now it's failing tests because of #31801, sorry for that! Once that's merged you'll have to merge main into your branch again. |
JelleZijlstra
commented
Mar 10, 2022
Main is unbroken now, but I'll see if the current refleak builds say anything; maybe they still tell us something useful even if test_asyncio fails. |
mrahtz
commented
Mar 10, 2022
That was fast! I've re-merged. |
bedevere-bot
commented
Mar 10, 2022
🤖 New build scheduled with the buildbot fleet by @JelleZijlstra for commit eda60f9 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
JelleZijlstra
commented
Mar 11, 2022
The refleak buildbots are still unhappy |
JelleZijlstra
commented
Mar 11, 2022
Seems like there's a refleak on main. I'll try to find it. |
Fidget-Spinner
commented
Mar 11, 2022
@mrahtz I just merged the fix for the refleak into main. Can I trouble you to merge main into this PR again please? |
mrahtz
commented
Mar 11, 2022
@Fidget-Spinner Wow, that was also fast :) Done. |
bedevere-bot
commented
Mar 11, 2022
🤖 New build scheduled with the buildbot fleet by @AlexWaygood for commit 5fe058e 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
AlexWaygood
commented
Mar 11, 2022
Looks like the buildbots are finally happy! 🎉 |
Fidget-Spinner
commented
Mar 12, 2022
Congrats @mrahtz ! |
mrahtz
commented
Mar 13, 2022
Fantastic - thanks @Fidget-Spinner! |
These are the parts of the old PR (#30398) relevant to starring tuples. This allows us to do things like
*args: *tuple[int, *Ts](whereTsis aTypeVarTuple).@gvanrossum Pradeep and I were wondering what the best way of representing a starred
tuplewould be, given that we'll also need a representation of a starredtyping.Tuplefor backport purposes. Should we try and make both*tuple[int]and*Tuple[int]refer to the same thing (I guess something we'd add totyping.py), or is it ok to have them refer to different things (as this PR currently assumes, creating a new native type for*tuple)?Until the PR with the grammar changes has been merged (#31018), the tests for this look a little awkward. Happy to wait until that PR has been merged to be 100% sure this is correct.
@Fidget-Spinner Would you be happy to review this?
(Also, could someone add the 'skip news' label? The news item is being added in the grammar PR.)Jelle suggests creating a separate news item for each PR, so I've added an item for this one.https://bugs.python.org/issue43224