Пример #1
0
def __define_method(hs, method_name):
    from hotspotter import HotSpotterAPI as api
    api.rrr()
    method_name = 'cx2_tnx'
    hs.__dict__[method_name] = lambda *args: api.__dict__['_' + method_name](hs, *args)
Пример #2
0
def __define_method(hs, method_name):
    from hotspotter import HotSpotterAPI as api
    api.rrr()
    method_name = 'cx2_tnx'
    hs.__dict__[method_name] = lambda *args: api.__dict__['_' + method_name](
        hs, *args)