Perfect, this helped me a lot, thx! :)
--
http://mail.python.org/mailman/listinfo/python-list
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
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