[issue3029] free list management - list, dict, set

2008-06-03 Thread Andrew I MacIntyre
Andrew I MacIntyre [EMAIL PROTECTED] added the comment: Freelist clearing functions for int and float were added by Christian, and made available to Python code via a function in the sys module. I don't know who added the freelist clearing functions for the class, frame, method, tuple and

[issue3029] free list management - list, dict, set

2008-06-03 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: I don't see the need for them to be part of the public API, but I framed this patch to fit in with what's already in place. These should not be part of the public API; otherwise, we lock-in the freelisting implementation detail and

[issue3029] free list management - list, dict, set

2008-06-02 Thread Andrew I MacIntyre
New submission from Andrew I MacIntyre [EMAIL PROTECTED]: The attached patch adds free list clearing routines for the list, dict set objects. These objects are the only ones with free lists that don't already have some form of free list management API. This patch complements the patch in

[issue3029] free list management - list, dict, set

2008-06-02 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: What is the point of expanding the C API for clearing individual types. Isn't the single Fini function sufficient to clear them all? Make the approaches consistent seems like a reasonable goal, but why did you choose the path where