MCPcopy Index your code
hub / github.com/python/cpython / __py_new

Function __py_new

Lib/hashlib.py:162–167  ·  view source on GitHub ↗

new(name, data=b'', **kwargs) - Return a new hashing object using the named algorithm; optionally initialized with data (which must be a bytes-like object).

(name, *args, **kwargs)

Source from the content-addressed store, hash-verified

160
161
162def __py_new(name, *args, **kwargs):
163 """new(name, data=b'', **kwargs) - Return a new hashing object using the
164 named algorithm; optionally initialized with data (which must be
165 a bytes-like object).
166 """
167 return __get_builtin_constructor(name)(*args, **kwargs)
168
169
170def __hash_new(name, *args, **kwargs):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…