Skip to content

Conversation

@Fidget-Spinner
Copy link
Member

@Fidget-Spinner Fidget-Spinner commented Dec 5, 2025

The problem is that we did not watch attribute promotion to constants.

I believe the code was added by @brandtbucher ? So pinging Brandt for a review.

Fidget-Spinner and others added 3 commits December 5, 2025 21:57
…e-142276.H4j8hP.rst

Co-authored-by: Savannah Ostrowski <savannah@python.org>
@Fidget-Spinner
Copy link
Member Author

@YuanchengJiang do I have your permission to use your reproducer for the test case please?

@YuanchengJiang
Copy link

@Fidget-Spinner Thanks for addressing the issue. Feel free to use my reproducers ;)

Copy link
Member

@markshannon markshannon left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this.

Could we simplify test, by changing the attribute between calls to the optimized function, and avoid needing threads? LGTM, either way.

@Fidget-Spinner Fidget-Spinner merged commit 97f0a1f into python:main Dec 8, 2025
68 checks passed
@Fidget-Spinner Fidget-Spinner deleted the watch_attribute_loads branch December 8, 2025 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants