class_docstr: A base class providing the backwards-compatible spawn API for Pexpect.
  
  This should not be instantiated directly: use :class:`pexpect.spawn` or
  :class:`pexpect.fdpexpect.fdspawn`.
docstr: This is to support iterators over a file-like object.
          
docstr_tok: ["This","is","to","support","iterators","over","a","file-like","object","."]
code: def __iter__(self):
      """This is to support iterators over a file-like object."""
      return iter(self.readline, self.string_type())
  
imports: from io import StringIO, BytesIO
  import codecs
  import os
  import sys
  import re
  import errno
  from .exceptions import ExceptionPexpect, EOF, TIMEOUT
  from .expect import Expecter, searcher_string, searcher_re
label_desc: Use image node_id 17 for calling the SpawnBase obj's underlying member method code with example usage: obj.__iter__() and returns: iter