Practice
Access to Practice macros is provided by the PracticeService class. Each debugger has its own instance, which can be used through its practice attribute.
Macros set via Remote API are global and pose as a Link between Practice and Python. Therefore hybrid solutions may be formed by for example setting practice macros before executing a python script, reading them at the beginning and writing the results back to macros.
Writing Macro
>>> dbg.practice.set_macro("¯oName", "0x1234")
Reading Macro
>>> macro = dbg.practice.get_macro("¯oName")
>>> print(macro.value)