From: Alan W. I. <ir...@be...> - 2001-12-29 21:37:48
|
The long-standing segfault problem with xw09 using python 2 disappears if I define pl_cont (and pl_shade) as static to make them consistent with what is done for the embedded examples in the python documentation. In the past with python 1.5 I didn't get segfaults, but I did have a number of instances of peculiar behaviour with pl_cont (contours would either be plotted or not with minor rearrangements of the wrapper code). Thus, I am hoping this static fix will address those problems as well. The static fix seems to have no effect on pl_shade, but there may have been trouble lurking for us there without that fix. In the next day or so I am going to be greatly extending the xw09 contour example so this should provide a pretty good test of whether our python contour problems are finally over or not. Does anybody here mind if I get rid of plmodule2.c and simply incorporate its lines of code into plmodule.c? The previous arrangement of separate compilation of plmodule.c and plmodule2.c wasn't working very well and was confusing. For now, I have returned to including plmodule2.c in plmodule.c, but as a final step I would like to simply incorporate its lines of code into plmodule.c rather than including it. Alan email: ir...@be... phone: 250-727-2902 FAX: 250-721-7715 snail-mail: Dr. Alan W. Irwin Department of Physics and Astronomy, University of Victoria, P.O. Box 3055, Victoria, British Columbia, Canada, V8W 3P6 __________________________ Linux-powered astrophysics __________________________ |