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 — GH-100719: Remove the `co_nplaincellvars` field from code objects. by markshannon · Pull Request #100721 · python/cpython Conversation
|
| // Look for __class__ in the free vars. | ||
| PyTypeObject *type = NULL; | ||
| int i = co->co_nlocals + co->co_nplaincellvars; | ||
| int i = PyCode_GetFirstFree(co); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Py_ssize_t?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
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.
This should be an int. I'll change PyCode_GetFirstFree.
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.
@markshannon why should it be int?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| /* Free vars have not been initialized -- Do that */ | ||
| PyObject *closure = ((PyFunctionObject *)frame->f_funcobj)->func_closure; | ||
| int offset = co->co_nlocals + co->co_nplaincellvars; | ||
| int offset = PyCode_GetFirstFree(co); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Py_ssize_t?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| if (co->co_nfreevars) { | ||
| int i = co->co_nlocals + co->co_nplaincellvars; | ||
| int i = PyCode_GetFirstFree(co); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Py_ssize_t?
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.