Re: reloading sys

Sjoerd Mullender (Sjoerd.Mullender@cwi.nl)
Thu, 31 Mar 1994 23:51:08 +0200

On Thu, Mar 31 1994 tnb2d@henson.cs.virginia.edu wrote:

> (tnb2d@henson) /uf16/tnb2d $ python
> Python 1.0.1 (Mar 5 1994)
> Copyright 1991-1994 Stichting Mathematisch Centrum, Amsterdam
> >>> import sys
> >>> print sys.modules
> {'__builtin__': <module '__builtin__'>, 'sys': <module 'sys'>, '__main__': <m
> odule '__main__'>}
> >>> del sys.modules['sys']
> >>> print sys.modules
> {'__builtin__': <module '__builtin__'>, '__main__': <module '__main__'>}
> >>> import sys
> Memory fault

Definitely a bug. When I try it on the main development platform of
Python (SGI) I also get a core dump. It's a function call through a
NULL function pointer.
I think I'll let Guido handle this one when he's back.

Sjoerd Mullender, CWI, P.O. Box 94079, 1090 GB Amsterdam, The Netherlands
E-Mail: Sjoerd.Mullender@cwi.nl; Phone: +31 20 592 4127; Fax: +31 20 592 4199
URL: <http://www.cwi.nl/cwi/people/Sjoerd.Mullender.html>