On Aug 11, 2009, at 5:33 PM, Greg Ewing wrote:

> Robert Bradshaw wrote:
>
>>    - This handles function arguments. Extension type fields, local
>> variables, and global variables still have the same issue that a  
>> coder
>> needs to be aware of (for the moment).
>
> The Pyrex philosophy on this is that the None checks are
> for the purpose of protecting against abuse from Python
> code. Once inside Pyrex, it's the Pyrex programmer's
> responsibility to avoid dereferencing None values.

Yep, this is one of the areas where we have different philosophies.  
The Cython philosophy is that one should be able to take a piece of  
Python code, compile it with Cython, maybe sprinkle in some static  
type declarations, and the behavior should be essentially the same  
(except it should run faster of course :). Programming Cython should  
be as easy as programming Python, and we'd like to minimize the  
overhead of "shifting gears" when going back and forth between the  
two. We're not there yet.

- Robert

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to