[Python-Dev] Dropping __init__.py requirement for subpackages
nd at perlig.de
Wed Apr 26 19:25:12 CEST 2006
* Guido van Rossum wrote:
> So I have a very simple proposal: keep the __init__.py requirement for
> top-level pacakages, but drop it for subpackages. This should be a
> small change. I'm hesitant to propose *anything* new for Python 2.5,
> so I'm proposing it for 2.6; if Neal and Anthony think this would be
> okay to add to 2.5, they can do so.
Not that it would count in any way, but I'd prefer to keep it. How would I
mark a subdirectory as "not-a-package" otherwise?
echo "raise ImportError" >__init__.py
Das, was ich nicht kenne, spielt stückzahlmäßig *keine* Rolle.
-- Helmut Schellong in dclc
More information about the Python-Dev