Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
gh-141004: documentcurses C API#141254
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Conversation
4b091af to5c30fd6CompareUh oh!
There was an error while loading.Please reload this page.
698f2a0 tobf55f97Compare| ``PyCurses_API[1]``, ``PyCurses_API[2]``, and ``PyCurses_API[3]`` | ||
| are pointers to predicate functions of type ``int (*)(void)``. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Please document that new entries may be added in the future.
| ..c:var:: PyTypeObject PyCursesWindow_Type | ||
| The:ref:`heap type<heap-types>` corresponding to:class:`curses.window`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Yuck, this doesn't look cross-interpreter friendly. Could you add a note somewhere here thatpy_curses.h is not compatible with subinterpreters? It'd also be good to make a new issue for this.
| ..c:macro:: PyCurses_API_pointers | ||
| The number of accessible fields in:c:var:`PyCurses_API`. | ||
| Internal usage only. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
This shouldn't be "internal only", because this is useful to users. If we ever add something new to the curses C API, they can check the array size to determine whether the new thing is available.
Uh oh!
There was an error while loading.Please reload this page.
📚 Documentation preview 📚:https://cpython-previews--141254.org.readthedocs.build/