Message88566
Default args are evaluated when the module is imported, if the arg is a
function call, the function is called.
You can see how the file is created just after the import, you don't
even need to call help().
This behavior is documented here:
http://docs.python.org/tutorial/controlflow.html#default-argument-values
The doc doesn't mention explicitly function calls, that could be added. |
|
Date |
User |
Action |
Args |
2009-05-30 06:55:23 | ezio.melotti | set | recipients:
+ ezio.melotti, georg.brandl, imiers1 |
2009-05-30 06:55:23 | ezio.melotti | set | messageid: <1243666523.39.0.530214151659.issue6148@psf.upfronthosting.co.za> |
2009-05-30 06:55:22 | ezio.melotti | link | issue6148 messages |
2009-05-30 06:55:21 | ezio.melotti | create | |
|