Dag Sverre Seljebotn, 13.04.2010 08:19:
> 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
>
> without any "allow None".

Sorry, but that case is so trivial to handle implicitly that I can't see 
how this is supposed to be an argument against changing the default.

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

Reply via email to