@property
    def method(self):
        ''' Returns the zmq method constant.
            >>> ZeroSetup('pull', 8000).method == zmq.PULL
            True
        '''
        try:
            return getattr(zmq, self._method.upper())
        except __HOLE__:
            raise UnsupportedZmqMethod('Unsupported ZMQ method', self._method, {})
dataset/ETHPy150Open philipbergen/zero/py/zero/__init__.py/ZeroSetup.method