Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
fslpy
Commits
5634900f
Commit
5634900f
authored
Jan 31, 2018
by
Paul McCarthy
🚵
Browse files
Don't know why I didn't add this originally. WeakFunctionRef instance can be
called() to get the function.
parent
270318bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
fsl/utils/weakfuncref.py
View file @
5634900f
...
...
@@ -132,6 +132,11 @@ class WeakFunctionRef(object):
return
None
def
__call__
(
self
):
"""See :meth:``function``. """
return
self
.
function
()
def
function
(
self
):
"""Return a reference to the encapsulated function or method,
or ``None`` if the function has been garbage collected.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment