[Pyrex] Interpreting error messages

Greg Ewing greg at cosc.canterbury.ac.nz
Tue Apr 29 07:42:30 CEST 2003


Edward C. Jones" <edcjones at erols.com>:

> >> /.../silly.pyx:5:8: Casting temporary Python object to non-Python type
> >> /.../silly.pyx:6:22: Cannot convert 'void (*)' to Python object
>
> Not very useful error messages. I would prefer the Python "undefined 
> global variable" error.

You would have got one of those at run time if you'd got that
far. It's just that other things happened to go wrong first.

I've been thinking about providing an option for requiring all
identifiers to be declared. Would you find that helpful?

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg at cosc.canterbury.ac.nz	   +--------------------------------------+




More information about the Pyrex mailing list