[Python-Dev] Simple CPython stack overflow. (original) (raw)
Guido van Rossum guido at python.org
Mon Feb 20 21:25:24 CET 2006
- Previous message: [Python-Dev] Simple CPython stack overflow.
- Next message: [Python-Dev] bytes.from_hex()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
--Guido
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/)
- Previous message: [Python-Dev] Simple CPython stack overflow.
- Next message: [Python-Dev] bytes.from_hex()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]