| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
| 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.
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 a problem hiding this comment.
I don't know.
Sorry, something went wrong.
|
@methane, should this be merged after fixing the merge conflicts? Thanks! |
Sorry, something went wrong.
Up to @serhiy-storchaka. He wanted this API to write some tests. |
Sorry, something went wrong.
…92.9kIlMF.rst Co-authored-by: Inada Naoki <songofacandy@gmail.com>
There was a problem hiding this comment.
This has merge conflicts now.
Sorry, something went wrong.
|
When you're done making the requested changes, leave the comment: I have made the requested changes; please review again. |
Sorry, something went wrong.
|
I have made the requested changes; please review again. |
Sorry, something went wrong.
Merge conflicts are resolved.
| Back | FazBrowse Home | New Git URL |
https://bugs.python.org/issue34392
#78573