Title: GitHub · Where software is built
Open Graph Title: python/cpython
X Title: python/cpython
Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.
Open Graph Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.
X Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.
Opengraph URL: https://github.com/python/cpython
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Global String Objects are Interned Only in the First Interpreter","articleBody":"When a string object is interned via `_PyUnicode_InternInPlace()`, its \"state.interned\" field is set. Afterward, subsequent calls to `_PyUnicode_InternInPlace()` will skip that string. The problem is that some strings may be used in multiple interpreters, which each have their own interned dict. The string is shared between the interpreters, along with its \"state.interned\" field. That means the string will only be interned in the first interpreter where `_PyUnicode_InternInPlace()` is called (ignoring races in the function, e.g. gh-106930).\r\n\r\nWe need to fix it so one of the following is true:\r\n\r\n* there should be one global interned \"dict\" shared by all interpreters (we tried this already and it is very tricky)\r\n* strings are always interned in every interpreter, regardless of the \"state.interned\" value\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-107272\n* gh-107358\n* gh-107362\n* gh-110713\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/ericsnowcurrently","@type":"Person","name":"ericsnowcurrently"},"datePublished":"2023-07-20T21:30:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/106931/cpython/issues/106931"}
| route-pattern | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:fb8ae82f-e0ad-8ff0-baa1-688d149ec0c3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CB32:309720:1AF5325:2516567:696AB768 |
| html-safe-nonce | 9eaf596183b1f7ab62ecbcd1a19c5a4fa5223109aac51904e24aec1e79dcc3e4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjMyOjMwOTcyMDoxQUY1MzI1OjI1MTY1Njc6Njk2QUI3NjgiLCJ2aXNpdG9yX2lkIjoiNDI0NDY0OTU5NTUyNzQxMTU2MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | abef7accf8e8490519b3571853d0b048b184b0357eb7ad37415a38515d603f77 |
| hovercard-subject-tag | repository:81598961 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/issues/106931 |
| twitter:image | https://opengraph.githubassets.com/1526a3a080c0a24d9eb5016758682fe986f819ad622236fc5b82766b4ad20391/python/cpython |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1526a3a080c0a24d9eb5016758682fe986f819ad622236fc5b82766b4ad20391/python/cpython |
| og:image:alt | The Python programming language. Contribute to python/cpython development by creating an account on GitHub. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4fa1799b6a53c2d30c950d74230781bef9e7f61138c72c7727e4b83f0743752b |
| turbo-cache-control | no-cache |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 41f276818bd204c4a30a0281fb3c576298d9474c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width