Re: Adding an object to the global namespace through f_globals is that allowed ?

2009-07-05 Thread Stef Mientki
Terry Reedy wrote: Stef Mientki wrote: 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

Re: Adding an object to the global namespace through f_globals is that allowed ?

2009-07-03 Thread Chris Rebert
On Fri, Jul 3, 2009 at 1:07 AM, Stef Mientkistef.mien...@gmail.com wrote: ryles wrote: On Jul 2, 1:25 am, Terry Reedy tjre...@udel.edu wrote: 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

Re: Adding an object to the global namespace through f_globals is that allowed ?

2009-07-03 Thread Bruno Desthuilliers
Stef Mientki a écrit : 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

Re: Adding an object to the global namespace through f_globals is that allowed ?

2009-07-02 Thread ryles
On Jul 2, 1:25 am, Terry Reedy tjre...@udel.edu wrote: 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 [

Re: Adding an object to the global namespace through f_globals is that allowed ?

2009-07-01 Thread Terry Reedy
Stef Mientki wrote: 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