[Python-Dev] On breaking modules into packages Was: [issue10199] Move Demo/turtle under Lib/
Antoine Pitrou
solipsis at pitrou.net
Wed Nov 3 04:33:48 CET 2010
On Wed, 03 Nov 2010 11:47:55 +1100
Ben Finney <ben+python at benfinney.id.au> wrote:
>
> > If someone wants to depend on some undocumented detail of the
> > directory layout it's their problem (like people depending on bytecode
> > and other stuff).
>
> I would say that names without a single leading underscore are part of
> the public API, whether documented or not.
That's not what we are talking about; we are talking about their
locations. If the official location is the unittest package, then
I don't see why we should also support undocumented locations just
because they happen to work. Otherwise we should also support e.g.
"unittest.unlink" if the unittest package happens to have "from os
import unlink" at its top. I don't think it's reasonable.
Antoine.
More information about the Python-Dev
mailing list