[issue13980] getcwd problem does not return cwd

2012-02-09 Thread R. David Murray
R. David Murray added the comment: That's just how function definitions in Python work. The prototype is evaluated when the function is defined, not when it is run, so the default value of path will always be the value of getcwd at the time the function *defintion* is done (which will genera

[issue13980] getcwd problem does not return cwd

2012-02-09 Thread fif0
Changes by fif0 : -- title: getcwd problem -> getcwd problem does not return cwd ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue13980] getcwd problem

2012-02-09 Thread fif0
New submission from fif0 : Please take a look at the detached file. At the first call of the methode foo(), path and the second getcwd are the same. After the directory change, the default value path is not the the current working directory. -- components: Interpreter Core files: mayb