homepage

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 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:01michael.foordsetrecipients: + michael.foord, benjamin.peterson, hippmr
2012年01月19日 16:07:00michael.foordsetmessageid: <1326989220.86.0.607950876749.issue13827@psf.upfronthosting.co.za>
2012年01月19日 16:07:00michael.foordlinkissue13827 messages
2012年01月19日 16:07:00michael.foordcreate

AltStyle によって変換されたページ (->オリジナル) /