Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.4k
gh-103092: Prep curses module for multi-phase init#23091
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
@vstinner@corona10@shihai1991 please review |
Uh oh!
There was an error while loading.Please reload this page.
This PR is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days |
c96930b
to0dc705b
Compare@vstinner would you please review? |
Py_DECREF(o); \ | ||
goto error; \ |
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.
"return NULL;" is enough: you should remove the error label. An error label is used when you need to clean up things, it's not the case here. Same remark at the bottom of the file.
return NULL; | ||
} | ||
static void *PyCurses_API[PyCurses_API_pointers]; |
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.
There are warnings on the PR, like ‘PyCurses_API’ defined but not used [-Wunused-variable].
https://bugs.python.org/issue1635741 is closed. What is the status of this PR? |
The change is still relevant, but should use a new issue number. Moreover, the SC asked to put the conversion of static types to heap types on hold.@encukou and@erlend-aasland wrotehttps://peps.python.org/pep-0687/ which may unblock the situation but it's still a draft. |
Closing as per#101714 (comment). Thanks for the effort, Mohamed! |
Uh oh!
There was an error while loading.Please reload this page.
https://bugs.python.org/issue1635741