diff options
| author | Mattias Andrée <maandree@operamail.com> | 2014-03-07 17:27:55 +0100 |
|---|---|---|
| committer | Mattias Andrée <maandree@operamail.com> | 2014-03-07 17:27:55 +0100 |
| commit | 1d4b341900edffae8a04b0d91402d4c136bfb596 (patch) | |
| tree | 1d24a4a0eee694d72cbf0ac730cfa5a285f39800 /src/join.py | |
| parent | add fsignal (diff) | |
| download | join-python-1d4b341900edffae8a04b0d91402d4c136bfb596.tar.gz join-python-1d4b341900edffae8a04b0d91402d4c136bfb596.tar.bz2 join-python-1d4b341900edffae8a04b0d91402d4c136bfb596.tar.xz | |
add joinmethod
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/join.py')
| -rw-r--r-- | src/join.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/join.py b/src/join.py index a873bf4..a79d32c 100644 --- a/src/join.py +++ b/src/join.py @@ -223,3 +223,14 @@ def concurrently(*fs): for t in ts: t.join() + + +def joinmethod(f): + ''' + Make a fragment of signal an instance method rather than a static method + + @param f:(self, *..., **...)→¿R? The static method + @return f:(self, *..., **...)→¿R? The method made into a instance method + ''' + return lambda self, *args, **kwargs : f(self, *args, **kwargs) + |
