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
Typo in JSON documentation #90315
Comments
In this doc: https://docs.python.org/3/library/json.html#json.dump The section on check_circular has a typo: ...a circular reference will result in an RecursionError => a RecursionError |
There are other similar errors: Doc/library/json.rst:162: will result in an :exc:`RecursionError` (or worse). |
I'll fix them all :) |
Doc/using/cmdline.rst:474: * ``-X warn_default_encoding`` issues a :class:`EncodingWarning` when the |
Thank you Kumar. These errors were found with the following one-liners: $ find -name '*.rst' -exec egrep --color -i '\ban +:[a-z:]+:`[qwrtpsdfghjklzxcvbnm]' '{}' +
$ find -name '*.rst' -exec egrep --color -i '\ba +:[a-z:]+:`[eyuioa]' '{}' + They produce a lot of false positive results because of signatures and different reading of initial "y" and "u" (and "o", but there are no such cases here). |
I have fixed most of them in the PR which I found correct, rest can be fixed later on. |
And more errors can be found with: $ find -name '*.rst' -exec egrep --color -i '\ban +[qwrtpsdfghjklzxcvbnm]' '{}' +
$ find -name '*.rst' -exec egrep --color -i '\ba +[eioa]' '{}' + It is worth to check also: $ find -name '*.rst' -exec egrep --color -i '\ban +[yu]' '{}' +
$ find -name '*.rst' -exec egrep --color -i '\ba +[yu]' '{}' + Most of them should be correct, but there may be some new errors. |
PR 30237 introduced few new errors. |
Fixed in a new PR @serhiy |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: