Message151639
| Author |
michael.foord |
| Recipients |
benjamin.peterson, hippmr, michael.foord |
| Date |
2012年01月19日.16:07:00 |
| SpamBayes Score |
3.1322652e-05 |
| Marked as misclassified |
No |
| Message-id |
<1326989220.86.0.607950876749.issue13827@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
hippmr: the problem is that by importing SOMETHING inside that function you're creating a *local variable* called SOMETHING. If the override isn't executed, and SOMETHING isn't global, then that local variable doesn't exist - which is why you get that error.
So even if the import isn't executed, its existence in the function tells Python that name is local to the function. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年01月19日 16:07:01 | michael.foord | set | recipients:
+ michael.foord, benjamin.peterson, hippmr |
| 2012年01月19日 16:07:00 | michael.foord | set | messageid: <1326989220.86.0.607950876749.issue13827@psf.upfronthosting.co.za> |
| 2012年01月19日 16:07:00 | michael.foord | link | issue13827 messages |
| 2012年01月19日 16:07:00 | michael.foord | create |
|