raw_input() \r bug

Yansky
2007-12-16
2013-03-15
  • Yansky

    Yansky - 2007-12-16

    Is there any way to fix the raw_input() \r bug? http://pydev.sourceforge.net/faq.html#why_raw_input_input_does_not_work_correctly

    I know I can use raw_input().replace('\r', ''), but that's a bit of a hassle. Is there any other way to fix it?

    Cheers.

     
    • Fabio Zadrozny

      Fabio Zadrozny - 2007-12-16

      Choices are:

      1. You can fix python to treat that (changing raw_input to handle \r).
      2. You can fix Eclipse to treat that (discovering why it puts the additional \r and not just \n).
      3. You can just use the workaround.

      Either way, it's not a pydev fix (and I think it would be very difficult to make a patch like this go into Eclipse... so, maybe fixing and sending a patch to python may be the easier way to do it 'right').

      Cheers,

      Fabio

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks