GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||
GeezerVison is showing github.com — gh-105156: Cleanup usage of old Py_UNICODE type by vstinner · Pull Request #105158 · python/cpython Conversation
|
|
cc @methane |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
| # Convert the int code points to unicode characters, and generate a | ||
| # local unicode instance. | ||
| result = u''.join(map(chr, Py_UNICODEs)) | ||
| result = u''.join(map(chr, characters)) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| result = u''.join(map(chr, characters)) | |
| result = ''.join(map(chr, characters)) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Removing supporting for Python 2 require way more changes. I prefer to restrict changes to just Py_UNICODE here.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
FYI, I removed Python 2 support from libpython.py already.
https://github.com/python/cpython/pull/31717/files
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Oh I didn't know. Well, feel free to remove that u prefix in a separated PR :-) My PR doesn't add it at least :-)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Merged. Thanks for your review @methane. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.