[EMAIL PROTECTED] wrote: > But .... I'm suffering from serious scoping bugs. I hope someone here > can help me with them. > > First of all, if I type in something like; > > def f(x): > if x==1: > return x > else: > return x * f(x-1) > > and then go > print f(5) > > I get an error. It says 'global name 'f' is not defined'. So > recursion won't work because of some odd scoping bug.
looks like the globals are all messed up. it would help to see the actual C code. </F> -- http://mail.python.org/mailman/listinfo/python-list