This patch to import.c only generates ImportWarnings if the import fails. It also fixes what appear to be memory leaks involving the "copy" variable. This patch applies to Python 2.5b1.
Logged In: YES user_id=33168 Shane, thanks for the patch. The decision was made to simply ignore the warning by default. I'm closing it because we are taking a different approach at this time. We will revisit the decision for 2.6. I hope you continue reading python-dev and help us fix this better for 2.6, whatever that may be. Perhaps this patch will be revived at that time. I have added a link to this patch in PEP 361. I agree with the memory leaks wrt to copy and have checked in changes that should address all the leaks. Let me know if you spot other ones (or I made a mistake).