[pypy-commit] pypy default: Improve the docstring and re-export weakref.ref() under the name
arigo
noreply at buildbot.pypy.org
Mon Jan 23 17:30:28 CET 2012
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r51693:207092a8b272
Date: 2012-01-23 17:30 +0100
http://bitbucket.org/pypy/pypy/changeset/207092a8b272/
Log: Improve the docstring and re-export weakref.ref() under the name
pypy.rlib.rweakref.ref().
diff --git a/pypy/rlib/rweakref.py b/pypy/rlib/rweakref.py
--- a/pypy/rlib/rweakref.py
+++ b/pypy/rlib/rweakref.py
@@ -1,11 +1,14 @@
"""
-Weakref support in RPython. Supports ref() without callbacks,
+Weakref support in RPython. Basic regular weakrefs without callbacks
+are supported. This file contains the following additions:
a form of WeakKeyDictionary, and a limited version of WeakValueDictionary.
LLType only for now!
"""
import weakref
+ref = weakref.ref # basic regular weakrefs are supported in RPython
+
class RWeakValueDictionary(object):
"""A dictionary containing weak values."""
More information about the pypy-commit
mailing list