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

Method bind

Lib/inspect.py:3230–3235  ·  view source on GitHub ↗

Get a BoundArguments object, that maps the passed `args` and `kwargs` to the function's signature. Raises `TypeError` if the passed arguments can not be bound.

(self, /, *args, **kwargs)

Source from the content-addressed store, hash-verified

3228 return self._bound_arguments_cls(self, arguments)
3229
3230 def bind(self, /, *args, **kwargs):
3231 """Get a BoundArguments object, that maps the passed `args`
3232 and `kwargs` to the function's signature. Raises `TypeError`
3233 if the passed arguments can not be bound.
3234 """
3235 return self._bind(args, kwargs)
3236
3237 def bind_partial(self, /, *args, **kwargs):
3238 """Get a BoundArguments object, that partially maps the

Callers 6

_fallback_socketpairFunction · 0.45
create_connectionFunction · 0.45
create_serverFunction · 0.45
server_bindMethod · 0.45
stdlib_select.pyFile · 0.45
stdlib_socket.pyFile · 0.45

Calls 1

_bindMethod · 0.95

Tested by

no test coverage detected