Logo Search packages:      
Sourcecode: ipython version File versions  Download package

def IPython::external::Itpl::Itpl::__str__ (   self  ) 

Evaluate and substitute the appropriate parts of the string.

Reimplemented in IPython::external::Itpl::ItplNS.

Definition at line 207 of file Itpl.py.

00207                      :
        """Evaluate and substitute the appropriate parts of the string."""

        # We need to skip enough frames to get to the actual caller outside of
        # Itpl.
        frame = sys._getframe(1)
        while frame.f_globals["__name__"] == __name__: frame = frame.f_back
        loc, glob = frame.f_locals, frame.f_globals

        return self._str(glob,loc)
    
class ItplNS(Itpl):


Generated by  Doxygen 1.6.0   Back to index