GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||
GeezerVison is showing github.com — gh-107298: Fix numerous ref errors and typos in the C API docs by serhiy-storchaka · Pull Request #108258 · python/cpython Conversation
|
| 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.
The reason will be displayed to describe this comment to others. Learn more.
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 an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
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 an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Oh I didn't notice, ok. Well, I approved your PR ;-)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry, @serhiy-storchaka, I could not cleanly backport this to |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
GH-108284 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ythonGH-108258) (cherry picked from commit d7202e4) Co-authored-by: Serhiy Storchaka <[email protected]>
…I docs (pythonGH-108258). (cherry picked from commit d7202e4) Co-authored-by: Serhiy Storchaka <[email protected]>
|
GH-108290 is a backport of this pull request to the 3.11 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…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 <[email protected]>
…GH-108258) (#108290) (cherry picked from commit d7202e4)
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.