Skip to content

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

Merged
Yhg1s merged 1 commit into
python:masterfrom
gnprice:pr-maxunicode-const
Sep 9, 2019
Merged

bpo-37758: Cut always-constant conditionals on sys.maxunicode.#15302
Yhg1s merged 1 commit into
python:masterfrom
gnprice:pr-maxunicode-const

Conversation

@gnprice

@gnprice gnprice commented Aug 15, 2019

Copy link
Copy Markdown
Contributor

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.

@asottile asottile left a comment

Copy link
Copy Markdown
Contributor

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.

5 participants