Dag Sverre Seljebotn wrote:

> Also there's the big advantage of allowing code like
> 
> def f(MyClass arg=None):
>     if arg is None:
>         arg = new_default_instance()
>     print arg.x

Hmmm, that's a point. Seems like it should be easy enough to
recognise a default value of None and take it as implying
'or None'. I'll add it to my list...

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

Reply via email to