[Mailman-Developers] Python 1.5 compatible ? no!
Barry A. Warsaw
bwarsaw@cnri.reston.va.us (Barry A. Warsaw)
Wed, 2 Sep 1998 17:36:41 -0400 (EDT)
>>>>> "CT" == Christian Tismer <tismer@appliedbiometrics.com> writes:
CT> This is not true. This version will not even run with a
CT> standard 1.5.1 Python.
CT> Killer#1: The parameter-less "raise" statement is no 1.5.1
CT> feature.
CT> Killer#2: The __stdin__ and other underscored system
CT> file names are no Python 1.5 features.
Chris, I tried both of these under our vanilla 1.5.1 release:
-------------------- snip snip --------------------
Python 1.5.1 (#21, Apr 23 1998, 18:08:12) [GCC 2.8.1] on sunos5
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import sys
>>> sys.__stdin__
<open file '<stdin>', mode 'r' at bb878>
>>> try: 1/0
... except ZeroDivisionError: raise
...
Traceback (innermost last):
File "<stdin>", line 1, in ?
ZeroDivisionError: integer division or modulo
>>>
This together makes the "scripts/driver" file die very early, with
a confusing error message.
In the driver script, I inserted this before any code:
try:
import sys
sys.__stdin__
except:
sys.__stdin__=sys.stdin
sys.__stdout__=sys.stdout
sys.__stderr__=sys.stderr
.. Uhm, I'm hacking since 6 hours now, but don't get the list admin
running under Linux. I fear I will turn back to 0.95 which worked.
tired - pirx
--
Christian Tismer :^) <mailto:tismer@appliedbiometrics.com>
Applied Biometrics GmbH : Have a break! Take a ride on Python's
Kaiserin-Augusta-Allee 101 : *Starship* http://starship.skyport.net
10553 Berlin : PGP key -> http://pgpkeys.mit.edu
we're tired of banana software - shipped green, ripens at home
_______________________________________________
Mailman-Developers maillist - Mailman-Developers@python.org
http://www.python.org/mailman/listinfo/mailman-developers