コード例 #1
0
    def row_iterator(self):
        """
        iterate each row

        override this function in the sitation where
        number_of_rows() is difficult or costly to implement
        """
        return irange(self.number_of_rows())
コード例 #2
0
ファイル: sheet.py プロジェクト: BenOussama180/pfe
    def row_iterator(self):
        """
        iterate each row

        override this function in the sitation where
        number_of_rows() is difficult or costly to implement
        """
        return irange(self.number_of_rows())
コード例 #3
0
ファイル: sheet.py プロジェクト: BenOussama180/pfe
    def column_iterator(self, row):
        """
        iterate each column of a given row

        override this function in the sitation where
        number_of_columns() is difficult or costly to implement
        """
        for column in irange(self.number_of_columns()):
            yield self.cell_value(row, column)
コード例 #4
0
    def column_iterator(self, row):
        """
        iterate each column of a given row

        override this function in the sitation where
        number_of_columns() is difficult or costly to implement
        """
        for column in irange(self.number_of_columns()):
            yield self.cell_value(row, column)
コード例 #5
0
ファイル: xlsxr.py プロジェクト: pyexcel/pyexcel-xlsx
 def register_cells(self, registry):
     for rowx in irange(self.__rl, self.__rh + 1):
         for colx in irange(self.__cl, self.__ch + 1):
             key = "%s-%s" % (rowx, colx)
             registry[key] = self
コード例 #6
0
 def register_cells(self, registry):
     for rowx in irange(self.__rl, self.__rh):
         for colx in irange(self.__cl, self.__ch):
             key = "%s-%s" % (rowx, colx)
             registry[key] = self
コード例 #7
0
ファイル: sheet.py プロジェクト: readflybird/pyexcel-io
 def _iterate_columns(self, row):
     for column in irange(self.number_of_columns()):
         yield self._cell_value(row, column)
コード例 #8
0
ファイル: sheet.py プロジェクト: readflybird/pyexcel-io
 def _iterate_rows(self):
     return irange(self.number_of_rows())