[New-bugs-announce] [issue42542] weakref documentation does not fully describe proxies

Ryan Govostes report at bugs.python.org
Wed Dec 2 10:18:59 EST 2020


New submission from Ryan Govostes <rgovostes at gmail.com>:

The documentation for weakref.proxy() does not describe how the proxy object behaves when the object it references is gone.

The apparent behavior is that it raises a ReferenceError when an attribute of the proxy object is accessed.

It would probably be a good idea to describe what the proxy object does in general, for those who are unfamiliar with the concept: attribute accesses on the proxy object are forwarded to the referenced object, if it exists.

----------
assignee: docs at python
components: Documentation
messages: 382319
nosy: docs at python, rgov
priority: normal
severity: normal
status: open
title: weakref documentation does not fully describe proxies
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42542>
_______________________________________


More information about the New-bugs-announce mailing list