[issue42511] string in string not working

2020-11-30 Thread STINNER Victor
STINNER Victor added the comment: The two strings a different, that's why Python returns False. a = U+0627 U+0646 U+062f U+064a U+0645 U+0634 U+06a9 b = U+0627 U+0646 U+062f U+06cc U+0645 U+0634 U+06a9 U+064a != U+06cc >>> unicodedata.name('\u064a') 'ARABIC LETTER YEH' >>> unicodedata.name('

[issue42511] string in string not working

2020-11-30 Thread Mohammad Sadra Sharifzadeh
New submission from Mohammad Sadra Sharifzadeh : 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 th