[Python-3000] [stdlib-sig] PEP 3108 - stdlib reorg/cleanup

Brett Cannon brett at python.org
Thu May 1 02:02:22 CEST 2008


On Tue, Apr 29, 2008 at 11:33 PM, Joe Smith <unknown_kev_cat at hotmail.com> wrote:
>
>  "Brett Cannon" <brett at python.org> wrote in message
> news:bbaeab100804291344g1ca48af9s3b5bbdacf516b8d7 at mail.gmail.com...
>
>
>
> > On Tue, Apr 29, 2008 at 2:46 AM, Raymond Hettinger <python at rcn.com> wrote:
> >
> > >
> > > > * UserList/UserString [done: 3.0]
> > > >
> > >
> > >  Note that these were updated and moved to the collections module in
> Py3.0.
> > >
> > >
> >
> > Noted.
> >
> >
> > >
> > >
> > > > anydbm             dbm.tools [1]_
> > > > whichdb            dbm.tools [1]_
> > > >
> > >
> > >  Were there any better naming suggestions than dbm.tools?  The original
> > > names seem much more informative.
> > >
> > >
> >
> > But way too much overhead for two modules that only contained one
> > useful function each. As Nick said, if you don't know DB stuff then I
> > don't see any loss of information.
> >
> > If you can come up with a better name I am open to suggestions, but
> > the module merge will happen.
> >
>
>  Is there a problem having the functions be just dbm.open() and
> dmb.whichdb()? As a user the latter one seems espeically logical, as it is a
> tool to help me select which "submodule" I want to use.

There is a general dislike in putting code in a package's __init__
module. Personally I am fine with doing that, but I tried not to do
that with the reorg. If people speak up in support of this then it can
happen.

-Brett


More information about the Python-3000 mailing list