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 barry, benjamin.peterson, doko, martin.panter, serhiy.storchaka
Date 2015-12-05.19:49:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1449344990.2063000.459062937.74E12688@webmail.messagingengine.com>
In-reply-to
Content
Err, sorry, it's actually PyDict_GetItem which is the problem. Basically
if you try to import with a very deep stack, doing PyDict_GetItem on
sys.modules can return NULL (fro copy_reg). That confuses import a lot.

I haven't exactly figured out why those tests cause failure. One of them
probably puts unicode strings in sys.modules.

On Sat, Dec 5, 2015, at 06:28, Barry A. Warsaw wrote:
> 
> Barry A. Warsaw added the comment:
> 
> On Dec 05, 2015, at 07:03 AM, Benjamin Peterson wrote:
> 
> >The underlying issue is classic: PyDict_SetItem returns NULL if the stack is
> >too deep. This confuses import.
> 
> Thanks for digging into this Benjamin.  I'm not able to investigate
> further
> atm, but could you please explain your analysis in more detail?  Where's
> the
> faulty setitem?  Where is import getting confused?  Why does this (or the
> combination I found before) cause the problem?
> 
> ----------
> 
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue25698>
> _______________________________________
History
Date User Action Args
2015-12-05 19:49:53benjamin.petersonsetrecipients: + benjamin.peterson, barry, doko, martin.panter, serhiy.storchaka
2015-12-05 19:49:53benjamin.petersonlinkissue25698 messages
2015-12-05 19:49:53benjamin.petersoncreate