def bind(object, method, function):
 setattr(object, method, new.instancemethod(function, object))

def bind ( object , method , function ) : setattr ( object , method , new . instancemethod ( function , object ) )
syntactic sugar for binding arbitrary kv pairs to a given logger instantiated from logging .