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. Since extension-typed attributes can't be written to directly from Python, there's no equivalent of the "not None" mechanism for them. Instead you can use a property whose setter function declares its argument appropriately. -- Greg _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
