From 2e47077a2b32184f6b021abd01150a4c669b759d Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Fri, 28 Jan 2022 11:00:19 -0500 Subject: Add additional unit tests for function.py Move calls to Free into finally blocks format function.py and api_test.py --- PythonAPIDocumentation.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'PythonAPIDocumentation.md') diff --git a/PythonAPIDocumentation.md b/PythonAPIDocumentation.md index 95e5e9dd..61f59251 100644 --- a/PythonAPIDocumentation.md +++ b/PythonAPIDocumentation.md @@ -155,10 +155,11 @@ DataVariable objects have been greatly enhanced in Binary Ninja 3.0. In the core Prior to 3.0 a frequent question was: "Through the API how do you set the name of a DataVariable?" The answer was always "You don't, instead create a symbol at that location." This is the same way function names are handled. Although this abstraction serves us well it doesn't make for an intuitive API, thus DataVariable now has a convenient method for setting the variables name and name. ```python -data_var = bv.get_data_var_at(here) -data_var.name -data_var.name = 'foobar' -data_var.name +>>> data_var = bv.get_data_var_at(here) +>>> data_var.name + +>>> data_var.name = 'foobar' +>>> data_var.name 'foobar' ``` Or if you prefer to give the DataVariable a more complete symbol. -- cgit v1.3.1