vars(os) starts help in ActivePython!!!

Keith Farmer kfarmer at
Mon Feb 25 08:57:04 CET 2002

Not ActiveState -- regular Win32 install:

Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.

Python 2.2 (#28, Dec 21 2001, 12:21:22) [MSC 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.

Here's one symptom I noticed (in the copyright entry .. also in the license,
you'll see):

 <class exceptions.AssertionError at 0x00881490>, 'TypeError': <class
.TypeError at 0x0087E868>, 'copyright': Copyright (c) 2001 Python Software
All Rights Reserved.

Copyright (c) 2000
All Rights Reserved.

Copyright (c) 1995-2001 Corporation for National Research Initiatives.
All Rights Reserved.

Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.
All Rights Reserved., 'license': Type license() to see the full license
text, 'c
lassmethod': <type 'classmethod'>, 'KeyboardInterrupt': <class
rdInterrupt at 0x0087ED50>, 'UserWarning': <class exceptions.UserWarning at

What I ended up noticing was that the way the dict gets handled seems to
execute the value under certain conditions which I didn't bother to
investigate further.  In PyCrust (before Patrick made his corrections, which
I haven't tried out), I was able to cause my program to exit by inserting a
reference to the exit function into the namespace and then print it out.

However, the excerpt above doesn't come from PyCrust -- it was from the
command line interpreter.

I'm running Win2k SP2.

Keith J. Farmer
kfarmer at

"Magnus Lyckå" <magnus at> wrote in message
news:258fd9b8.0202200150.1b4e53de at
> "Keith Farmer" <kfarmer at> wrote in message
news:<x7Cc8.2126$RJ4.246925423 at>...

> Running a non-ActiveState version of Python?

More information about the Python-list mailing list