Re: C-API: Get scope in function

2010-01-18 Thread moerchendiser2k3
Perfect, this helped me a lot, thx! :) -- http://mail.python.org/mailman/listinfo/python-list

Re: C-API: Get scope in function

2010-01-17 Thread Gabriel Genellina
En Sun, 17 Jan 2010 10:23:03 -0300, moerchendiser2k3 escribió: I have a small problem how to get the scope from a C-API function. Check out this code snippet: [code] variable = 3 def test(): print variable #output: 3 print globals() # ... 'variable': 3, ... test() [/code In my ca

C-API: Get scope in function

2010-01-17 Thread moerchendiser2k3
Hi, I have a small problem how to get the scope from a C-API function. Check out this code snippet: [code] variable = 3 def test(): print variable #output: 3 print globals() # ... 'variable': 3, ... test() [/code In my case I know there is a variable in the scope where this function i