class_docstr: A DataSeries that holds values in a sequence in memory.
  
  :param maxLen: The maximum number of values to hold.
      Once a bounded length is full, when new items are added, a corresponding number of items are discarded from the
      opposite end. If None then dataseries.DEFAULT_MAX_LEN is used.
  :type maxLen: int.
class_docstr_tok: ["A","DataSeries","that","holds","values","in","a","sequence","in","memory",".",":","param","maxLen",":","The","maximum","number","of","values","to","hold",".","Once","a","bounded","length","is","full",",","when","new","items","are","added",",","a","corresponding","number","of","items","are","discarded","from","the","opposite","end",".","If","None","then","dataseries.DEFAULT_MAX_LEN","is","used",".",":","type","maxLen",":","int","."]
docstr: Sets the maximum number of values to hold and resizes accordingly if necessary.
docstr_tok: ["Sets","the","maximum","number","of","values","to","hold","and","resizes","accordingly","if","necessary","."]
code: def setMaxLen(self, maxLen):
      """Sets the maximum number of values to hold and resizes accordingly if necessary."""
      self.__values.resize(maxLen)
      self.__dateTimes.resize(maxLen)
  
imports: import abc
  import six
  from six.moves import xrange
  from pyalgotrade import observer
  from pyalgotrade.utils import collections
label_desc: Use image node_id 4 for calling the SequenceDataSeries obj's underlying member method code with example usage: obj.setMaxLen(maxLen) without return types