GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||
GeezerVison is showing github.com — bpo-46006: Fix _PyUnicode_EqualToASCIIId() for interned strings by vstinner · Pull Request #30123 · python/cpython Conversation
|
|
cc @methane @serhiy-storchaka @corona10 We will be able to add again this micro-optimization once Python C extensions and third-party C extensions will no longer define and use static types and will stop sharing objects between two interpreters. Sadly, this long term goal may take a few years... |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
It is meaningless to compare strings from one fully isolated interpreter with those in another. Feel free to add an assert, but please avoid this sort of pessimization for a hypothetical future which may well not happen. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Suggestion: add the reproducer from https://bugs.python.org/issue46034 as a test? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
@markshannon: I'm not sure what you are talking about. https://bugs.python.org/issue46006 is affecting multiple Python 3.10 users right now. It's not an hypothetical bug. At least, jep and mod_wsgi projects are known to be affected by the bug:
The bug may also explain https://bugs.python.org/issue46070 which affects more projects. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
@markshannon: I added long comments as part of the change to explain the issue. Did you see my comments? It's about interned strings of static types which are shared by all interpreters. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I'll comment on the issue. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I agree that a fix is needed. But this is not the needed fix. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I merged GH-20085 instead. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.