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

Antoine Pitrou solipsis at pitrou.net
Mon May 13 19:36:45 CEST 2013

On Mon, 13 May 2013 13:21:17 -0400
Terry Jan Reedy <tjreedy at 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 implied in the reference manual?
> Implementing Descriptors
> Invoking Descriptors
> ???
> or is it an implementation detail that people have come to rely on?

Any reference that is not documentedly weak is strong by definition;
this is Python's basic semantics, there's no need to ask about
documentation pointers.

The only question is whether some people rely on this particular one.



More information about the Python-Dev mailing list