type narrowing for cdef methods
authorRobert Bradshaw <robertwb@math.washington.edu>
Fri, 1 Jun 2007 00:47:16 +0000 (17:47 -0700)
committerRobert Bradshaw <robertwb@math.washington.edu>
Fri, 1 Jun 2007 00:47:16 +0000 (17:47 -0700)
commitcbd2a528f2fd5df13242d2513c53975281dbc234
tree8879b5c62128b4771e35bcab56a0fe84187ce1a3
parent7fbdbd53085cc912c029f8a853f818de24dae6d2
type narrowing for cdef methods

Now if you inherit cdef methods from another class, you may re-declare the
arguments and return variables to be sub-types of the original declared type.
This will be especially convenient for the SAGE arithmetic architecture.
Type-checking is performed if necessary.
Cython/Compiler/Nodes.py
Cython/Compiler/PyrexTypes.py
Cython/Compiler/Symtab.py