Author methane
Recipients Claudiu.Popa, Florian.Apolloner, Zbynek.Winkler, ashkop, barry, docs@python, eric.snow, ezio.melotti, mdjonyhossainhabib, methane, michael.foord, miss-islington, pconnell, rbcollins, rgammans,, terry.reedy
Date 2021-02-23.02:31:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I noticed that namespace package support has been broken since this commit.

Now namespace pacakge has __file__ attribute which is None. But...

                    start_dir = os.path.abspath(
                except AttributeError:
                    # look for namespace packages

`the_module.__file__` doesn't raise AttributeError for now. But os.path.dirname(None) raise TypeError.

The commit is backported to 3.7 branch. So namespace package support has been broken since Python 3.7.

Shouldn't we drop namespace package support?
It is misleading. And we could not maintain it. We didn't notice that it is broken for 3 years!
Date User Action Args
2021-02-23 02:31:59methanesetrecipients: + methane, barry, terry.reedy, rbcollins, ezio.melotti, michael.foord, rgammans, docs@python, Claudiu.Popa, Zbynek.Winkler, eric.snow, pconnell, Florian.Apolloner, ashkop, miss-islington,, mdjonyhossainhabib
2021-02-23 02:31:59methanesetmessageid: <>
2021-02-23 02:31:58methanelinkissue23882 messages
2021-02-23 02:31:58methanecreate