[ZODB-Dev] ZEO pack

Toby Dickenson tdickenson@geminidataloggers.com
Thu, 27 Sep 2001 15:40:22 +0100


> > How do you create a recursive object?
> 
> > >>> a=[]
> > >>> a.append(a)
> > >>> a
> > [[...]]
> 
> ...and how would one go about doing that TTW?

Exactly the same in PythonScript, or in dtml:

(untested, and I am way out of practice at dtml at the moment)

<dtml-let "a=[]">
<dtml-call "a.append(a)">
</dtml-let>