Author vstinner
Recipients martin.panter, pitrou, serhiy.storchaka, vstinner
Date 2014-10-12.23:07:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> Alternative solution of this issue would be to use "from builtins import open as _open" instead of "import builtins".

Right. I prefer your solution because it's much simpler, it doesn't make traceback less usable at exit, and it doesn't need to make assumption on the Python status.

Here is a patch implementing this idea with an unit test.
Date User Action Args
2014-10-12 23:07:42vstinnersetrecipients: + vstinner, pitrou, martin.panter, serhiy.storchaka
2014-10-12 23:07:42vstinnersetmessageid: <>
2014-10-12 23:07:42vstinnerlinkissue22599 messages
2014-10-12 23:07:42vstinnercreate