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

Method bind

Lib/inspect.py:3237–3242  ·  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

3235 return self._bound_arguments_cls(self, arguments)
3236
3237 def bind(self, /, *args, **kwargs):
3238 """Get a BoundArguments object, that maps the passed `args`
3239 and `kwargs` to the function's signature. Raises `TypeError`
3240 if the passed arguments can not be bound.
3241 """
3242 return self._bind(args, kwargs)
3243
3244 def bind_partial(self, /, *args, **kwargs):
3245 """Get a BoundArguments object, that partially maps the

Callers 8

constructorMethod · 0.45
_fallback_socketpairFunction · 0.45
create_connectionFunction · 0.45
create_serverFunction · 0.45
server_bindMethod · 0.45
createWidgetsMethod · 0.45
showSelectedErrorMethod · 0.45
__init__Method · 0.45

Calls 1

_bindMethod · 0.95

Tested by 3

createWidgetsMethod · 0.36
showSelectedErrorMethod · 0.36
__init__Method · 0.36