[ZODB-Dev] ZEO pack

Jeremy Hylton jeremy@zope.com
Thu, 27 Sep 2001 09:56:59 -0400 (EDT)


>>>>> "TD" == Toby Dickenson <tdickenson@devmail.geminidataloggers.co.uk> writes:

  >>> If the value of the 'wait' parameter can be supplied
  >>> through-the-web, then anyone who can arrange for that value to
  >>> be a recursive object
  >>
  >> How would one go about doing that?

  TD> How do you create a recursive object?

  >>> a=[] 
  >>> a.append(a) a
  [[...]]

Another approach:

>>> import cPickle
>>> cPickle.loads('(lp1\ng1\na.'))
[[...]]

Did this sub-thread start by worrying about pickles of recursive
objects?  Pickle handles cycles in object references just fine.  I
think the only substantial risk with pickles is small pickles that
require lots of memory to unpickle.  (cPickle may even has some
mechanism to detect these.)

Jeremy