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 serhiy.storchaka
Recipients martin.panter, pitrou, serhiy.storchaka, vstinner
Date 2014-10-22.12:08:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1413979700.2.0.331342885449.issue22599@psf.upfronthosting.co.za>
In-reply-to
Content
> Since I wrote tokenize.open(), I can explain why I chose to import builtins :-)

Then it is good to me.

> I would prefer something like traceback_ignore_linecache_error.patch, perhaps combined with a new function that would tell you whether the interpreter is shutting down.

I think we can apply both solutions. Keeping a reference to open will make traceback more usable at exit and ignoring exception will make it more robust in worst case.

And I support the idea about public function or attribute that would tell you whether the interpreter is shutting down. This would be useful in many modules. But this is different issue.
History
Date User Action Args
2014-10-22 12:08:20serhiy.storchakasetrecipients: + serhiy.storchaka, pitrou, vstinner, martin.panter
2014-10-22 12:08:20serhiy.storchakasetmessageid: <1413979700.2.0.331342885449.issue22599@psf.upfronthosting.co.za>
2014-10-22 12:08:20serhiy.storchakalinkissue22599 messages
2014-10-22 12:08:19serhiy.storchakacreate