New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove unicode_internal codec #80478
Comments
unicode_internal codec is deprecated since Python 3.3. >>> "hello".encode('unicode_internal')
__main__:1: DeprecationWarning: unicode_internal codec has been deprecated
b'h\x00\x00\x00e\x00\x00\x00l\x00\x00\x00l\x00\x00\x00o\x00\x00\x00' May I remove it in 3.8? |
I found:
Files which contain "unicode_internal": Doc/library/codecs.rst
Since using the codec emits a DeprecationWarning at runtime, I think that it's safe to remove it. |
What is the purpose of the unicode-internal codec at first place? |
On 15.03.2019 17:35, Serhiy Storchaka wrote:
It provides a fast and direct access to the internal representation of |
Is it for debugging only? |
On 15.03.2019 17:55, Serhiy Storchaka wrote:
No, you can use it to store Unicode object as-is without any |
Thanks INADA-san. IMHO Python has too many codecs, it's painful to maintain them. So it's nice to see deprecate ones to be removed. Next step: remove all deprecated APIs using Py_UNICODE* :-D (I know that Serhiy is working on that.) |
I tried to remove all legacy API and wchar_t cache in unicodeobject. This is experimental branch. I'm thinking about adding configure option to remove them from 3.8.
|
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: