Steve Dower added the comment:

util is a submodule of importlib, and so it should always be imported before 
using it.

Other platforms may import it for various other reasons, but that is not part 
of the API. You should fix it by typing (note that the first line is different 
from yours):

>>> import importlib.util
>>> importlib.util.find_spec("re")

----------
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
type: compile error -> behavior

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue31318>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to