On Thu, Aug 05, 2004 at 02:57:14PM +0900 or thereabouts, Stephen J. Turnbull wrote:
> IIRC the lack of definition of Boolean constants is a problem specific > to 2.3.2, and all you have to do is define True and False to 1 and 0 > respectively somewhere in the startup. I'm not sure if the mm_cfg is > early enough. This is defined in almost every .py file, but this specific text is from Defaults.py: # Some convenient constants try: True, False except NameError: True = 1 False = 0 Yes = yes = On = on = True No = no = Off = off = False > This isn't reliable information, OTOH only requires adding two lines > and if it works, at least you can get started. I had tried adding True = 1 in the last mentioned .py (I'm not a python person at all) and it didn't seem to help one bit. > FYI, I run Debian unstable and have never had a problem. However, on > my mail host, I have gotten rid of everything I don't need and make > sure I keep copies of the most recent known working .debs. Haven't > had to use them yet in the 2.5 years since I started this policy. I can't find a 2.3.4 or a 2.3.3 .deb so I just compiled Python from scratch and sym linked /usr/bin/python to the 2.3.4 version in /usr/local/bin/python. Why would this still be an issue if I'm running 2.3.4? python -v confirms it: [EMAIL PROTECTED]:~$ python -v # installing zipimport hook import zipimport # builtin # installed zipimport hook # /usr/local/lib/python2.3/site.pyc matches /usr/local/lib/python2.3/site.py import site # precompiled from /usr/local/lib/python2.3/site.pyc # /usr/local/lib/python2.3/os.pyc matches /usr/local/lib/python2.3/os.py import os # precompiled from /usr/local/lib/python2.3/os.pyc import posix # builtin # /usr/local/lib/python2.3/posixpath.pyc matches /usr/local/lib/python2.3/posixpath.py import posixpath # precompiled from /usr/local/lib/python2.3/posixpath.pyc # /usr/local/lib/python2.3/stat.pyc matches /usr/local/lib/python2.3/stat.py import stat # precompiled from /usr/local/lib/python2.3/stat.pyc # /usr/local/lib/python2.3/UserDict.pyc matches /usr/local/lib/python2.3/UserDict.py import UserDict # precompiled from /usr/local/lib/python2.3/UserDict.pyc # /usr/local/lib/python2.3/copy_reg.pyc matches /usr/local/lib/python2.3/copy_reg.py import copy_reg # precompiled from /usr/local/lib/python2.3/copy_reg.pyc # /usr/local/lib/python2.3/types.pyc matches /usr/local/lib/python2.3/types.py import types # precompiled from /usr/local/lib/python2.3/types.pyc # /usr/local/lib/python2.3/warnings.pyc matches /usr/local/lib/python2.3/warnings.py import warnings # precompiled from /usr/local/lib/python2.3/warnings.pyc # /usr/local/lib/python2.3/linecache.pyc matches /usr/local/lib/python2.3/linecache.py import linecache # precompiled from /usr/local/lib/python2.3/linecache.pyc import encodings # directory /usr/local/lib/python2.3/encodings # /usr/local/lib/python2.3/encodings/__init__.pyc matches /usr/local/lib/python2.3/encodings/__init__.py import encodings # precompiled from /usr/local/lib/python2.3/encodings/__init__.pyc # /usr/local/lib/python2.3/codecs.pyc matches /usr/local/lib/python2.3/codecs.py import codecs # precompiled from /usr/local/lib/python2.3/codecs.pyc import _codecs # builtin # /usr/local/lib/python2.3/encodings/aliases.pyc matches /usr/local/lib/python2.3/encodings/aliases.py import encodings.aliases # precompiled from /usr/local/lib/python2.3/encodings/aliases.pyc # /usr/local/lib/python2.3/encodings/ascii.pyc matches /usr/local/lib/python2.3/encodings/ascii.py import encodings.ascii # precompiled from /usr/local/lib/python2.3/encodings/ascii.pyc Python 2.3.4 (#1, Aug 4 2004, 23:33:28) [GCC 2.95.4 20011002 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. dlopen("/usr/local/lib/python2.3/lib-dynload/readline.so", 2); import readline # dynamically loaded from /usr/local/lib/python2.3/lib-dynload/readline.so >>> Help? :-) -Jeff ------------------------------------------------------ Mailman-Users mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/