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 ezio.melotti
Recipients Arfrever, asvetlov, danielsh, eli.bendersky, ezio.melotti, flox, ncoghlan, python-dev, serhiy.storchaka, tshepang
Date 2013-02-27.05:12:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1361941950.75.0.425590072055.issue15083@psf.upfronthosting.co.za>
In-reply-to
Content
> I'm just not sure how the globals help 

It doesn't, but if it works fine there's probably no reason to complicate (if it's complicated at all) things to change this.

> even when I just want to run the pure Python code, the C module gets
> imported. Why should it be?

Doesn't the test always run both? (assuming the C module is available -- if it's not it won't be imported anyway)

> Pickle is one concrete place that can cause problems with this.

This might be an actual reason to avoid globals, but I don't know the details.
History
Date User Action Args
2013-02-27 05:12:30ezio.melottisetrecipients: + ezio.melotti, ncoghlan, Arfrever, eli.bendersky, asvetlov, flox, tshepang, python-dev, serhiy.storchaka, danielsh
2013-02-27 05:12:30ezio.melottisetmessageid: <1361941950.75.0.425590072055.issue15083@psf.upfronthosting.co.za>
2013-02-27 05:12:30ezio.melottilinkissue15083 messages
2013-02-27 05:12:30ezio.melotticreate