gh-136162: Document encodings#136164
gh-136162: Document encodings#136164malemburg merged 7 commits intopython:mainpython/cpython:mainfrom StanFromIreland:doc-encodingsStanFromIreland/cpython:doc-encodingsCopy head branch name to clipboard
encodings#136164Conversation
|
@StanFromIreland please, coordinate your work with others :) |
|
@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! |
|
We can reopen it, since yours was the first one :) |
|
Looks good, but you should also document the win32_code_page_search_function() function available on Windows for completeness. |
|
@malemburg thanks for the well commented code, which is the basis for my doc:-) |
|
@malemburg Anything else left to do here? |
|
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. |
) Closes pythonGH-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. |
) Closes pythonGH-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. |
|
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) Closes pythonGH-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