diff options
| author | Jordan Wiens <jordan@psifertex.com> | 2020-05-15 16:13:14 -0400 |
|---|---|---|
| committer | Jordan Wiens <jordan@psifertex.com> | 2020-05-15 16:13:14 -0400 |
| commit | c3629f7cc5d495b915948d4f2cce605d640a6bcc (patch) | |
| tree | 2e51b0f441c8e7b632b1f0f4e3e1aff21f0f3184 /python/binaryview.py | |
| parent | 2c433e500ab45a27bd52499608a9b07d1ae83e4d (diff) | |
documentation improvements to remove_user_function and remove_function
Diffstat (limited to 'python/binaryview.py')
| -rw-r--r-- | python/binaryview.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/python/binaryview.py b/python/binaryview.py index 0f747232..6c0f5c4d 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -2883,6 +2883,8 @@ class BinaryView(object): """ ``remove_function`` removes the function ``func`` from the list of functions + .. warning: This method should only be used when the function that is removed is expected to re-appear after any other analysis executes that could re-add it. Most users will want to use :func:`remove_user_function` in their scripts. + :param Function func: a Function object. :rtype: None :Example: @@ -2915,7 +2917,9 @@ class BinaryView(object): def remove_user_function(self, func): """ - ``remove_user_function`` removes the *user* function ``func`` from the list of functions + ``remove_user_function`` removes the function ``func`` from the list of functions as a user action. + + .. note:: This API will prevent the function from being re-created if any analysis later triggers that would re-add it, unlike :func:`remove_function`. :param Function func: a Function object. :rtype: None |
