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.

Author terry.reedy
Recipients cheryl.sabella, epaine, rhettinger, taleinat, terry.reedy
Date 2022-01-17.04:10:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1642392646.67.0.619792737511.issue35467@roundup.psfhosted.org>
In-reply-to
Content
I finally caught an example, which was not immediately after restart.  I copied the two lines of output, entered 'import re\n' and the copied text was pasted, then the line with the addition compiled, leading to the error.

Type "help", "copyright", "credits" or "license()" for more information.
>>> for c in '℘·': hex(ord(c))
... 
'0x2118'
'0xb7'
>>> import re'0x2118'
... '0xb7'
SyntaxError: invalid syntax
>>> for c in '℘·': hex(ord(c))

I pasted the copied output into an issue on the browser and did other stuff before coming back to this window to try something with re.

Differences from my initial report: No RESTART (though usually or often is), no exception, not first entry (but first time not?).  

Edit menu item 'Paste' and the shortcut are bound to IDLE-defined pseudoevent '<<paste>>' which invokes method EditorWindow.paste which calls event_generate('<<Paste>>'), where the latter event is a tk-defined event. Where triggered?  I could add a print-to-console in .paste?  Happening only in shell and after Enter suggest looking as shell-specific part of Enter handling.  If never on Linux, could x-11-only fix-x11-paste (called in pyshell.main) explain why not?

I searched stackoverflow [tkinter] questions for 'paste'.  Got 840 responses, looked as first page, saw nothing relevant.  Adding 'unwanted', 'unexpected', or 'spontaneous' resulted in no hits.  I will consider asking a question myself.
History
Date User Action Args
2022-01-17 04:10:46terry.reedysetrecipients: + terry.reedy, rhettinger, taleinat, cheryl.sabella, epaine
2022-01-17 04:10:46terry.reedysetmessageid: <1642392646.67.0.619792737511.issue35467@roundup.psfhosted.org>
2022-01-17 04:10:46terry.reedylinkissue35467 messages
2022-01-17 04:10:46terry.reedycreate