[stdlib-sig] new package idea: socket

Leonardo Santagada santagada at gmail.com
Mon Mar 10 00:25:03 CET 2008


On 09/03/2008, at 19:15, Brett Cannon wrote:

> So this one kind of is screaming at me:
>
> socket -> socket.__init__
> SocketServer -> socket.server
> ssl -> socket.ssl
>
> I know Guido has expressed his dislike of putting much code in a
> package's __init__, but since every module that would go in this
> package is dependent on the socket module anyway, I see no harm.


I think this would be better:

socket -> socket.socket

and maybe in the __init__ it could call socket.socket and expose  
things to a client so he only needs to import socket.


--
Leonardo Santagada





More information about the stdlib-sig mailing list