This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients Rhamphoryncus, effbot, georg.brandl, jcea, ncoghlan, timehorse, vstinner
Date 2009-01-02.00:08:58
SpamBayes Score 0.00015984711
Marked as misclassified No
Message-id <>
Ah, now that I go to implement it, I remember why I didn't like the idea
of doing anything directly in PyObject_Del. While the Python memory
allocator is primarily designed for allocation of Python objects, it
isn't actually *limited* to that. So there is no guarantee that the void
pointer passed in to PyObject_Del can be safely cast to a PyObject pointer.

The idea could still be implemented by scanning the list of active
objects to see if the passed in pointer refers to one of them, but that
would make object deallocation in pydebug builds extraordinarily slow.
Date User Action Args
2009-01-02 00:08:59ncoghlansetrecipients: + ncoghlan, effbot, georg.brandl, jcea, Rhamphoryncus, vstinner, timehorse
2009-01-02 00:08:59ncoghlansetmessageid: <>
2009-01-02 00:08:58ncoghlanlinkissue3299 messages
2009-01-02 00:08:58ncoghlancreate