MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / create_bound_method

Function create_bound_method

pager_lib/six.py:578–579  ·  view source on GitHub ↗
(func, obj)

Source from the content-addressed store, hash-verified

576 return unbound.im_func
577
578 def create_bound_method(func, obj):
579 return types.MethodType(func, obj, obj.__class__)
580
581 def create_unbound_method(func, cls):
582 return types.MethodType(func, None, cls)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected