[Python-Dev] Include ctypes into core Python?

Guido van Rossum guido at python.org
Wed Jan 11 00:35:08 CET 2006

On 1/10/06, Thomas Wouters <thomas at xs4all.net> wrote:
> Aside from 'dl', what was also pointed out in c.l.py was the crashability of
> Python in general, even from pure Python code:
> centurion:~ > python < .
> Segmentation fault

This I think ought to be fixed; it's just (I presume) the parser
stumbling over extremely invalid input.

> [...]
> >>> sys.setrecursionlimit(1<<30)
> >>> f = lambda f:f(f)
> >>> f(f)
> Segmentation fault

OK, point taken.

> There's more, all from Python itself. And sure, "well, don't do that then"
> is a perfectly valid response to most of these harebrained tricks, but it
> does put a lie to the 'uncrashable python' idea :)

I'm not saying it's uncrashable. I'm saying that if you crash it, it's
a bug unless proven harebrained.

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

More information about the Python-Dev mailing list