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-123853: Cleanup Windows 95 locale fallback support by mokurin000 · Pull Request #144738 · python/cpython Conversation
|
|
cc. @malemburg @serhiy-storchaka Hi! Could you take a look on these changes? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
1e06126 to
2d24222
Compare
There was an error while loading. Please reload this page.
4f317a3 to
aa0735b
Compare
|
Are you sure that _locale._getdefaultlocale() will no longer return a Windows locale code ? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
As far as I know, Looking into git blame, the fallback code was written at 26 years ago 8f017a0, but it never get removed, and surprisingly the dictionary was maintained even after Windows 95 support were entirely removed 0a86694 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
aa0735b to
efd0a30
Compare
|
I think we should still leave a guard in the code, so that such codes do not leak outside the function. The guard should raise an exception and let the user know that something is wrong. Also, please have a look on Github whether the windows_locale is in use by Python 3 code. We may have to do a deprecation cycle (though it was already indirectly put through this as part of the now undone deprecation of getdefaultencoding()). |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
With the current mechanism, if any of
Okay, I will do so soon as have time |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Right, undocumented though, there are many code relying on the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
1ec8e64 to
54e8f97
Compare
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Now I believe it does no impact to python users, removed the NEWS entry |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
54e8f97 to
5b3e6bc
Compare
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
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.
Should not _locale._getdefaultlocale() raise an exception if the locale is not found (this should never happen on modern Windows)?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
I have made the requested changes; please review again |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks for making the requested changes! @malemburg: please review the changes made to this pull request. |
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.
LGTM. 👍
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| } | ||
|
|
||
| /* cannot determine the language code (very unlikely) */ | ||
| Py_INCREF(Py_None); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
AFAIR, Py_BuildValue("O") takes care of the INCREF for you, so this should not be needed.
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.
See #145250.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I have made the requested changes; please review again |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks for making the requested changes! @malemburg, @serhiy-storchaka: please review the changes made to this pull request. |
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.
LGTM, thanks, @mokurin000
Sorry, something went wrong.
There was an error while loading. Please reload this page.
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.