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 brett.cannon
Recipients brett.cannon, georg.brandl, vstinner
Date 2011-01-31.04:04:10
SpamBayes Score 0.00087791355
Marked as misclassified No
Message-id <1296446651.43.0.796363573653.issue11074@psf.upfronthosting.co.za>
In-reply-to
Content
The tokenize module stores the built-in open() module in a global assignment statement. Problem is that if you reload the module, that global assignment picks up the module's own open() that came into existence during the initial import.

The attached patch fixes this by having tokenize.open() use builtins.open() instead of its own cached global version.
History
Date User Action Args
2011-01-31 04:04:11brett.cannonsetrecipients: + brett.cannon, georg.brandl, vstinner
2011-01-31 04:04:11brett.cannonsetmessageid: <1296446651.43.0.796363573653.issue11074@psf.upfronthosting.co.za>
2011-01-31 04:04:10brett.cannonlinkissue11074 messages
2011-01-31 04:04:10brett.cannoncreate