Title: bpo-33461: Emit DeprecationWarning when json.loads(encoding=...) is used by Carreau · Pull Request #6762 · python/cpython · GitHub
Open Graph Title: bpo-33461: Emit DeprecationWarning when json.loads(encoding=...) is used by Carreau · Pull Request #6762 · python/cpython
X Title: bpo-33461: Emit DeprecationWarning when json.loads(encoding=...) is used by Carreau · Pull Request #6762 · python/cpython
Description: I also move in the docs the encoding=... keyword to the end of the signature, as it is kw only. Having the first argument in the doc being the deprecated one does not seem to be the most efficient way to make people forget about it. This does not, of course emit warnings if you pass None explicitly, this could be further refined by using a sentinel value, but I'm unsure this would be useful. https://bugs.python.org/issue33461
Open Graph Description: I also move in the docs the encoding=... keyword to the end of the signature, as it is kw only. Having the first argument in the doc being the deprecated one does not seem to be the most efficient ...
X Description: I also move in the docs the encoding=... keyword to the end of the signature, as it is kw only. Having the first argument in the doc being the deprecated one does not seem to be the most efficient ...
Opengraph URL: https://github.com/python/cpython/pull/6762
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:b9cecd70-acff-5b1f-40a7-0136aadd6064 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A610:139708:4B83300:6A2D1FB:6A50F7D9 |
| html-safe-nonce | 9dcd7e9400f697c1472b28802e7afe017b39f9695131c4d4be1f3460304986f4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjEwOjEzOTcwODo0QjgzMzAwOjZBMkQxRkI6NkE1MEY3RDkiLCJ2aXNpdG9yX2lkIjoiNDY3Mjk3Nzg0NDkyOTg4NjE2OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e88b5c1516b656af3f4bd8d371324771ed4f6c6b539a21bd0677c2555e0bf837 |
| hovercard-subject-tag | pull_request:187354154 |
| 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/6762/files |
| twitter:image | https://avatars.githubusercontent.com/u/335567?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/335567?s=400&v=4 |
| og:image:alt | I also move in the docs the encoding=... keyword to the end of the signature, as it is kw only. Having the first argument in the doc being the deprecated one does not seem to be the most efficient ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5266e58c17a510c403505cc811606465e90a881d2007ee7df1c4800d5c659838 |
| 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 | 8d836581d020676cc0ef4a83cd2fe17e4af02c3d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width