(self, collection, filter=None, skip=0, limit=0,
                 no_cursor_timeout=False, sort=None, batch_size=0)
Create a new cursor, similar to the normal
        :class:`~pymongo.cursor.Cursor`.

        Should not be called directly by application developers - see
        the :class:`~gridfs.GridFS` method :meth:`~gridfs.GridFS.find` instead.

        .. versionadded 2.7

        .. mongodoc:: cursors
Create a new cursor, similar to the normal
        :class:`~pymongo.cursor.Cursor`.
Create a new cursor similar to the normal : class : ~pymongo . cursor . Cursor .
def __init__(self, collection, filter=None, skip=0, limit=0,
                 no_cursor_timeout=False, sort=None, batch_size=0):
        """Create a new cursor, similar to the normal
        :class:`~pymongo.cursor.Cursor`.

        Should not be called directly by application developers - see
        the :class:`~gridfs.GridFS` method :meth:`~gridfs.GridFS.find` instead.

        .. versionadded 2.7

        .. mongodoc:: cursors
        """
        # Hold on to the base "fs" collection to create GridOut objects later.
        self.__root_collection = collection

        super(GridOutCursor, self).__init__(
            collection.files, filter, skip=skip, limit=limit,
            no_cursor_timeout=no_cursor_timeout, sort=sort,
            batch_size=batch_size)
def __init__ ( self , collection , filter = None , skip = 0 , limit = 0 , no_cursor_timeout = False , sort = None , batch_size = 0 ) : # Hold on to the base "fs" collection to create GridOut objects later. self . __root_collection = collection super ( GridOutCursor , self ) . __init__ ( collection . files , filter , skip = skip , limit = limit , no_cursor_timeout = no_cursor_timeout , sort = sort , batch_size = batch_size )