Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 33.9k
gh-136162: Document encodings#136164
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
Uh oh!
There was an error while loading. Please reload this page.
Conversation
StanFromIreland commented Jul 1, 2025 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
sobolevn commented Jul 1, 2025
@StanFromIreland please, coordinate your work with others :) |
StanFromIreland commented Jul 1, 2025
@sobolevn Oops... I must have missed it in your post. I believed that no one else had started work on it so I went ahead. I didn't see value in saying I was working on it if I am to open PR ten minutes later. Apologies! |
sobolevn commented Jul 1, 2025
We can reopen it, since yours was the first one :) |
malemburg commented Jul 1, 2025
Looks good, but you should also document the win32_code_page_search_function() function available on Windows for completeness. |
malemburg left a comment • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @StanFromIreland
StanFromIreland commented Jul 1, 2025
@malemburg thanks for the well commented code, which is the basis for my doc:-) |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
StanFromIreland commented Jul 8, 2025
@malemburg Anything else left to do here? |
vstinner left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
ffd7f2f into python:mainUh oh!
There was an error while loading. Please reload this page.
malemburg commented Jul 8, 2025
I'm not sure whether we should backport this change. @vstinner ? Thanks @StanFromIreland and @sobolevn . |
Thanks @StanFromIreland for the PR, and @malemburg for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
Thanks @StanFromIreland for the PR, and @malemburg for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14. |
) ClosespythonGH-136162. (cherry picked from commit ffd7f2f) Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
GH-136453 is a backport of this pull request to the 3.13 branch. |
) ClosespythonGH-136162. (cherry picked from commit ffd7f2f) Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
GH-136454 is a backport of this pull request to the 3.14 branch. |
malemburg commented Jul 9, 2025
I'll add backports as well. This is documenting existing code, after all. |
…nGH-136164) (python#136454) pythongh-136162: Document `encodings` package functions (pythonGH-136164) ClosespythonGH-136162. (cherry picked from commit ffd7f2f) Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
search_functionhas possibly the longest singleifstatement in the entirety of CPython...I added a
.. note::, but switching to a.. warning::seems like a good idea.I am split on documenting
win32_code_page_search_function, but I have a patch ready. To me it seems as more of a helper function, which could be made private.encodingsmodule is not documented #136162📚 Documentation preview 📚: https://cpython-previews--136164.org.readthedocs.build/en/136164/library/codecs.html#module-encodings