Re: an old idea: getting rid of __init__.py
Antoine Pitrou <[email protected]> Sun, 3 May 2015 00:41:07 +0200
| Newsgroups | gmane.comp.python.import |
|---|---|
| Message-ID | <20150503004107.568b4089@fsol> |
On Sat, 2 May 2015 16:22:31 -0600 Eric Snow <[email protected]> wrote: > When namespace packages were under discussion I remember we were > seriously considering eliminating the requirement of __init__.py for > *all* packages. Well, I stumbled onto the following post from Guido > predating namespace packages by several years: Well, I've already been bitten by Python mistaking a directory for a "namespace package", just because of its simple existence. I wouldn't want things to get any more annoying. The argument that __init__.py is confusing to beginners is a bit arbitrary; not requiring any __init__.py makes for situations that are just as confusing. Regards Antoine. > > https://mail.python.org/pipermail/python-dev/2006-April/064400.html > > Food for thought. :) > > -eric > > p.s. I haven't yet read through the thread, but I expect the > conversation dragged out long enough that the proposal lost steam.