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 _______________________________________________ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-le...@python.org https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ Member address: arch...@mail-archive.com