[Cython] [Pyrex] Proposed change to behaviour of "not None"
Greg Ewing
greg.ewing at canterbury.ac.nz
Sat Aug 23 05:11:58 CEST 2008
Hoyt Koepke wrote:
> It strikes me that decorators would be a natural way of
> handling this
I don't think so, because the None/not None distinction is
a decision that needs to be made individually for each
parameter -- it's not a property of the function as a
whole.
> If part of the
> reason for switching the default is that writing "not None" for every
> argument is awkward
No, that's not part of the reason. The reason is that the
current default easily leads people to write buggy code.
--
Greg
More information about the Cython-dev
mailing list