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-34392: Add sys. _is_interned() by serhiy-storchaka · Pull Request #8755 · python/cpython Conversation
|
| sys_isinterned_impl(PyObject *module, PyObject *string) | ||
| /*[clinic end generated code: output=0364c3f36499f868 input=2fe09bef8edf732e]*/ | ||
| { | ||
| return PyUnicode_CHECK_INTERNED(string); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Question: Currently sys.internmakes a PyUnicode_CheckExact(s) over the string so interning a subclass of a string gives a TypeError back. This returns False. Does it make sense to do a exact check to mirror the interface of sys.intern?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I don't know.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@methane, should this be merged after fixing the merge conflicts? Thanks! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Up to @serhiy-storchaka. He wanted this API to write some tests. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
…92.9kIlMF.rst Co-authored-by: Inada Naoki <[email protected]>
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This has merge conflicts now.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
When you're done making the requested changes, leave the comment: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I have made the requested changes; please review again. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Merge conflicts are resolved.
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.