Re: [Numpy-discussion] Adding more detailed exception types to numpy

2019-01-04 Thread Marten van Kerkwijk
Since numpy generally does not expose parts as modules, I think a separate namespace for the exceptions makes sense. I prefer `np.exceptions` over `np.errors`. It might still make sense for that namespace to import from the different parts, i.e., also have `np.core.exceptions`,

Re: [Numpy-discussion] Adding more detailed exception types to numpy

2019-01-04 Thread Stephan Hoyer
On Fri, Jan 4, 2019 at 8:18 AM Eric Wieser wrote: > PR #12593 adds a handful of > new exception types for . Some consequences of this change are that: > >1. The string formatting is moved to python, allowing us to give >better error messages

[Numpy-discussion] Adding more detailed exception types to numpy

2019-01-04 Thread Eric Wieser
PR #12593 adds a handful of new exception types for . Some consequences of this change are that: 1. The string formatting is moved to python, allowing us to give better error messages without a lot of work 2. The formatting is dispatched