On Wed, 10 Dec 2008 20:16:56 -0000, JD <[EMAIL PROTECTED]> wrote:
I got a iterated function like this:
def iterSomething(list):
has_something = False
for cell in list:
if something in cell:
has_something = True
output = something
if has_something:
iterSomething(output)
else:
final_out = outupt
The problem is how can I read this final_out outside of the function.
I tried the global statement, it seems not work. Any idea?
Isn't this going to throw an exception anyway if 'something' doesn't
appear in 'list'? You try assigning 'output' to 'final_out' with no
guarantee that 'output' has ever been assigned to.
--
Rhodri James *-* Wildebeeste Herder to the Masses
--
http://mail.python.org/mailman/listinfo/python-list