[Python-Dev] SIGCHECK() in longobject.c

Antoine Pitrou solipsis at pitrou.net
Mon Oct 19 00:46:04 CEST 2009


Daniel Stutzbach <daniel <at> stutzbachenterprises.com> writes:
> 
> I sometimes do million-digits calculations that I want to interrupt using
Control-C.(particularly when I didn't *intend* to do a million-digits
calculation... ;) )--

Sure, but it's no different than doing, e.g.:
    list(range(100000000)).sort()

(don't try this, it just made by computer slow down to a crawl and I had to kill
-9 the Python interpreter)

The question is whether there is still any reason to special-case long objects
and not, say, list.sort() or re.sub().

Regards

Antoine.




More information about the Python-Dev mailing list