Author brett.cannon
Recipients asvetlov, barry, brett.cannon, theller
Date 2013-02-01.18:47:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1359744478.64.0.358325747901.issue17098@psf.upfronthosting.co.za>
In-reply-to
Content
All cases but signal can be fixed by importlib._bootstrap._setup() by simply iterating over sys.modules and setting __loader__. Nice and simple. Thanks, abstraction!

The problem is signal who gives the finger to abstraction. That module gets imported directly by C code which cheats by calling PyInit_signal() directly and then calling _PyImport_FixupBuiltin(). I tried setting __loader__ in there but I'm actually triggering a segfault in PyErr_Format()! This is probably because I/O streams are not set up yet at this point in interpreter startup. Anyway, I'm trying to simply not have the code cheat and instead just import the signal module through the proper abstractions.
History
Date User Action Args
2013-02-01 18:47:58brett.cannonsetrecipients: + brett.cannon, barry, theller, asvetlov
2013-02-01 18:47:58brett.cannonsetmessageid: <1359744478.64.0.358325747901.issue17098@psf.upfronthosting.co.za>
2013-02-01 18:47:58brett.cannonlinkissue17098 messages
2013-02-01 18:47:58brett.cannoncreate