Commits

Armin Rigo  committed 207092a

Improve the docstring and re-export weakref.ref() under the name
pypy.rlib.rweakref.ref().

  • Participants
  • Parent commits 598e02b

Comments (0)

Files changed (1)

File pypy/rlib/rweakref.py

 """
-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."""