Recursion limit problems

elventear elventear at gmail.com
Mon May 14 11:30:08 EDT 2007


On May 11, 11:54 pm, "Terry Reedy" <tjre... at udel.edu> wrote:
>
> Without seeing the full code and the exception traceback, my guess is that
> your __hash__ somehow calls itself due to a refence loop in your object.  A
> simple example of a loop:
> a = []; a.append(a)
> Now, list objects are not hashable, but if they were, and the hash were
> value based (like your), then hash(a) would call hash(a) would call
> hash(a)....

You were right, I had forgotten that in some instances I had some data
that recursively pointed to the source. Thanks!




More information about the Python-list mailing list