This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: '''...''' error
Type: behavior Stage: resolved
Components: Unicode Versions: Python 3.8
process
Status: closed Resolution: third party
Dependencies: Superseder:
Assigned To: Nosy List: ezio.melotti, mark.dickinson, sumowi, vstinner
Priority: normal Keywords:

Created on 2022-01-06 06:16 by sumowi, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
20220106143913.png sumowi, 2022-01-06 06:41
Messages (4)
msg409816 - (view) Author: Yongfan Ming (sumowi) Date: 2022-01-06 06:16
define:
str_='''...
...
..
..
.
...
'''
get:
str='...\n\n..\n..\n.\n\n'

if '...' in the second line, all '...' will be not read.
msg409817 - (view) Author: Yongfan Ming (sumowi) Date: 2022-01-06 06:41
just happend in jupyter notebook .
msg409820 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2022-01-06 08:47
vstinner@apu$ python3
Python 3.10.1 (main, Dec  9 2021, 00:00:00) [GCC 11.2.1 20211203 (Red Hat 11.2.1-7)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> str_='''...
... ...
... ..
... ..
... .
... ...
... '''
>>> str_
'...\n...\n..\n..\n.\n...\n'

I cannot reproduce this issue in the Python REPL. I suggest to report the issue to jupyter.
msg409827 - (view) Author: Mark Dickinson (mark.dickinson) * (Python committer) Date: 2022-01-06 11:15
https://github.com/ipython/ipython/issues/12843 looks very closely related, and may be the exact same bug.
History
Date User Action Args
2022-04-11 14:59:54adminsetgithub: 90435
2022-01-06 11:15:46mark.dickinsonsetnosy: + mark.dickinson
messages: + msg409827
2022-01-06 08:47:09vstinnersetstatus: open -> closed
resolution: third party
messages: + msg409820

stage: resolved
2022-01-06 06:41:36sumowisetfiles: + 20220106143913.png

messages: + msg409817
2022-01-06 06:16:09sumowicreate