Thu, 27 May 2010 10:21:14 -0600, Charles R Harris wrote: [clip] > Maybe an enhancement ticket. The NotImplemented return is appropriate > for some functions, but for functions with a single argument we should > probably raise an error.
A NotImplemented value leaking to the the user is a bug. The function should raise a ValueError instead. NotImplemented is meant only for use as a placeholder singleton in implementation of rich comparison operations etc., and we shouldn't introduce any new meanings IMHO. -- Pauli Virtanen _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion