Sergey A. Lipnevich wrote: > I tried to implement Jean-Paul Calderone's idea for the following patch, > plagiarizing Ralf W. Grosse-Kunstleve's error text. It delays import > warning until end of search for modules, but remembers how many > potential modules (candidates without __init__.py) it didn't import. I > didn't really try to analyze any conditions, instead I simply assumed > that wherever ImportWarning would be issued, we have a suitable > candidate, and saved it on the stack. If nothing is found, Python emits > ImportWarning right before ImportError, and explains what happened. > Please let me know if this would work and if anything needs to be done > for this patch to be accepted.
Please notice that there is also python.org/sf/1515361 I had no time to compare this with your patch, yet. Regards, Martin _______________________________________________ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
