better runtime characteristics

This commit is contained in:
Darren Ranalli 2009-02-10 23:23:49 +00:00
parent 932da28ac1
commit 30eb8286a2
1 changed files with 3 additions and 3 deletions

View File

@ -547,7 +547,7 @@ class FindContainers(Job):
if hasLength or notDeadEnd:
# prevent cycles in the references (i.e. base.loader.base)
for goesThrough in parentObjRef.goesThroughGen(child):
pass
yield None
if not goesThrough:
objRef = ObjectRef(Indirection(evalStr='.__dict__'),
id(child), parentObjRef)
@ -585,7 +585,7 @@ class FindContainers(Job):
if hasLength or notDeadEnd:
# prevent cycles in the references (i.e. base.loader.base)
for goesThrough in parentObjRef.goesThroughGen(curObj[key]):
pass
yield None
if not goesThrough:
if curObj is __builtin__.__dict__:
objRef = ObjectRef(Indirection(evalStr='%s' % key),
@ -636,7 +636,7 @@ class FindContainers(Job):
if hasLength or notDeadEnd:
# prevent cycles in the references (i.e. base.loader.base)
for goesThrough in parentObjRef.goesThrough(curObj[index]):
pass
yield None
if not goesThrough:
objRef = ObjectRef(Indirection(evalStr='[%s]' % index),
id(curObj[index]), parentObjRef)