cell

class ws_sheets.cell.Cell(r, c, string=None)[source]

Cell data is stored in the string member which can be None or a string representing a python expression. A Cell can return a value which can be one of the following:

  • None if _string_ is None
  • an Exception raised by the compile function
  • an Exception raised by the eval function
  • result of the eval function
comp(sheet)[source]

Compile the string.

The code object is inspected for possible security issues by the ws_sheets.cell.Cell.check_code() function.

set_string(sheet, s)[source]

this shall be the only method for changing the string member