Problems installing/using Python on Linux

Benny Rochwerger (rochwerg@ovid.cs.umass.edu)
9 Jan 1995 18:15:15 GMT

I've just installed python 1.1.1 on my linux box, and I noticed the
following problems:

make test cause a segmentation fault. I noticed that this
happens int the test_b2.py module in the statement :

pow(x,y,z)

when x = 2L, y=10, and z = 1000

Is this a known problem, or did I do something wrong in the build process
(all I did was enabling tkinter in Modules/Setup before make).

I also noticed a strange behavior while trying to use the 'getopts' module.
I wrote the following code (to file p.py):

#! /usr/local/bin/python
import sys,getopt
opts, args = getopt.getopt(sys.argv[1:],'q')
print opts

and then try to execute it like this:

> p.py -q

and got the python interpreter illegal option message. I tried the
same code at work (under SunOs) and it works fine.
Any ideas of what is wrong ?

Thanks in advance,

Benny Rochwerger.