Thanks, it looks like it's working now. That __getaddr__ trick was cool.

Quote Originally Posted by PhilosopherStoned View Post
The classmethod is called on the class and not on instances. So you would call it like IrcSocket.new(*args, **kwargs) where args and kwargs are the arguments that you would use to construct the normal socket. If you need custom arguments, then let me know and I can show you how to do that.
Ok, when is it best to use IrcSocket.new() and when is it all right to use s = IrcSocket()?
And how can you get custom arguments for the socket, like defining the ID?