[issue41519] `pkgutil.get_data` causes future imports of children modules to fail.

2020-09-29 Thread Cory Nezin
Cory Nezin added the comment: Wow, I did not know about that (probably because I've been stuck with Python3.6 for a while). Thank you! -- ___ Python tracker ___ _

[issue41519] `pkgutil.get_data` causes future imports of children modules to fail.

2020-09-29 Thread Brett Cannon
Brett Cannon added the comment: I wouldn't use pkgutil.get_data() -- or pkgutil, period -- and instead use importlib.resources to read data files from a package (which is available as a third-party package on PyPI if you need it for older versions of Python). --

[issue41519] `pkgutil.get_data` causes future imports of children modules to fail.

2020-09-29 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +barry, brett.cannon, p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41519] `pkgutil.get_data` causes future imports of children modules to fail.

2020-08-10 Thread Cory Nezin
New submission from Cory Nezin : As demonstrated in this Stack Overflow question (https://stackoverflow.com/questions/59377661/python-pkgutil-get-data-disrupts-future-imports) using `pkgutil.get_data` on a module causes future imports of children modules to fail. I tracked this down to a cal