<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>Uwe Schmitt schrieb:</tt>
<blockquote cite="mid:491D6AD3.3070202@mineway.de" type="cite">
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<tt>Uwe Schmitt schrieb:</tt>
<blockquote cite="mid:491D3D67.30105@mineway.de" type="cite">
<meta content="text/html;charset=ISO-8859-1"
http-equiv="Content-Type">
<tt></tt><tt><br>
Good news: the problem disappeared after upgrading to Cython 0.10,<br>
</tt></blockquote>
<tt><br>
</tt><tt>Bad news: the error occured again, I do not know what
happens..<br>
<br>
I'm using "print SVDVersion"<br>
and "print SVDVerbosity" which are translated as follows:<br>
<br>
</tt></blockquote>
<tt>I depends on the usage ov SVDVerbosity: If I just read the variable
I get:<br>
<br>
</tt>
<blockquote><tt> /*
"C:\cygwin\home\uschmitt\workspace_eclipse_ganymede\PySVDLIB\src\svdlibc.pyx":157</tt><br>
<tt> * cdef SMat As</tt><br>
<tt> * #SVDVerbosity = 0</tt><br>
<tt> * print SVDVerbosity #
<<<<<<<<<<<<<<</tt><br>
<tt> * </tt><br>
<tt> * if isinstance(A, scipy.sparse.spmatrix):</tt><br>
<tt> */</tt><br>
<tt> __pyx_1 = PyInt_FromLong(SVDVerbosity); if (unlikely(!__pyx_1))
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 157; __pyx_clineno =
__LINE__; goto __pyx_L1_error;}</tt><br>
<tt> __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2))
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 157; __pyx_clineno =
__LINE__; goto __pyx_L1_error;}</tt><br>
<tt> PyTuple_SET_ITEM(__pyx_2, 0, __pyx_1);</tt><br>
<tt> __pyx_1 = 0;</tt><br>
<tt> if (__Pyx_Print(((PyObject *)__pyx_2), 1) < 0)
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 157; __pyx_clineno =
__LINE__; goto __pyx_L1_error;}</tt><br>
<tt> Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;</tt><br>
</blockquote>
<tt>As soon as I add one line setting SVDVerbosity, I get:<br>
<br>
</tt>
<blockquote><tt> /*
"C:\cygwin\home\uschmitt\workspace_eclipse_ganymede\PySVDLIB\src\svdlibc.pyx":158</tt><br>
<tt> * cdef SMat As</tt><br>
<tt> * </tt><br>
<tt> * SVDVerbosity = 0 #
<<<<<<<<<<<<<<</tt><br>
<tt> * print SVDVerbosity</tt><br>
<tt> * </tt><br>
<tt> */</tt><br>
<tt> Py_INCREF(__pyx_int_0);</tt><br>
<tt> Py_DECREF(__pyx_v_SVDVerbosity);</tt><br>
<tt> __pyx_v_SVDVerbosity = __pyx_int_0;</tt><br>
<br>
<tt> /*
"C:\cygwin\home\uschmitt\workspace_eclipse_ganymede\PySVDLIB\src\svdlibc.pyx":159</tt><br>
<tt> * </tt><br>
<tt> * SVDVerbosity = 0</tt><br>
<tt> * print SVDVerbosity #
<<<<<<<<<<<<<<</tt><br>
<tt> * </tt><br>
<tt> * </tt><br>
<tt> */</tt><br>
<tt> __pyx_1 = PyTuple_New(1); if (unlikely(!__pyx_1))
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 159; __pyx_clineno =
__LINE__; goto __pyx_L1_error;}</tt><br>
<tt> Py_INCREF(__pyx_v_SVDVerbosity);</tt><br>
<tt> PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_SVDVerbosity);</tt><br>
<tt> if (__Pyx_Print(((PyObject *)__pyx_1), 1) < 0)
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 159; __pyx_clineno =
__LINE__; goto __pyx_L1_error;}</tt><br>
<tt> Py_DECREF(((PyObject *)__pyx_1)); __pyx_1 = 0;</tt><br>
</blockquote>
<tt>Greetings, Uwe<br>
<br>
</tt><tt>PS: Thanks for developing Cython, it is a great tool !<br>
<br>
</tt>
<pre class="moz-signature" cols="72"><tt>--
Dr. rer. nat. Uwe Schmitt
F&E Mathematik
mineway GmbH
Science Park 2
D-66123 Saarbrücken
Telefon: +49 (0)681 8390 5334
Telefax: +49 (0)681 830 4376
<a class="moz-txt-link-abbreviated" href="mailto:uschmitt@mineway.de">uschmitt@mineway.de</a>
<a class="moz-txt-link-abbreviated" href="http://www.mineway.de">www.mineway.de</a>
Geschäftsführung: Dr.-Ing. Mathias Bauer
Amtsgericht Saarbrücken HRB 12339
</tt></pre>
</body>
</html>