Skip to content
Permalink
Browse files

All ObjectSpace#each_object specs pass now

  • Loading branch information
Alex Gaynor
Alex Gaynor committed Apr 7, 2013
1 parent e0a9877 commit 4e91251349509a2d8f78ee9358817f8f38a01d85
Showing with 3 additions and 3 deletions.
  1. +0 −3 spec/tags/core/objectspace/each_object_tags.txt
  2. +3 −0 topaz/modules/objectspace.py

This file was deleted.

@@ -23,6 +23,8 @@ class ObjectSpace(Module):

@moduledef.function("each_object")
def method_each_object(self, space, w_mod, block):
if block is None:
return space.send(self, space.newsymbol("enum_for"), [space.newsymbol("each_object"), w_mod], block)
match_w = []
roots = [gcref for gcref in rgc.get_rpy_roots() if gcref]
pending = roots[:]
@@ -37,3 +39,4 @@ def method_each_object(self, space, w_mod, block):
clear_gcflag_extra(roots)
for w_obj in match_w:
space.invoke_block(block, [w_obj])
return space.newint(len(match_w))

0 comments on commit 4e91251

Please sign in to comment.
You can’t perform that action at this time.