def sscan(self, name, cursor='0', match=None, count=10):
        """Emulate sscan."""
        def value_function():
            members = list(self.smembers(name))
            members.sort()  # sort for consistent order
            return members
        return self._common_scan(value_function, cursor=cursor, match=match, count=count)
def sscan ( self , name , cursor = '0' , match = None , count = 10 ) : def value_function ( ) : members = list ( self . smembers ( name ) ) members . sort ( ) return members return self . _common_scan ( value_function , cursor = cursor , match = match , count = count )
Emulate sscan.