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

Function wrapper

numpy/core/arrayprint.py:507–515  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

505
506 @functools.wraps(f)
507 def wrapper(self, *args, **kwargs):
508 key = id(self), get_ident()
509 if key in repr_running:
510 return fillvalue
511 repr_running.add(key)
512 try:
513 return f(self, *args, **kwargs)
514 finally:
515 repr_running.discard(key)
516
517 return wrapper
518

Callers

nothing calls this directly

Calls 2

fFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected