The macro selector dialog in the tools menu is failing to spot macros in python code when there is a global tuple assignment (A, B = 1, 2 for example). The macros will run (via keyboard shortcut made before offending assignment put in module) so the script provider find the macros, and converting the tuple assignment to two normal assignments unblinds the macro selector dialog.
Anyone else come across this behaviour? (tested in Calc only)
The full code that causes problems is
A, B = 1, 2
def myFunc():
c = 1
g_exportedScripts = myFunc,
Commenting out the tuple assignment makes the function visible. It is always callable.