Deferred Evaluation in Recursive Expressions?

birchb at ozemail.com.au birchb at ozemail.com.au
Wed May 10 01:04:23 EDT 2006


If we -are- limited to lambdas, I see two options. Either embed lambdas
for each circular link, or have the whole expression in one lambda. ie

    LinkedList3 = (int, lambda: LinkedList3, lambda: TypeNameX)

vs

    LinkedList2 = lambda: (int, LinkedList2, TypeNameX)

The second option looks neater. Maybe both are OK?




More information about the Python-list mailing list