[New-bugs-announce] [issue40323] Printing of Single (') and Double (") code in one sentence using escape Code

Vishnuvenkatesh Dhage report at bugs.python.org
Sat Apr 18 15:21:03 EDT 2020


New submission from Vishnuvenkatesh Dhage <vmdhage at gmail.com>:

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

----------
components: IO
files: Single and Double Quotatin using escape code.jpg
messages: 366736
nosy: benjamin.peterson, vmdhage
priority: normal
severity: normal
status: open
title: Printing of Single (') and Double (") code in one sentence using escape Code
type: behavior
versions: Python 3.8
Added file: https://bugs.python.org/file49074/Single and Double Quotatin using escape code.jpg

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40323>
_______________________________________


More information about the New-bugs-announce mailing list