[issue36297] Remove unicode_internal codec

2019-03-18 Thread Inada Naoki
Inada Naoki added the comment: I tried to remove all legacy API and wchar_t cache in unicodeobject. This is experimental branch. https://github.com/methane/cpython/pull/18/files I'm thinking about adding configure option to remove them from 3.8. * It may help people to find third party ext

[issue36297] Remove unicode_internal codec

2019-03-18 Thread STINNER Victor
STINNER Victor added the comment: 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.) --

[issue36297] Remove unicode_internal codec

2019-03-17 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue36297] Remove unicode_internal codec

2019-03-17 Thread Inada Naoki
Inada Naoki added the comment: New changeset 6a16b18224fa98f6d192aa5014affeccc0376eb3 by Inada Naoki in branch 'master': bpo-36297: remove "unicode_internal" codec (GH-12342) https://github.com/python/cpython/commit/6a16b18224fa98f6d192aa5014affeccc0376eb3 -- __

[issue36297] Remove unicode_internal codec

2019-03-15 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 15.03.2019 17:55, Serhiy Storchaka wrote: > Is it for debugging only? No, you can use it to store Unicode object as-is without any encoding/decoding, but after the recent changes to the internals of the Unicode implementation it's not all that useful an

[issue36297] Remove unicode_internal codec

2019-03-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is it for debugging only? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue36297] Remove unicode_internal codec

2019-03-15 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 15.03.2019 17:35, Serhiy Storchaka wrote: > > What is the purpose of the unicode-internal codec at first place? It provides a fast and direct access to the internal representation of Unicode used in Python to the outside world. -- nosy: +lembu

[issue36297] Remove unicode_internal codec

2019-03-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is the purpose of the unicode-internal codec at first place? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue36297] Remove unicode_internal codec

2019-03-15 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +12309 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-lis

[issue36297] Remove unicode_internal codec

2019-03-15 Thread STINNER Victor
STINNER Victor added the comment: I found: * _PyUnicode_DecodeUnicodeInternal() * _codecs.unicode_internal_decode() * _codecs.unicode_internal_encode() * Lib/encodings/unicode_internal.py Files which contain "unicode_internal": Doc/library/codecs.rst Doc/whatsnew/3.3.rst Lib/encodings/unicod

[issue36297] Remove unicode_internal codec

2019-03-14 Thread Inada Naoki
New submission from Inada Naoki : unicode_internal codec is deprecated since Python 3.3. It raises DeprecationWarning from 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\x0