Recursive __cmp__ in different Python versions

Fredrik Lundh fredrik at pythonware.com
Mon Feb 14 14:10:14 EST 2005


Roman Suzi wrote:

> #The following Python code:
>
> /.../
>
> # gives interesting results under different Python version.
> The most common sense in the result in Python 2.4: recursion
> limit reached.
>
> Python 2.3 tries 20+ times and then give up.
>
> Python1.5 gives segmentation fault...

is there a question in here, or is it just an observation?

if you want some background, search for "recursive" and "cmp" in Misc/NEWS
and Misc/HISTORY, and check the discussion here:

    http://mail.python.org/pipermail/python-dev/2003-October/039445.html

</F> 






More information about the Python-list mailing list