[stdlib-sig] Organizing the cookie modules

Fred Drake fdrake at acm.org
Tue Feb 5 21:34:42 CET 2008


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?  I think the class  
names are fair game as well, 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.  ;-)


   -Fred

-- 
Fred Drake   <fdrake at acm.org>






More information about the stdlib-sig mailing list