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 benjamin.peterson
Recipients benjamin.peterson, brett.cannon
Date 2008-08-21.18:45:15
SpamBayes Score 1.6966454e-06
Marked as misclassified No
Message-id <1afaf6160808211145t1f5d2ab4i7fce0c43fcd2a12c@mail.gmail.com>
In-reply-to <bbaeab100808211121p16b8ffdby183124d8b209b987@mail.gmail.com>
Content
On Thu, Aug 21, 2008 at 1:21 PM, Brett Cannon <report@bugs.python.org> wrote:
>
> So for every sys import you are going to add an "import atexit"? That
> doesn't seem reasonable. And if the call is in an expression context
> you definitely cannot add the import.

You're right; it's not going to be perfect, but 2to3 could warn when
it couldn't insert the import statement.
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue2356>
> _______________________________________
>
History
Date User Action Args
2008-08-21 18:45:17benjamin.petersonsetrecipients: + benjamin.peterson, brett.cannon
2008-08-21 18:45:16benjamin.petersonlinkissue2356 messages
2008-08-21 18:45:15benjamin.petersoncreate