[Cython] [mailinglist] Re: problems with external data
Uwe Schmitt
uschmitt at mineway.de
Fri Nov 14 13:33:27 CET 2008
Stefan Behnel schrieb:
> Hmm, your code example is not very complete. An educated guess is that the
> above code occurs inside a function, and the assignment to SVDVerbosity
> makes it a local variable (normal Python behaviour). Since it hasn't been
> declared, it has the normal Python object type.
Ok, that is the reason. Changing
SVDVerbosity = 0
to
cdef extern long SVDVerbosity = 0
helps.
I posted more information before I read your answer,
so please forget this other mail.
>
> I have no idea why you do this assignment, though. As I said, you could
> help us in helping you by providing a relevant section of your code.
The reason is that I am interfacing external C code where
the verbosity of its output is controlled by this global
variable. Not nice, but I have to live with it.
Greetings & Thanks,
Uwe
>
> Stefan
>
> _______________________________________________
> Cython-dev mailing list
> Cython-dev at codespeak.net
> http://codespeak.net/mailman/listinfo/cython-dev
>
--
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
uschmitt at mineway.de
www.mineway.de
Geschäftsführung: Dr.-Ing. Mathias Bauer
Amtsgericht Saarbrücken HRB 12339
More information about the Cython-dev
mailing list