MCPcopy Create free account
hub / github.com/numpy/numpy / __init__

Method __init__

numpy/exceptions.py:165–174  ·  view source on GitHub ↗
(self, axis, ndim=None, msg_prefix=None)

Source from the content-addressed store, hash-verified

163 __slots__ = ("axis", "ndim", "_msg")
164
165 def __init__(self, axis, ndim=None, msg_prefix=None):
166 if ndim is msg_prefix is None:
167 # single-argument form: directly set the error message
168 self._msg = axis
169 self.axis = None
170 self.ndim = None
171 else:
172 self._msg = msg_prefix
173 self.axis = axis
174 self.ndim = ndim
175
176 def __str__(self):
177 axis = self.axis

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected