[Python-Dev] weak refs in descriptors (http://bugs.python.org/issue17950)

2013-05-13 Thread Kristján Valur Jónsson
Hello python-dev. I'm working on a patch to remove reference cycles from heap-allocated classes: http://bugs.python.org/issue17950 Part of the patch involves making sure that descriptors in the class dictionary don't contain strong references to the class itself. This is item 2) in the defect

Re: [Python-Dev] weak refs in descriptors (http://bugs.python.org/issue17950)

2013-05-13 Thread Maciej Fijalkowski
On Mon, May 13, 2013 at 1:49 PM, Kristján Valur Jónsson krist...@ccpgames.com wrote: Hello python-dev. I‘m working on a patch to remove reference cycles from heap-allocated classes: http://bugs.python.org/issue17950 Part of the patch involves making sure that descriptors in the class

Re: [Python-Dev] weak refs in descriptors (http://bugs.python.org/issue17950)

2013-05-13 Thread Joao S. O. Bueno
On 13 May 2013 10:20, Maciej Fijalkowski fij...@gmail.com wrote: On Mon, May 13, 2013 at 1:49 PM, Kristján Valur Jónsson krist...@ccpgames.com wrote: Hello python-dev. I‘m working on a patch to remove reference cycles from heap-allocated classes: http://bugs.python.org/issue17950 Part of

Re: [Python-Dev] weak refs in descriptors (http://bugs.python.org/issue17950)

2013-05-13 Thread Terry Jan Reedy
On 5/13/2013 9:20 AM, Maciej Fijalkowski wrote: The strong reference there is a feature. Descriptors keep the class alive if somehow the class disappears and the descriptor itself does Is this feature stated or implied in the reference manual? 3.3.2.1. Implementing Descriptors 3.3.2.2.

Re: [Python-Dev] weak refs in descriptors (http://bugs.python.org/issue17950)

2013-05-13 Thread Antoine Pitrou
On Mon, 13 May 2013 13:21:17 -0400 Terry Jan Reedy tjre...@udel.edu wrote: On 5/13/2013 9:20 AM, Maciej Fijalkowski wrote: The strong reference there is a feature. Descriptors keep the class alive if somehow the class disappears and the descriptor itself does Is this feature stated or