Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ newfunc
Method
newfunc
numpy/lib/utils.py:142–144 ·
view source on GitHub ↗
(*args, **kwds)
Source
from the content-addressed store, hash-verified
140
141
@functools.wraps(func)
142
def
newfunc(*args, **kwds):
143
warnings.warn(depdoc, DeprecationWarning, stacklevel=2)
144
return
func(*args, **kwds)
145
146
newfunc.__name__ = old_name
147
doc = func.__doc__
Callers
nothing calls this directly
Calls
2
warn
Method · 0.80
func
Function · 0.70
Tested by
no test coverage detected