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

Method __enter__

numpy/core/_ufunc_config.py:430–433  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

428 self.kwargs = kwargs
429
430 def __enter__(self):
431 self.oldstate = seterr(**self.kwargs)
432 if self.call is not _Unspecified:
433 self.oldcall = seterrcall(self.call)
434
435 def __exit__(self, *exc_info):
436 seterr(**self.oldstate)

Callers

nothing calls this directly

Calls 2

seterrFunction · 0.85
seterrcallFunction · 0.85

Tested by

no test coverage detected