Jean-Francois Moulin wrote:
> Okay, you asked for it..., here is the full code
I didn't really ask for the "full" code. It's rather uncommon to post code
of that size to a mailing list, especially as (fragile) part of the
message body. Next time, please consider pasting it into a web site
(pastebin or whatever), or at least *attach* it to an e-mail, so that
people can safely safe it to a file.
In this specific case, the traceback would have been enough, or at least a
hint that you are using eval():
delay_line_C.ListModeFile.__init__ (delay_line.c:7367)
self.reader = eval('%s(\'%s\')'%(reader,self.fname))
File "<string>", line 1, in <module>
NameError: name 'LstFileReader_FAST' is not defined
Cython does not currently support globals(), which is used by eval()
internally. Any reason why you pass the class name as parameter instead of
the class itself?
Stefan
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev