Cajetan Rodrigues <caje...@gmail.com> added the comment:

Reproduced on Python3.9.0a5+

imp.find_module() simply raised an ImportError in my tests with an implicitly 
namespaced package (without an __init__.py)

About the "type_", I think it should be consistent with _PKG_DIRECTORY, since 
PEP 420 states the following[1]:

```
A namespace package is not fundamentally different from a regular package. It 
is just a different way of creating packages. Once a namespace package is 
created, there is no functional difference between it and a regular package.
```

I'd be happy to submit a patch if you think this is alright.


[1] https://www.python.org/dev/peps/pep-0420/#id24

----------
nosy: +cajetan.rodrigues

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

Reply via email to