Skip to content

Conversation

@albertedwardson
Copy link
Contributor

@albertedwardson albertedwardson commented Oct 27, 2025

@albertedwardson
Copy link
Contributor Author

albertedwardson commented Oct 27, 2025

ThreeTwo questions I don't have answers for yet:

- Are increfs and decrefs for interned_dict needed?

  • Why is the utf-8 string still not interned?
Python 3.15.0a0 (heads/main-dirty:5c942f11cd, Oct 27 2025, 23:16:01) [GCC 13.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
Ctrl click to launch VS Code Native REPL
>>> import sys
>>> is_interned = lambda s: s is sys.intern(('_' + s + '_')[1:-1])
>>> is_interned('utf-8')
False
>>> is_interned('str')
True
  • And the most important one: am I doing this correctly?

Will try to figure it out by myself but also will be very glad if someone could guide me or even point to the answers.

@albertedwardson
Copy link
Contributor Author

Why is the utf-8 string still not interned?

I think because it is not present in interned_dict in the first place

@albertedwardson
Copy link
Contributor Author

will investigate why ft build fails

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.

1 participant