Numeric Python and threads

David Ascher da at ski.org
Fri Sep 17 17:36:28 EDT 1999


On 16 Sep 1999, Victor S. Miller wrote:

> I've built Python 1.5.2 on a Solaris 2.6 system with GCC 2.8.1,
> enabling threads, Tkinter, and installed Numeric Python.  However,
> When I run some of the demo programs in NumTut I seem to hang up in
> some very strange places.  For example, if I fire up Python and then
> 
> import view
> import testview
> testview.x
> 
> This hangs up.  Are there any suggestions as to how I can track down
> this problem.  It got even worse in another version of python that I
> built enabling gnu readline.  Now, if I run view on any array, the
> next time I type a line interactively, python freezes up after about 3
> or 4 characters.

This is a bug in the NumTut package, not Numeric Python.  I thought I
fixed it, but apparently not.

A quick hack is to change the line
	
	_have_threads = 1

to
	_have_threads = 0

and it should work by using os.system() instead of the fancy-shmancy
threads.

Let me know either way.

--david ascher





More information about the Python-list mailing list