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 — bpo-38823: Clean up refleaks in _ast initialization. by brandtbucher · Pull Request #17276 · python/cpython Conversation
|
| self.emit("if (!init_types()) return NULL;", 1) | ||
| self.emit('m = PyState_FindModule(&_astmodule);', 1) | ||
| self.emit("if (!m) return NULL;", 1) | ||
| self.emit('if (PyModule_AddObject(m, "AST", astmodulestate_global->AST_type) < 0) goto error;', 1) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Please add braces, see PEP 7.
| self.emit('if (PyModule_AddObject(m, "AST", astmodulestate_global->AST_type) < 0) goto error;', 1) | |
| self.emit('if (PyModule_AddObject(m, "AST", astmodulestate_global->AST_type) < 0) { goto error; }', 1) |
Same for changes below.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@brandtbucher, please address the review comments. Thanks! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry @vstinner, I didn't realize that PEP 7 applied to generated code. Fixed! |
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.
Thanks, LGTM.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I don't see the need to backport such change. Errors in _ast init function are very unlikely. I prefer to reduce the number of backported changes to stable branches to reduce the risk of regression. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
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.