parameters: (initialFrame)
return_statement: return frames
docstring: NO-YIELD VERSION: Iterates through all the frames starting at the specified frame (which will be the first returned item)
docstring_summary: NO-YIELD VERSION: Iterates through all the frames starting at the specified frame (which will be the first returned item)
docstring_tokens: NO - YIELD VERSION : Iterates through all the frames starting at the specified frame ( which will be the first returned item )
function: def _iter_frames(initialFrame):
      '''NO-YIELD VERSION: Iterates through all the frames starting at the specified frame (which will be the first returned item)'''
      # cannot use yield
      frames = []
  
      while initialFrame is not None:
          frames.append(initialFrame)
          initialFrame = initialFrame.f_back
  
      return frames
function_tokens: def _iter_frames ( initialFrame ) : # cannot use yield frames = [ ] while initialFrame is not None : frames . append ( initialFrame ) initialFrame = initialFrame . f_back return frames