Georg Brandl <[EMAIL PROTECTED]> added the comment: > It can also be used in constructors, to destroy an object that was just > created if something goes wrong.
It appears that this is not true in debug builds: PyObject_NEW adds the object to the global linked list of all objects, which PyObject_DEL obviously doesn't undo. Therefore, when the object created immediately before is deallocated (in this case the argument tuple to finditer()), a fatal error will be caused. _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3299> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com