[docs] [issue21784] __init__.py can be a directory

Raymond Hettinger report at bugs.python.org
Sat Jun 21 00:56:55 CEST 2014

Raymond Hettinger added the comment:

> So maybe a check was dropped by mistake?

Why do we care?  For the most part, Linux treats directories as files (if I do a mkdir twice, the error is "mkdir: tmp: File exists".  We don't care about the other flags rwx so why should we care about d?

Python should avoid adding superfluous checks when it doesn't have to.

> Anyways, it doesn't bother me too much.

AFAICT, it hasn't bothered anyone.


Python tracker <report at bugs.python.org>

More information about the docs mailing list