bpo-33461: Emit DeprecationWarning when json.loads(encoding=...) is used by Carreau · Pull Request #6762 · python/cpython (original) (raw)
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.