FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GH-111339: Move optimizer types to `object.c` by savannahostrowski · Pull Request #111430 · python/cpython · GitHub

/ cpython Public

GH-111339: Move optimizer types to object.c - #111430

Merged
brandtbucher merged 5 commits into
python:mainfrom
savannahostrowski:fix-111339
Oct 29, 2023
Merged

GH-111339: Move optimizer types to object.c#111430
brandtbucher merged 5 commits into
python:mainfrom
savannahostrowski:fix-111339

Conversation

savannahostrowski commented Oct 28, 2023
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

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.

savannahostrowski changed the title GH-111339: Add optimizer types to object.c GH-111339: Move optimizer types to object.c Oct 28, 2023
savannahostrowski changed the title GH-111339: Move optimizer types to object.c GH-111339: Move optimizer types to object.c Oct 28, 2023
brandtbucher self-assigned this Oct 28, 2023

brandtbucher left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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

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

Comment thread Objects/object.c Outdated
Comment thread Include/internal/pycore_optimizer.h Outdated
brandtbucher added type-bug An unexpected behavior, bug, or error skip news interpreter-core (Objects, Python, Grammar, and Parser dirs) labels Oct 28, 2023

Copy link
Copy Markdown
Member

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

Savannah Ostrowski and 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>
brandtbucher merged commit 4a929d4 into python:main Oct 29, 2023
savannahostrowski 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

interpreter-core (Objects, Python, Grammar, and Parser dirs) skip news type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL