[Python-Dev] On breaking modules into packages Was: [issue10199] Move Demo/turtle under Lib/

Antoine Pitrou solipsis at pitrou.net
Wed Nov 3 04:35:38 CET 2010


On Tue, 2 Nov 2010 19:57:48 -0700
Brett Cannon <brett at python.org> wrote:
> >
> > How could we have split the module into a package in a way that matched the
> > API, whilst still retaining backwards compatibility with the old API? We had
> > no choice but to export the public names at the top level.
> 
> I'm not disagreeing with that. What I am saying is can now document
> that it's unittest.case.TestCase instead of having that just be an
> implementation detail.

-1.  unittest.TestCase is far simpler and more obvious that any
javaesque qualified name.  urllib.request and friends are already
annoying enough.

Regards

Antoine.


More information about the Python-Dev mailing list