[stdlib-sig] Organizing the cookie modules

Brett Cannon brett at python.org
Tue Feb 5 23:55:42 CET 2008


On Feb 5, 2008 12:34 PM, Fred Drake <fdrake at acm.org> wrote:
> On Feb 5, 2008, at 3:20 PM, Brett Cannon wrote:
> > We have Cookie and cookielib. Neither are going away it looks like.
> > Combining them doesn't work as Cookie has BaseCookie and SimpleCookie
> > while cookielib has Cookie. Way too much confusion.
> >
> > Since Cookie has to be renamed anyway thanks to its CapWords spelling,
> > I am proposing:
> >
> > Cookie -> cookie.server
> > cookielib -> cookie.client
>
> I'm not aware of these being used with anything but HTTP (including
> HTTPS), so why not add them into the http package?

Because I don't want http.cookie.client.

>  I think the class
> names are fair game as well,

Why do you say that, Fred? That is not something 2to3 can handle very
well. It would require a rename within the module along with a
deprecation of the old name. Are you on the web SIG?

Granted I would rather have this solution. =) I will ask the web SIG.

>so we could end up with a merged module
> as http.cookie.  This would have basic parsing functions and then the
> current classes, appropriately renamed.
>
> > And no, I don't think every new package should have a client and
> > server module. =)
>
>
> Once you achieve your full zen, you'll realize that all client and
> server are the same, and all packages should have a net module.  ;-)

=) I thought zen would mean everything could just be named bruce?

-Brett


More information about the stdlib-sig mailing list