This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients fif0, r.david.murray
Date 2012-02-09.22:40:50
SpamBayes Score 0.0002823954
Marked as misclassified No
Message-id <1328827251.52.0.299973335773.issue13980@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
Date User Action Args
2012-02-09 22:40:51r.david.murraysetrecipients: + r.david.murray, fif0
2012-02-09 22:40:51r.david.murraysetmessageid: <1328827251.52.0.299973335773.issue13980@psf.upfronthosting.co.za>
2012-02-09 22:40:50r.david.murraylinkissue13980 messages
2012-02-09 22:40:50r.david.murraycreate