Message106654
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). |
|
Date |
User |
Action |
Args |
2010-05-28 12:27:34 | pitrou | set | recipients:
+ pitrou, amaury.forgeotdarc, belopolsky, alexandre.vassalotti, ygingras |
2010-05-28 12:27:33 | pitrou | set | messageid: <1275049653.85.0.964764925879.issue2920@psf.upfronthosting.co.za> |
2010-05-28 12:27:31 | pitrou | link | issue2920 messages |
2010-05-28 12:27:31 | pitrou | create | |
|