
Nov. 11, 2022
6:06 p.m.
Hi Sebastian, On Fri, Nov 11, 2022, at 05:46, Sebastian Berg wrote:
I would suggest introducing `np.exceptions`.
We already have custom errors and warnings:
* AxisError * TooHardError (used by `np.shares_memory()`) * ComplexWarning * RankWarning * VisibleDeprecationWarning * ModuleDeprecationWarning (not sure what this is)
At first glance, grouping these classes, mainly used internally, into a namespace makes sense to me. We also now have the ability to keep them exposed in their old locations for backward compatibility, while not showing them in __all__ and __dir__ (but not even sure that's 100% necessary?). Stéfan