We already have methods like subscribe that only make sense for SUB sockets. It looks like libzmq 4.2 is going to add more socket-type-specific methods. It would be nice to filter these out in Socket.__dir__() for the sockets where the method doesn't make sense.