-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
codecs module doesn't recognize new C++ 23 universal-character-name \u{xxx}. #130475
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
Comments
Where is it written that Python should follow the C++ standard? |
I've already replied on #129392 and decided to close this feature request (#129392 (comment)). I will again reject that feature because no evidence has been shown that it's an important feature. |
Since the same user @mrolle45 submitted the same issue twice, and so far hasn’t engaged in either ticket, can we conclude this is abuse and ban them? The way the issue was written (both times) also made me think they know better. |
Let's warn them first. One could say that the C++23 feature (which I'm not aware of though) is an "evidence" of needs for support. However, I'm not convinced by just supporting an appendix of C++23. Unless better evidence is presented on either of the issues that supporting |
Just to make things clearer, I have posted a new Idea on Discourse and suggest that Python should keep up-to-date with C and c++ standards. Somebody, please check the Discourse and enter this as a new Issue if you see that it has traction. I don't have the attention span to check this myself. |
If you care about the issue, please track it yourself. You can't just drop an idea and disappear -- that's inefficient use of the Python project's scarce resources. |
Bug report
Bug description:
The C++ 23 Standard has a new syntax for universal character names, which
codecs.decode
does not recognize. I ran this on Python 3.13, and the same occurs with earlier Python versions.The result should be
'A'
.For reference, this is quoted from the C++ 23 Standard, Appendix A.3:
Please update
codecs
in Python 3.13, and all earlier Python versions that are still publishing bug fixes.CPython versions tested on:
3.13
Operating systems tested on:
Windows
The text was updated successfully, but these errors were encountered: