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 pitrou
Recipients alexandre.vassalotti, amaury.forgeotdarc, belopolsky, pitrou, ygingras
Date 2010-05-28.12:27:31
SpamBayes Score 0.0026340268
Marked as misclassified No
Message-id <1275049653.85.0.964764925879.issue2920@psf.upfronthosting.co.za>
In-reply-to
Content
Agreed with Amaury. Module import could fail for various reasons (perhaps the same ones which led to the exception being raised!), or could deadlock if the import lock is being held. Also, having __str__ fail is usually very annoying for users (especially when it's the __str__ of an exception object).

If it's too hard to import errno at startup (because of bootstrapping), I would suggest using PyImport_ImportModuleNoBlock() instead, and silence errors (just print the numeric value of errno instead).
History
Date User Action Args
2010-05-28 12:27:34pitrousetrecipients: + pitrou, amaury.forgeotdarc, belopolsky, alexandre.vassalotti, ygingras
2010-05-28 12:27:33pitrousetmessageid: <1275049653.85.0.964764925879.issue2920@psf.upfronthosting.co.za>
2010-05-28 12:27:31pitroulinkissue2920 messages
2010-05-28 12:27:31pitroucreate