[Tutor] Trying to find a value in a function.

D2 borelan@wanadoo.fr
Mon Mar 10 12:11:22 2003


I'm trying to find a value in a fonction given the name of the function
and the name of the variable.
The variable is not an attribute nor an argument.

Here is the function

---------
def some_func(self):
	props=['a', 'b', 'c']
---------

I tried to use some_func.func_code.co_varnames but it only returned the
tuple below.

---------
('self', '_props')
---------

How can i get the value of the _props variable ?

TIA