IDLE mod: Maybe I don't want an error message for every recursive call that broke the stack

Posted by s on Nov. 2, 2008, 6:09 p.m.

>>> def f():f()

>>> f()

Traceback:

File "<pyshell#2>", line 1, in <module>

f()

RuntimeError: maximum recursion depth exceeded

Traced it down to traceback.py in print_list and added

if len(extracted_list)>9 and extracted_list[8]==extracted_list[9]:

_print(file,' File "%s", line %d, in %s' % (extracted_list[8][0],extracted_list[8][1],extracted_list[8][2]))

if extracted_list[8][3]:_print(file, ' %s' % extracted_list[8][3].strip())

return

Thus saving myself from thousands of lines of repeated error messages (really, it just doesn't make sense)

I think I'll go try my hand at the most esoteric of all languages again, ASM

Comments