[Python-Dev] Simple CPython stack overflow.
David Wilson
dw at botanicus.net
Mon Feb 20 20:58:08 CET 2006
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
More information about the Python-Dev
mailing list