-
-
Notifications
You must be signed in to change notification settings - Fork 29.2k
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
Remove PyMalloc_* symbols #36391
Comments
This patch removes all PyMalloc_* symbols from the I also changed PyObject_Del and PyObject_GC_Del Please review and assign back to me. The next phase would be to cleanup the memory API Oh yes, we also need to change PyMem_{Free, Del, ...} to |
Logged In: YES Looks good to me -- thanks! |
Logged In: YES Oops -- I hit "Submit" prematurely. More to come. |
Logged In: YES Extensions that *currently* call PyObject_Del have its old I personally don't mind that, but I run on Windows So that's one for Python-Dev. If we do break binary Note that if the typedef of destructor were so changed, you Hmm. I'm assigning this to Guido for comment: Guido, what Back to Neil: I wouldn't bother changing PyObject_Del to |
Logged In: YES I'm looking at this now... |
Logged In: YES (Wouldn't it be more efficient to take this to email
Still, tradition has it that we keep such entry
Huh? "destructor" is used to declare tp_dealloc, It's also used to declare tp_free, which arguably
I don't understand this at all.
Nor this.
I want binary compatibility, but I don't understand
I prefer PyObject_Del -- like PyObject_GC_Del, and I'm not sure what to say of Neil's patch, except #define PyObject_Del ((destructor)PyObject_Free) Or maybe it *does* work??? |
Logged In: YES I've not fully read Tim's response in email, but instead I think the only thing to which I object at this point is One minor question: there are a bunch of #undefs in I suggest that you check this thing in, but keeping |
Logged In: YES Clarifying or just repeating Guido here: + Binary compatibility is important. It's better on Unix + Casts on tp_free slots are par for the course, + Fred and I agreed to add PyObject_Del to the "minimal If anything's unclear, hit me. |
Logged In: YES It might be a day or two before I get to this. Regarding the type of tp_free, could we change it to be typedef void (*freefunc)(void *);
...
freefunc tp_free; and leave the type of tp_dealloc alone. Maybe it's too |
Logged In: YES It'll be a day or two before PLabs can get back to Python Reassigning to Guido -- I'm not even going to try to |
Logged In: YES The binary compatibility issue is extensions compiled for Back to Neil, I think my instructions are clear enough. |
Logged In: YES A modified version of the patch has been commited. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: