[admin@oleo tmp]$ python -v a.py # installing zipimport hook import zipimport # builtin # installed zipimport hook # /opt/lib/python2.4/site.pyc matches /opt/lib/python2.4/site.py import site # precompiled from /opt/lib/python2.4/site.pyc # /opt/lib/python2.4/os.pyc matches /opt/lib/python2.4/os.py import os # precompiled from /opt/lib/python2.4/os.pyc import posix # builtin # /opt/lib/python2.4/posixpath.pyc matches /opt/lib/python2.4/posixpath.py import posixpath # precompiled from /opt/lib/python2.4/posixpath.pyc # /opt/lib/python2.4/stat.pyc matches /opt/lib/python2.4/stat.py import stat # precompiled from /opt/lib/python2.4/stat.pyc # /opt/lib/python2.4/UserDict.pyc matches /opt/lib/python2.4/UserDict.py import UserDict # precompiled from /opt/lib/python2.4/UserDict.pyc # /opt/lib/python2.4/copy_reg.pyc matches /opt/lib/python2.4/copy_reg.py import copy_reg # precompiled from /opt/lib/python2.4/copy_reg.pyc # /opt/lib/python2.4/types.pyc matches /opt/lib/python2.4/types.py import types # precompiled from /opt/lib/python2.4/types.pyc # /opt/lib/python2.4/warnings.pyc matches /opt/lib/python2.4/warnings.py import warnings # precompiled from /opt/lib/python2.4/warnings.pyc # /opt/lib/python2.4/linecache.pyc matches /opt/lib/python2.4/linecache.py import linecache # precompiled from /opt/lib/python2.4/linecache.pyc import encodings # directory /opt/lib/python2.4/encodings # /opt/lib/python2.4/encodings/__init__.pyc matches /opt/lib/python2.4/encodings/__init__.py import encodings # precompiled from /opt/lib/python2.4/encodings/__init__.pyc # /opt/lib/python2.4/codecs.pyc matches /opt/lib/python2.4/codecs.py import codecs # precompiled from /opt/lib/python2.4/codecs.pyc import _codecs # builtin # /opt/lib/python2.4/encodings/aliases.pyc matches /opt/lib/python2.4/encodings/aliases.py import encodings.aliases # precompiled from /opt/lib/python2.4/encodings/aliases.pyc # /opt/lib/python2.4/encodings/ascii.pyc matches /opt/lib/python2.4/encodings/ascii.py import encodings.ascii # precompiled from /opt/lib/python2.4/encodings/ascii.pyc Python 2.4.2 (#1, Feb 27 2006, 22:13:40) [GCC 3.2.3 with Broadcom modifications] on linux2 Type "help", "copyright", "credits" or "license" for more information. hello, world 3.2 # clear __builtin__._ # clear sys.path # clear sys.argv # clear sys.ps1 # clear sys.ps2 # clear sys.exitfunc # clear sys.exc_type # clear sys.exc_value # clear sys.exc_traceback # clear sys.last_type # clear sys.last_value # clear sys.last_traceback # clear sys.path_hooks # clear sys.path_importer_cache # clear sys.meta_path # restore sys.stdin # restore sys.stdout # restore sys.stderr # cleanup __main__ # cleanup[1] site # cleanup[1] encodings # cleanup[1] _codecs # cleanup[1] zipimport # cleanup[1] warnings # cleanup[1] encodings.ascii # cleanup[1] codecs # cleanup[1] types # cleanup[1] signal # cleanup[1] linecache # cleanup[1] posix # cleanup[1] encodings.aliases # cleanup[1] exceptions # cleanup[2] copy_reg # cleanup[2] posixpath # cleanup[2] os.path # cleanup[2] stat # cleanup[2] UserDict # cleanup[2] os # cleanup sys # cleanup __builtin__ # cleanup ints: 7 unfreed ints in 1 out of 3 blocks # cleanup floats