MCPcopy Index your code
hub / github.com/RustPython/RustPython / __py_new

Function __py_new

Lib/hashlib.py:144–149  ·  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

142
143
144def __py_new(name, *args, **kwargs):
145 """new(name, data=b'', **kwargs) - Return a new hashing object using the
146 named algorithm; optionally initialized with data (which must be
147 a bytes-like object).
148 """
149 return __get_builtin_constructor(name)(*args, **kwargs)
150
151
152def __hash_new(name, *args, **kwargs):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected