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: Printing of Single (') and Double (") code in one sentence using escape Code
Type: behavior Stage: resolved
Components: IO Versions: Python 3.8
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: SilentGhost, benjamin.peterson, vmdhage
Priority: normal Keywords:

Created on 2020-04-18 19:21 by vmdhage, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
Single and Double Quotatin using escape code.jpg vmdhage, 2020-04-18 19:21
Messages (2)
msg366736 - (view) Author: Vishnuvenkatesh Dhage (vmdhage) Date: 2020-04-18 19:21
In Python shell v3.8.2,

when user want to use both single quotation mark and double quotation mark in one sentence/paragraph then Single Quotation is displayed in the screen along with escape code i.e. \', but double quotation display ok i.e. ".

example:
>>>'\"Python\" programming language is very easy. It\'s used for developing rapid application development.'



The result is printed is as below
>>>'"Python" programming language is very easy. It\'s used for developing rapid application development.'

In my view, after pressing enter the output should be 
>>>'"Python" programming language is very easy. It's used for developing rapid application development.'
 
Please look into my observation.
Thanks with regards
Vishnuvenkatesh Dhage
encls: Python v3.8.2 Shell screenshot along with example
msg366739 - (view) Author: SilentGhost (SilentGhost) * (Python triager) Date: 2020-04-18 20:50
The output in REPL is valid representation of an object that can be often be used to re-create the object, you could use print function to see how the string would look like when output on screen or written into a file.
History
Date User Action Args
2022-04-11 14:59:29adminsetgithub: 84503
2020-04-18 20:50:36SilentGhostsetstatus: open -> closed

nosy: + SilentGhost
messages: + msg366739

resolution: not a bug
stage: resolved
2020-04-18 19:21:03vmdhagecreate