Skip to content
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

bpo-37758: Cut always-constant conditionals on sys.maxunicode. #15302

Merged
merged 1 commit into from Sep 9, 2019

Conversation

gnprice
Copy link
Contributor

@gnprice gnprice commented Aug 15, 2019

Since PEP 393 in Python 3.3, this value is always 0x10ffff, the
maximum codepoint in Unicode; there's no longer such a thing as a
UCS-2 build of Python, which couldn't properly represent some
characters.

There are a couple of spots left where we still condition on the value
of this constant. Take them out.

https://bugs.python.org/issue37758

Since PEP 393 in Python 3.3, this value is always 0x10ffff, the
maximum codepoint in Unicode; there's no longer such a thing as a
UCS-2 build of Python, which couldn't properly represent some
characters.

There are a couple of spots left where we still condition on the value
of this constant.  Take them out.
Copy link
Contributor

@asottile asottile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@Yhg1s Yhg1s added the skip news label Sep 9, 2019
@Yhg1s Yhg1s merged commit 3cbc23a into python:master Sep 9, 2019
@gnprice gnprice deleted the pr-maxunicode-const branch September 10, 2019 05:29
websurfer5 pushed a commit to websurfer5/cpython that referenced this pull request Jul 20, 2020
…nGH-15302)

Since PEP 393 in Python 3.3, this value is always 0x10ffff, the
maximum codepoint in Unicode; there's no longer such a thing as a
UCS-2 build of Python, which couldn't properly represent some
characters.

There are a couple of spots left where we still condition on the value
of this constant.  Take them out.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants