[Python-Dev] Simple CPython stack overflow.

Guido van Rossum guido at python.org
Mon Feb 20 21:25:24 CET 2006

Yes, this is the type of thing we've been struggling with for years.
There used to be way more of these. I can't guarantee it'll be fixed
with priority (it's mostly of the "then don't do that" type) but
please do file a bug so someone with inclination can fix it. The same
happens for deeply recursive tuples and lists BTW.


On 2/20/06, David Wilson <dw at botanicus.net> wrote:
> Just noticed this and wondered if it came under the Python should never
> crash mantra. Should sys.getrecursionlimit() perhaps be taken into
> account somewhere?
>     >>> D = {'a': None}
>     >>> for i in xrange(150000):
>     ...     D = {'a': D}
>     ...
>     >>> D
>     {'a': {'a': {'a': {'a': {'a': {'a': {'a': {'a': {'a': {'a': {'a':
>     {'a': {'a': {'a': {'a': {'a': {'a': {'a': .... ': {'a': {'a': {'a':
>     {'a': {'a': {'a': {'a': {[+]'a': {'a': {'a': {'a': {'a': {'a': {'a':
>     {'a': {'a' .... Bus error
>     bash$
> Cheers,
> David.
> --
> 'tis better to be silent and be thought a fool,
> than to speak and remove all doubt.
>     -- Lincoln
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: http://mail.python.org/mailman/options/python-dev/guido%40python.org

--Guido van Rossum (home page: http://www.python.org/~guido/)

More information about the Python-Dev mailing list