Message118100
When python sees the assignment "name = None", it assumes that 'name' is a local variable. This happens before any code is executed. It then sees that you're printing 'name' before it is assigned to, which is an error. It does not take into account the dynamic creation of the module level variable. |
|
Date |
User |
Action |
Args |
2010-10-07 11:31:53 | eric.smith | set | recipients:
+ eric.smith, ssc |
2010-10-07 11:31:52 | eric.smith | set | messageid: <1286451112.95.0.78255995703.issue10043@psf.upfronthosting.co.za> |
2010-10-07 11:31:49 | eric.smith | link | issue10043 messages |
2010-10-07 11:31:49 | eric.smith | create | |
|