Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Dev
FS: [issue9141] Allow objects to decide if they can be collected by GC
 

Index | Next | Previous | View Flat


kristjan at ccpgames

Apr 5, 2012, 4:58 AM


Views: 85
Permalink
FS: [issue9141] Allow objects to decide if they can be collected by GC

Hi there. Antoine Pitrou suggested that I float this on python-dev again. The new patch should
1) be much simpler and less hacky
2) remove the special case code for PyGenObject from gcmodule.c
K

________________________________________
Frá: Kristján Valur Jónsson [report [at] bugs]
Sent: 5. apríl 2012 11:55
To: Kristján Valur Jónsson
Efni: [issue9141] Allow objects to decide if they can be collected by GC

Kristján Valur Jónsson <kristjan [at] ccpgames> added the comment:

Here is a completely new patch. This approach uses the already existing tp_is_gc enquiry slot to signal garbage collection.
The patch modifies the generator object to use this new mechanism.
The patch keeps the old PyGen_NeedsFinalizing() API, but this can now go away, unless people think it might be used in extension modules

(why do we always expose all those internal apis from the dll? I wonder.)

----------
Added file: http://bugs.python.org/file25131/ob_is_gc.patch

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue9141>
_______________________________________
_______________________________________________
Python-Dev mailing list
Python-Dev [at] python
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/list-python-dev%40lists.gossamer-threads.com

Subject User Time
FS: [issue9141] Allow objects to decide if they can be collected by GC kristjan at ccpgames Apr 5, 2012, 4:58 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.