Generarl programming question.

Thomas 'PointedEars' Lahn PointedEars at
Sat Apr 11 18:23:33 CEST 2015

Chris Angelico wrote:

> The 'x' inside each function is completely separate, no matter how
> many times they get called. They're usually stored on something called
> a "call stack" - you put another sheet of paper on top of the stack
> every time you call a function, local variables are all written on
> that paper, and when you return from a function, you discard the top
> sheet and see what's underneath.

Thank you for that description; I shall use it from now on when teaching 
laymen about the call stack.


Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.

More information about the Python-list mailing list