[Tracker-discuss] [issue216] Using PyObject_New with Py_TPFLAGS_HAVE_GC

Duncan Webb metatracker at psf.upfronthosting.co.za
Wed Aug 27 15:56:55 CEST 2008


New submission from Duncan Webb <duncan-bugs at linuxowl.com>:

I managed to use PyObject_New instead of PyObject_GC_New for an object that has
Py_TPFLAGS_HAVE_GC set.

The problem is that the code was working in debug mode but was crashing in
release mode and it was very difficult to track the problem down.

Adding a check in the PyObject_New, PyObject_GC_New methods would have shown the
problem much earlier in devlopment.

----------
messages: 1084
nosy: duncanwebb
priority: bug
status: unread
title: Using PyObject_New with Py_TPFLAGS_HAVE_GC

_______________________________________________________
PSF Meta Tracker <metatracker at psf.upfronthosting.co.za>
<http://psf.upfronthosting.co.za/roundup/meta/issue216>
_______________________________________________________


More information about the Tracker-discuss mailing list