| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM. But I'm not sure if Doc/c-api/exceptions.rst changes are related.
Sorry, something went wrong.
| that if *filename* is not ``NULL``, it is decoded from the filesystem | ||
| encoding (:func:`os.fsdecode`) and passed to the constructor of | ||
| :exc:`OSError` as a third parameter to be used to define the | ||
| :attr:`!filename` attribute of the exception instance. |
There was a problem hiding this comment.
I'm not sure if Doc/c-api/exceptions.rst changes are related or not? They don't seem to fix Sphinx warnings.
Sorry, something went wrong.
There was a problem hiding this comment.
Both descriptions referred non-existing function
PyObject* PyErr_SetFromWindowsErrWithFilenameObject(int ierr, PyObject *filenameObject);There is no, and never was such function.
So I rewrote the descriptions by referring other functions, using descriptions of other functions which add the filename parameter as an example.
It fixes 2 of 10 warnings in Doc/c-api/exceptions.rst.
Sorry, something went wrong.
There was a problem hiding this comment.
Oh I didn't notice, ok. Well, I approved your PR ;-)
Sorry, something went wrong.
|
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
Sorry, something went wrong.
|
Sorry, @serhiy-storchaka, I could not cleanly backport this to 3.11 due to a conflict. |
Sorry, something went wrong.
|
GH-108284 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
…ythonGH-108258) (cherry picked from commit d7202e4) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
…I docs (pythonGH-108258). (cherry picked from commit d7202e4) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
GH-108290 is a backport of this pull request to the 3.11 branch. |
Sorry, something went wrong.
…GH-108258) (#108284) gh-107298: Fix numerous ref errors and typos in the C API docs (GH-108258) (cherry picked from commit d7202e4) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
…GH-108258) (#108290) (cherry picked from commit d7202e4)
| Back | FazBrowse Home | New Git URL |
📚 Documentation preview 📚: https://cpython-previews--108258.org.readthedocs.build/