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.

作者 gruszczy
收信人 belopolsky, brett.cannon, cool-RR, giampaolo.rodola, gruszczy, loewis, nedbat, r.david.murray, techtonik
日期 2011-03-06.20:58:48
SpamBayes Score 0.012788302
Marked as misclassified
Message-id <1299445129.97.0.648502886036.issue1559549@psf.upfronthosting.co.za>
In-reply-to
内容
This is a draft of a patch. I have only used this new ImportError api in once place, so it would work with following code:

>>> try:
...  import nosuchmodule  
... except ImportError as e:
...  print(e.module)
... 
nosuchmodule

I have literally no experience with Python core, so I would be very grateful for comments and advice, so I could make this patch meet all requirements.
历史
日期 用户 动作 参数
2011-03-06 20:58:50gruszczy修改recipients: + gruszczy, loewis, brett.cannon, belopolsky, techtonik, giampaolo.rodola, nedbat, r.david.murray, cool-RR
2011-03-06 20:58:49gruszczy修改messageid: <1299445129.97.0.648502886036.issue1559549@psf.upfronthosting.co.za>
2011-03-06 20:58:49gruszczy链接issue1559549 messages
2011-03-06 20:58:49gruszczy创建