Title: gh-136162: Document `encodings` by StanFromIreland · Pull Request #136164 · python/cpython · GitHub
Open Graph Title: gh-136162: Document `encodings` by StanFromIreland · Pull Request #136164 · python/cpython
X Title: gh-136162: Document `encodings` by StanFromIreland · Pull Request #136164 · python/cpython
Description: search_function has possibly the longest single if statement in the entirety of CPython... we should add a note that these functions should normally not be used directly 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. Issue: gh-136162 📚 Documentation preview 📚: https://cpython-previews--136164.org.readthedocs.build/en/136164/library/codecs.html#module-encodings
Open Graph Description: search_function has possibly the longest single if statement in the entirety of CPython... we should add a note that these functions should normally not be used directly I added a .. note::, but ...
X Description: search_function has possibly the longest single if statement in the entirety of CPython... we should add a note that these functions should normally not be used directly I added a .. note::, but ...
Opengraph URL: https://github.com/python/cpython/pull/136164
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:129d6d5e-ab5f-00f2-708b-c1caa7fc350f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C074:DD0BF:7C8A16:ADCD28:696A2A35 |
| html-safe-nonce | 4e0aa37cde6ced9f44465715f18a05c8daff3faecca0ba78a3a470bc01e08b71 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDc0OkREMEJGOjdDOEExNjpBRENEMjg6Njk2QTJBMzUiLCJ2aXNpdG9yX2lkIjoiMjIxNzU4ODAxMjkzOTM1NjcyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2725bf05a36e34230c7fddab81d53272d4d46cd6a95bf3b09fd7cbf9e6bd228e |
| hovercard-subject-tag | pull_request:2631621618 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/136164/files |
| twitter:image | https://avatars.githubusercontent.com/u/89152624?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/89152624?s=400&v=4 |
| og:image:alt | search_function has possibly the longest single if statement in the entirety of CPython... we should add a note that these functions should normally not be used directly I added a .. note::, but ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | a1022f03e4f0d91ea173e4e5dac892c982e0588c62f1ce56121d755a320a3569 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f472b8e6c7b3fdd5d0354972a3f4c516289bf0be |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width