S
Stef Mientki
hello,
I need to add an object's name to the global namespace.
The reason for this is to create an environment,
where you can add some kind of math environment,
where no need for Python knowledge is needed.
The next statement works,
but I'm not sure if it will have any dramatical side effects,
other than overruling a possible object with the name A
def some_function ( ...) :
A = object ( ...)
sys._getframe(1).f_globals [ Name ] = A
thanks,
Stef Mientki
I need to add an object's name to the global namespace.
The reason for this is to create an environment,
where you can add some kind of math environment,
where no need for Python knowledge is needed.
The next statement works,
but I'm not sure if it will have any dramatical side effects,
other than overruling a possible object with the name A
def some_function ( ...) :
A = object ( ...)
sys._getframe(1).f_globals [ Name ] = A
thanks,
Stef Mientki