[New-bugs-announce] [issue42511] string in string not working

Mohammad Sadra Sharifzadeh report at bugs.python.org
Mon Nov 30 05:31:00 EST 2020


New submission from Mohammad Sadra Sharifzadeh <m.s.sharifzade at gmail.com>:

I want to know whether some string is in same string or not (yeah the SAME) 
in the file attached I have two expressions:
1- print('اندیمشک' in 'اندیمشک')
2- print('اندیمشک' in 'اندیمشک')
as you can see both of them are same thing but if you run the program you see it returns True for first one and False for second one. the difference between two expressions is that in the first one I typed both of the strings but in the second one I copied second string from a file and type first string

Thanks

----------
files: string bug.py
messages: 382140
nosy: m.s.sharifzade
priority: normal
severity: normal
status: open
title: string in string not working
type: behavior
versions: Python 3.7
Added file: https://bugs.python.org/file49638/string bug.py

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


More information about the New-bugs-announce mailing list