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

def IPython::Magic::Magic::_get_pasted_lines (   self,
  sentinel 
) [private]

Yield pasted lines until the user enters the given sentinel value.

Definition at line 3278 of file Magic.py.

03278                                          :
        """ Yield pasted lines until the user enters the given sentinel value.
        """
        from IPython import iplib
        print "Pasting code; enter '%s' alone on the line to stop." % sentinel
        while True:
            l = iplib.raw_input_original(':')
            if l == sentinel:
                return
            else:
                yield l

    def _strip_pasted_lines_for_code(self, raw_lines):


Generated by  Doxygen 1.6.0   Back to index