Lisandro Dalcin, 15.04.2010 16:30:
> Sorry, I'm a bit confused... Does this means that this code:
>
> # cython: allow_none_for_extension_args=False
> def func(obj): pass
>
> then I call "func(None)" from Python code and get and exception??

No it doesn't.  NoneType is a subtype of object, so None will always be a 
valid argument for a plain Python object parameter, regardless of the 
directive.

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

Reply via email to