Lisandro Dalcin, 14.04.2010 17:52:
> On 14 April 2010 11:56, Stefan Behnel wrote:
>> Robert Bradshaw, 13.04.2010 19:44:
>>> OK, Here's what we're going to do:
>>>
>>> 1) We'll make a directive controlling the behavior of typed arguments.
>>> 2) We'll support the "or None" annotation, so the directive will be
>>> useful both directions.
>>
>> http://hg.cython.org/cython-devel/rev/5dfcb27621fe
>
> Tests?
Hmm, thanks for catching this. It looks like there is one important case
that I didn't consider. How should this behave:
def func(list L):
...
Should builtins continue to accept None or should it behave like other
extension types? For consistency, I think it should be for the latter, with
the obvious exception of "object".
Stefan
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev