Re: I am a student studying Python in Korea. I found strange thing while studying through idle

2018-03-09 Thread Terry Reedy
On 3/8/2018 7:07 PM, 노연수 wrote: If you type print (" hello\ rpython ") into the python 3.7.0.b2, only the python is printed and i learned it's a crystal. '\r' is a control character than means 'return to the beginning of the line'. When you execute "print('hello\rpython')" in Python running

Re: I am a student studying Python in Korea. I found strange thing while studying through idle

2018-03-09 Thread Chris Warrick
On 9 March 2018 at 01:07, 노연수 wrote: > If you type print (" hello\ rpython ") into the python 3.7.0.b2, only the > python is printed and i learned it's a crystal. However, if you type print (" > hello\ rpython ") in the python 3.7.0.b2 idle, it is output as hellopython. I

Re: I found strange thing while studying through idle

2018-03-09 Thread Chris Angelico
On Sat, Mar 10, 2018 at 5:10 AM, Paul Moore wrote: > On 9 March 2018 at 17:46, Rob Gaddi wrote: >> On 03/08/2018 07:57 PM, Steven D'Aprano wrote: >>> >>> [snip] >>> >>> But it is possible that due to differences between platforms, the >>>

Re: I found strange thing while studying through idle

2018-03-09 Thread Paul Moore
On 9 March 2018 at 17:46, Rob Gaddi wrote: > On 03/08/2018 07:57 PM, Steven D'Aprano wrote: >> >> [snip] >> >> But it is possible that due to differences between platforms, the >> OP's version of IDLE doesn't display a carriage return as \r but >> rather as an

Re: I found strange thing while studying through idle

2018-03-09 Thread Rob Gaddi
On 03/08/2018 07:57 PM, Steven D'Aprano wrote: [snip] But it is possible that due to differences between platforms, the OP's version of IDLE doesn't display a carriage return as \r but rather as an invisible zero-width space. Just to derail this conversation a bit, does anyone have a use

Re: I found strange thing while studying through idle

2018-03-08 Thread Ben Finney
MRAB writes: > I think the line was actually […] > (I also think that "crystal" is […] Let's not get into the warrens of responding to what the OP *didn't* write. we're in no hurry. I'd like to wait for clarification from the original poster, and not guess what they

Re: I found strange thing while studying through idle

2018-03-08 Thread MRAB
On 2018-03-09 03:57, Steven D'Aprano wrote: [snip] In IDLE 3.5 on Linux, I get this: print('hello\rpython') hello\rpython Curiously, that's not a backslash r, it's actually a carriage return: when I copy and paste it in this text, the editor treated it as a new line character: # direct

Re: I found strange thing while studying through idle

2018-03-08 Thread MRAB
On 2018-03-09 01:59, Ben Finney wrote: Welcome, and congratulations on beginning with Python. 노연수 writes: If you type print (" hello\ rpython ") into the python 3.7.0.b2 I am not using Python 3.7 (it isn't released yet); I recommend staying with the latest Python

Re: I found strange thing while studying through idle

2018-03-08 Thread Steven D'Aprano
I'm afraid the original post by 노연수 has not come through to me, so I will have to reply to Ben's reply. On Fri, 09 Mar 2018 12:59:52 +1100, Ben Finney wrote: > I am not using Python 3.7 (it isn't released yet); I recommend staying > with the latest Python release. Today,

Re: I found strange thing while studying through idle

2018-03-08 Thread Ben Finney
Welcome, and congratulations on beginning with Python. 노연수 writes: > If you type print (" hello\ rpython ") into the python 3.7.0.b2 I am not using Python 3.7 (it isn't released yet); I recommend staying with the latest Python release. Today, that is version 3.6. That

I am a student studying Python in Korea. I found strange thing while studying through idle

2018-03-08 Thread 노연수
If you type print (" hello\ rpython ") into the python 3.7.0.b2, only the python is printed and i learned it's a crystal. However, if you type print (" hello\ rpython ") in the python 3.7.0.b2 idle, it is output as hellopython. I wonder why it prints like this. I would appreciate your answer.