Menu

Interactive prompt appears on input()

2009-02-27
2013-03-15
  • Steve Holden

    Steve Holden - 2009-02-27

    Running Python 3.0 in a pydev console gives strange behavior for the input() function, this is what I *see*:

    >>> input("abc: ")
    abc: >>> Hello!
    'Hello!'
    >>>

    Though of course the ">>>" prompts don't allow me to *copy* them. Is this a bug, or have I installed pydev incorrectly?

     
    • Fabio Zadrozny

      Fabio Zadrozny - 2009-03-04

      That's the way it works now... what were you expecting to see?

      Cheers,

      Fabio

       
      • Steve Holden

        Steve Holden - 2009-03-04

        for the avoidance of doubt, what I would like is

        >>> input("abc: ")
        abc: Hello!
        'Hello!'
        >>>

        Compare with the original and you'll see I am looking to get rid of the ">>>" before the user gets chance to enter their response to the input() function. That's what I see when I run Python 3.0 from the command line.

        regards
        Steve

         
        • Fabio Zadrozny

          Fabio Zadrozny - 2009-03-04

          Ok, please report it as a bug ( http://pydev.sourceforge.net/faq.html#how_do_i_report_a_bug ) I'll try to make that for the next release.

          Cheers,

          Fabio

           
          • Steve Holden

            Steve Holden - 2009-03-04

            OK, issue 2663206.

            Thanks!

             
    • Steve Holden

      Steve Holden - 2009-03-04

      I was expecting to see what I would see if I used a command window, or Wing IDE: the prompt, followed by my input. The interactive interpreter only normally prompts when it's ready for *Python* input, not *program* input.

      regards
      Steve