-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
gh-123961: move PyCursesError
in _cursesmodule.c
to a global state variable
#124729
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
Merged
vstinner
merged 39 commits into
python:main
from
picnixz:curses/multiphase-module-123961
Sep 29, 2024
Merged
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
3148d86
Introduce module's state and logic.
picnixz 75bd7b6
Store exception in the module's state.
picnixz b295919
Rename `curses_destructor` to `_curses_capi_destructor`
picnixz 1665f38
Introduce macros for initialization checks.
picnixz 2a1e13a
Update C API functions
picnixz 9e29bd5
Update macros checking the functions being called.
picnixz e1cab2f
Update `PyCursesCheckERR` to use the module's state
picnixz 5f28eb8
Add `PyCursesCheckERR_FromSelf` to prepare when the type is a heap type.
picnixz bcbbdd4
Update Function Prototype Macros.
picnixz faf4e87
Update Function Body Macros.
picnixz 885c94c
Update `PyCursesCheckERR` usage for Window methods
picnixz da98de4
Update `PyCursesCheckERR` usage for module's methods
picnixz 65c5f60
Update global references to `PyCursesError`
picnixz e3e1131
Make `PyCursesWindow_Type` a heap type.
picnixz 9617f50
Correct calls to `PyCursesWindow_New`
picnixz 1db7bea
Do not expose `PyCursesWindow_Check` when compiling `_cursesmodule.c`
picnixz 4c207d3
Finalize multi-phase initialization for `curses`.
picnixz 228348c
Remove redundant cast to `PyObject *`.
picnixz b8b0751
reduce diff (remove some PEP-7 changes)
picnixz 83fab15
reduce diff (remove some PEP-7 changes)
picnixz 9ff69e4
Revert "Finalize multi-phase initialization for `curses`."
picnixz 13bd868
Revert "Introduce module's state and logic."
picnixz f32dee9
Revert "Make `PyCursesWindow_Type` a heap type."
picnixz fd38850
address Victor's review
picnixz e70175c
Revert "Remove redundant cast to `PyObject *`."
picnixz 676d1ce
reduce diff
picnixz 8a60d53
reduce diff
picnixz e0dfc4a
fix globals
picnixz e596924
fix globals
picnixz fc9dacb
rename the state fields
picnixz f548f4b
Introduce macros for initialization checks.
picnixz 3e5c37c
Update C API functions
picnixz b94438f
Improve macros to use module's state when possible
picnixz a4edf7e
Merge branch 'curses/multiphase-module-123961' of github.com:picnixz/…
picnixz b987499
Make use of module's state whenever possible.
picnixz e8d9d66
Make use of module's state whenever possible.
picnixz b02e860
remove unused function for now
picnixz 439a63f
address Victor's review
picnixz 3936143
fix test
picnixz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Introduce macros for initialization checks.
- Loading branch information
commit f548f4b0265c77bc73defff97de795529af27987
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.