recursive methods require implementing a stack?

Random832 random832 at fastmail.com
Wed Apr 6 17:08:27 EDT 2016


On Wed, Apr 6, 2016, at 16:21, Charles T. Smith wrote:
> I just tried to write a recursive method in python - am I right that
> local
> variables are only lexically local scoped, so sub-instances have the same
> ones?  Is there a way out of that?  Do I have to push and pop my own
> simulated
> stack frame entry? 

No, and I'm not sure why you would think that.



More information about the Python-list mailing list