Skip to content

Conversation

@savannahostrowski
Copy link
Member

@savannahostrowskisavannahostrowski commented Oct 28, 2023

This PR moves types defined in optimizer.c to static_types in object.c per @brandtbucher's hunch. I tried to abide by the naming conventions of the other types in static_types by updating names to be prefixed by _Py. Please let me know if this is incorrect.

I've tested this and I can no longer reproduce the assertion error.

@savannahostrowskisavannahostrowski changed the title GH-111339: Add optimizer types to object.cGH-111339: Move optimizer types to object.cOct 28, 2023
@savannahostrowskisavannahostrowski changed the title GH-111339: Move optimizer types to object.cGH-111339: Move optimizer types to object.cOct 28, 2023
@brandtbucherbrandtbucher self-assigned this Oct 28, 2023
Copy link
Member

@brandtbucherbrandtbucher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is solid, thanks. And great instinct with the renaming!

There's nothing wrong with this, just a few observations:

@brandtbucherbrandtbucher added type-bug An unexpected behavior, bug, or error skip news interpreter-core (Objects, Python, Grammar, and Parser dirs) labels Oct 28, 2023
@brandtbucher
Copy link
Member

(I think these types may need to be added to an ignore-list somewhere? I think the failing check has more info.)

Savannah Ostrowskiand others added 3 commits October 28, 2023 19:58
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
@brandtbucherbrandtbucher merged commit 4a929d4 into python:mainOct 29, 2023
@savannahostrowskisavannahostrowski deleted the fix-111339 branch October 30, 2023 16:11
FullteaR pushed a commit to FullteaR/cpython that referenced this pull request Nov 3, 2023
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

interpreter-core(Objects, Python, Grammar, and Parser dirs)skip newstype-bugAn unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@savannahostrowski@brandtbucher