Lisandro Dalcin, 15.04.2010 18:26:
> On 15 April 2010 13:23, Christopher Barker wrote:
>> One more thought:
>>
>>>>> def func(object obj not None):
>>>
>>> This is basically nonsense -- None is an object
>
> I think Christopher has a very valid point.
It doesn't matter, though. If the code says
def func(object obj not None):
then it is clear that None should not be allowed, which may or may not make
sense in a given situation. It certainly doesn't hurt anyone, so why should
we actively keep users from doing this?
Stefan
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev