def __init__(self,<EOL>txn,<EOL>pmap,<EOL>from_key=None,<EOL>to_key=None,<EOL>return_keys=True,<EOL>return_values=True,<EOL>reverse=False,<EOL>limit=None):
self._txn = txn<EOL>self._pmap = pmap<EOL>self._from_key = struct.pack('<STR_LIT>', pmap._slot)<EOL>if from_key:<EOL><INDENT>self._from_key += pmap._serialize_key(from_key)<EOL><DEDENT>if to_key:<EOL><INDENT>self._to_key = struct.pack('<STR_LIT>', pmap._slot) + pmap._serialize_key(to_key)<EOL><DEDENT>else:<EOL><INDENT>self._to_key = struct.pack('<STR_LIT>', pmap._slot + <NUM_LIT:1>)<EOL><DEDENT>self._reverse = reverse<EOL>self._return_keys = return_keys<EOL>self._return_values = return_values<EOL>self._limit = limit<EOL>self._read = <NUM_LIT:0><EOL>self._cursor = None<EOL>self._found = None<EOL>
:param txn:
:param pmap:
:param from_key:
:param to_key:
:param return_keys:
:param return_values:
:param reverse:
:param limit: