parameters: (self, data)
return_statement: return d
docstring: Set the object's internal data.
  
              'data' is a copy of the object's saved data, as returned by
              getData() above.  This is used to restore a previously saved
              DrawingObject.
docstring_summary: Set the object's internal data.
docstring_tokens: Set the object s internal data .
function: def setData(self, data):
          """ Set the object's internal data.
  
              'data' is a copy of the object's saved data, as returned by
              getData() above.  This is used to restore a previously saved
              DrawingObject.
          """
          #data = copy.deepcopy(data) # Needed?
          d = DrawingObject.setData(self, data)
  
          try:
              self.points            = d.next()
          except StopIteration:
              raise ValueError('Not enough data in setData call')
  
          return d
function_tokens: def setData ( self , data ) : #data = copy.deepcopy(data) # Needed? d = DrawingObject . setData ( self , data ) try : self . points = d . next ( ) except StopIteration : raise ValueError ( 'Not enough data in setData call' ) return d