Is this normal behaviour? ERROR:root:An unexpected error occurred while tokenizing input The following traceback may be corrupted or invalid The error message is: ('EOF in multi-line string', (1, 0))
I guess I can just do sage: cython(''' ....: c = 2 ....: try: ....: if c == 2: ....: raise IndexError() ....: except: ....: print 'error caught' ....: ''') error caught which solves my problem Am Mittwoch, 13. Februar 2019 11:21:32 UTC+1 schrieb Jeroen Demeyer: > > On 2019-02-13 11:02, jonathan.kliem via sage-devel wrote: > > I'm getting a strange error when raising an error in cython(), example: > > I don't really understand your problem. You ask Cython to raise an > exception and the exception is raised. It seems like Cython is doing > exactly what it's supposed to do. > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.