summaryrefslogtreecommitdiff
path: root/python/__init__.py
diff options
context:
space:
mode:
authorplafosse <peter@vector35.com>2016-08-22 01:26:07 +0100
committerplafosse <peter@vector35.com>2016-08-22 01:26:19 +0100
commit923b0b1aa9df85844c6002e1ffbbea3ba47e2b04 (patch)
treee56667c4be2e267a83b862d1529fb4368749d987 /python/__init__.py
parentc489e1972b1a178ba2a0a862755439d416a05950 (diff)
Updating documentation for _user_ functions
Diffstat (limited to 'python/__init__.py')
-rw-r--r--python/__init__.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/python/__init__.py b/python/__init__.py
index 0f57f651..69858d2e 100644
--- a/python/__init__.py
+++ b/python/__init__.py
@@ -889,9 +889,11 @@ class BinaryView(object):
externally. Additionanlly, methods which begin with ``perform_`` should not be called either and are
used explicitly for subclassing the BinaryView.
- Another important note is the ``*_user_*()`` methods. These methods are reserved for `undo-able` actions, and thus
- under most circumstances shouldn't be called by plugins, rather methods with the same name without ``_user_`` should
- be used (e.g. ``remove_function()`` rather than ``remove_user_function()``)
+ .. note:: An important note on the ``*_user_*()`` methods. Binary Ninja makes a distinction between edits \
+ performed by the user and actions performed by auto analysis. Auto analysis actions that can quickly be recalculated \
+ are not saved to the database. Auto analysis actions that take a long time and all user edits are stored in the \
+ database (e.g. ``remove_user_function()`` rather than ``remove_function()``). Thus use ``_user_`` methods if saving \
+ to the database is desired.
"""
name = None
long_name = None