Message152995
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 generally be the CWD when python starts, unless you are defining functions at runtime). |
|
Date |
User |
Action |
Args |
2012-02-09 22:40:51 | r.david.murray | set | recipients:
+ r.david.murray, fif0 |
2012-02-09 22:40:51 | r.david.murray | set | messageid: <1328827251.52.0.299973335773.issue13980@psf.upfronthosting.co.za> |
2012-02-09 22:40:50 | r.david.murray | link | issue13980 messages |
2012-02-09 22:40:50 | r.david.murray | create | |
|