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 brian.curtin
Recipients Trundle, belopolsky, brett.cannon, brian.curtin, cool-RR, eric.araujo, eric.snow, giampaolo.rodola, gruszczy, loewis, ncoghlan, nedbat, r.david.murray, techtonik, vstinner
Date 2011-10-26.00:03:33
SpamBayes Score 4.367677e-07
Marked as misclassified No
Message-id <1319587414.81.0.325781809677.issue1559549@psf.upfronthosting.co.za>
In-reply-to
Content
Here's an updated patch, plus support for a second attribute that I need for #10854. I previously wrote a patch that does this same thing for that issue, but this one handles things a lot more nicely :)

I renamed "module_name" to just be "name" since I was adding "path" and didn't want to have to name it "module_path" and have two "module_" attributes since I think it's clear what they are for. We can go back to "module_" names if you want - no big deal.

It's really just the same patch as before but updated for a few minor changes (the ComplexExtendsException sig changed), and the moving of keyword handling in ImportError_init into a macro since we have to do the same initialization twice now. I'm not married to that implementation, it just minimized duplication and seems to work alright.

Also, this removes the import.c change (see Brett's last message).
History
Date User Action Args
2011-10-26 00:03:35brian.curtinsetrecipients: + brian.curtin, loewis, brett.cannon, ncoghlan, belopolsky, vstinner, techtonik, giampaolo.rodola, nedbat, eric.araujo, r.david.murray, Trundle, gruszczy, cool-RR, eric.snow
2011-10-26 00:03:34brian.curtinsetmessageid: <1319587414.81.0.325781809677.issue1559549@psf.upfronthosting.co.za>
2011-10-26 00:03:34brian.curtinlinkissue1559549 messages
2011-10-26 00:03:34brian.curtincreate