Skip to content

Incorrect footnotes at https://docs.python.org/3/c-api/exceptions.html#standard-exceptions #92431

Closed
@anntzer

Description

@anntzer

Documentation

As of Python 3.10.4, the "Standard Exceptions" table has the following entries with footnotes:

  • PyExc_ReferenceError : ReferenceError : (2)
  • PyExc_WindowsError : (alias for PyExc_OSError) : (3)

but there is no footnote 3 and footnote 2 reads
"Only defined on Windows; protect code that uses this by testing that the preprocessor macro MS_WINDOWS is defined."

(As a related side point, the documentation for PyErr_SetFromWindowsErr (on the same page) refers to WindowsError and PyExc_WindowsError, but perhaps these should be updated to OSError and PyExc_OSError instead.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions