Dag Sverre Seljebotn wrote:
> Christopher Barker wrote:
>> Dag Sverre Seljebotn wrote:
>>> (It would be great if this was added to the FAQ, it tends to come up a 
>>> lot.
>> Done:
>>
>> http://wiki.cython.org/FAQ#WhydoesafunctionthatIhaveprovidedcdef.27dparametertoacceptNone.3F
>>
>> Could someone check for accuracy?
>>
>>> Perhaps we should switch to making nonecheck the default?)
>> I'd rather have "not None" the default, but there is backwards 
>> compatibility to consider. Does the Cython project have any policy about 
>> deprecation procedures?
> 
> (Well, at least two people (myself and Robert) has opposed this being 
> the default (and not for reasons of backwards compatability!), so I 
> don't think we're at the stage where we can discuss deprecation just yet 
> :-))

In fact, I think I remember me and Robert discussing the possibility of 
deprecating the "not None" feature from Cython instead at some point 
(though I might be mistaken here). If a faster "nonecheck" was added 
then "not None" would be a really redundant part of the language.

So I wouldn't phrase the FAQ entry just like that myself, although the 
important thing is that something got added :-( Thanks! (If something 
comes out of this discussion and there's consensus for whether we should 
endorse "not None" or not in examples we can look at changing it, but 
I'll leave it as is now. Myself I tend to advocate adding an if-test in 
the function instead.)


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

Reply via email to