Deferred Evaluation in Recursive Expressions?

birchb at birchb at
Wed May 10 06:15:31 CEST 2006

That's a good fix. But I have misgivngs about needing a global name
registry. I need to support anonymous types and types with local
(lexical) scope. For example:

def makeAnonymousRecursiveType(T):
    # anonymous type expression with local scope
    LinkedList = (T, lambda: LinkedList)
    return LinkedList

local = makeAnonymousRecursiveType(int)

More information about the Python-list mailing list