class_docstr: Source for backtesting parameters. This class is thread safe.
class_docstr_tok: ["Source","for","backtesting","parameters",".","This","class","is","thread","safe","."]
code: def __init__(self, params):
      self.__iter = iter(params)
      self.__lock = threading.Lock()
  
file_path: pyalgotrade/pyalgotrade/optimizer/base.py
imports: import threading
  import six
label_desc: Use image node_id 1 to create a new ParameterSource object from inherited base classes: object with example: obj = ParameterSource(params)