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-1635741: testbuffer heap types by koubaa · Pull Request #22131 · python/cpython Conversation
|
|
@vstinner @shihai1991 @corona10 I tried to take the conversions of just the heap types from #22003 in this PR. The tests are crashing here starting from the second commit (the staticarray conversion to a heap type did not cause any problems). I'm putting it up for review in case any of you could help me spot the problem. multi-phase init, moving more globals to the module state, and any PEP7 style changes are going to come in a follow-up once I can identify the problems with this change. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| staticarray_dealloc(StaticArrayObject *self) | ||
| { | ||
| PyTypeObject *tp = Py_TYPE(self); | ||
| PyObject_Del(self); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
tp->tp_free(self) in here?
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.
See compiler warnings at https://github.com/python/cpython/pull/22131/files , like:
‘ndarray_as_buffer’ defined but not used [-Wunused-variable]
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This is a test module. The PR removes a test that explicitly tests static types at the request of @scoder . It is not necessary to make changes to this module. |
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.