Greg Ewing, 16.04.2010 04:03: > On 15/04/10 18:41, Stefan Behnel wrote: >> Robert Bradshaw, 15.04.2010 08:07: >>> The "object" >>> type is different is not really treated like an extension type. If >>> something is "[object] obj not None" then I think it should actually >>> reject None. > > That would make 'object' inconsistent with the new rule > that 'not None' is the default, unless you're going to > make 'or None' required for object arguments that can > be None, too.
Ah, right, very good catch. So the new default is not that "not None" applies, the new default is that the type check for a Python argument is strict. So None is a valid value for an 'object' typed argument, whereas it's not valid for some 'MyExtType' argument. I'll fix the CEP. Stefan _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
