class_docstr: Dispatch calls to a chain of commands until some func can handle it
  
  Usage: instantiate, execute "add" to add commands (with optional
  priority), execute normally via f() calling mechanism.
class_docstr_tok: ["Dispatch","calls","to","a","chain","of","commands","until","some","func","can","handle","it","Usage",":","instantiate",",","execute","``","add","''","to","add","commands","(","with","optional","priority",")",",","execute","normally","via","f","(",")","calling","mechanism","."]
docstr: Return all objects in chain.
  
  Handy if the objects are not callable.
docstr_tok: ["Return","all","objects","in","chain",".","Handy","if","the","objects","are","not","callable","."]
code: def __iter__(self):
      """Return all objects in chain.
  
      Handy if the objects are not callable.
      """
      return iter(self.chain)
  
file_path: catboost/contrib/python/ipython/py3/IPython/core/hooks.py
imports: import os
  import subprocess
  import sys
  from .error import TryNext
label_desc: Use image node_id 5 for calling the CommandChainDispatcher obj's underlying member method code with example usage: obj.__iter__() and returns: iter