A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-July/026114.html below:

[Python-Dev] weakref (or doc) bug?

[Python-Dev] weakref (or doc) bug? [Python-Dev] weakref (or doc) bug?Gustavo Niemeyer niemeyer@conectiva.com
Tue, 2 Jul 2002 16:54:00 -0300
> >>> help(weakref.ref)
> Help on built-in function ref:
> 
> ref(...)
>     new(object[, callback]) -- create a weak reference to 'object';
>     when 'object' is finalized, 'callback' will be called and passed
>     a reference to 'object'.
>     ^^^^^^^^^^^^^^^^^^^^^^^
[...]
> It appears that it's a reference to the weakref object that's passed, not
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I'm not sure if that's what was intended, but the documentation seems 
compliant with the current behavior.

-- 
Gustavo Niemeyer

[ 2AAC 7928 0FBF 0299 5EB5  60E2 2253 B29A 6664 3A0C ]




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4