Commits

Alex Gaynor committed f39bcfa

Make get_rpy_roots callable from an untranslated PyPy, with the caveat that it is very slow.

Comments (0)

Files changed (1)

 def get_rpy_roots():
     "NOT_RPYTHON"
     # Return the 'roots' from the GC.
-    # This stub is not usable on top of CPython.
     # The gc typically returns a list that ends with a few NULL_GCREFs.
-    raise NotImplementedError
+    return [_GcRef(x) for x in gc.get_objects()]
 
 def get_rpy_referents(gcref):
     "NOT_RPYTHON"