e_tempcast.pyx 204 Bytes
Newer Older
1
cdef object blarg
2

3 4 5 6 7
def foo(obj):
	cdef int *p
	p = <int *>blarg # okay
	p = <int *>(foo + blarg) # error - temporary
_ERRORS = u"""
Robert Bradshaw's avatar
Robert Bradshaw committed
8
6:5: Casting temporary Python object to non-numeric non-Python type
9
"""