<div dir="ltr"><div class="gmail_default" style="color:rgb(0,0,0)"><span style="color:rgb(34,34,34)">On Mon, Apr 16, 2018 at 10:23 AM, Brett Cannon </span><span dir="ltr" style="color:rgb(34,34,34)"><<a href="mailto:brett@python.org" target="_blank">brett@python.org</a>></span><span style="color:rgb(34,34,34)"> wrote:</span><br></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Mon, 16 Apr 2018 at 09:58 Eric Fahlgren <<a href="mailto:ericfahlgren@gmail.com" target="_blank">ericfahlgren@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><font color="#000000">The documentation is pretty opaque or non-existent on other aspects of importlib use, too.</font></div></div></blockquote><div><br></div><div>Well, we are diving into the dark corners of import here. (Details can be found in the language reference: <a href="https://docs.python.org/3/reference/import.html" target="_blank">https://docs.python.org/3/<wbr>reference/import.html</a>)</div></div></div></blockquote><div><br></div><div class="gmail_default" style="color:rgb(0,0,0)">Thanks, Brett, I'll read through that and see where I get.  Those corners /are/ pretty dark.</div><div class="gmail_default" style="color:rgb(0,0,0)"><br></div><div class="gmail_default" style="color:rgb(0,0,0)">The backstory is that I'm doing the final port from Py2 to Py3 (it's been a long time coming, mostly years of waiting for extension modules to get ported, notably wxPython and VTK).  In Py2, all warnings were enabled and disallowed, so big surprise on first run, hundreds of lines of the aforementioned one and "ImportWarning: __package__ != __spec__.parent".  We have manually defined "__package__" all over the place, for reasons lost in the fog of time, which I believe to be the culprit for the latter warning.</div><div class="gmail_default" style="color:rgb(0,0,0)"><br></div><div class="gmail_default" style="color:rgb(0,0,0)">Eric</div></div></div></div>