Esempio n. 1
0
 def call(self, name, *a, **kw):
     return (
         Maybe.from_call(self.vim.call, name, *a, exc=NvimError, **kw)
         .to_either(lambda: 'vim call failed: {}'.format(
             format_funcall(name, a, kw)))
     )
Esempio n. 2
0
File: func.py Progetto: tek/tryp.py
 def __repr__(self):
     from tryp.anon import format_funcall
     rep = (format_funcall(self.name, self.f.args, self.f.keywords)
            if self._is_partial
            else '{}()'.format(self.name))
     return 'F({})'.format(rep)