[issue44773] case_insensitive kwarg in str.replace()

2021-07-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I concur with Raymond and Eric. Note that in general case the problem is more complex that you may expect. First, some characters can match two characters (e.g. 'ß' matches 'SS'), and therefore indexes of characters are different in different cases. Second,

[issue44773] case_insensitive kwarg in str.replace()

2021-07-30 Thread Eric V. Smith
Eric V. Smith added the comment: I agree with Raymond that this should be rejected. -- nosy: +eric.smith ___ Python tracker ___ ___

[issue44773] case_insensitive kwarg in str.replace()

2021-07-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: I don't think this should be done. If case doesn't matter at all, the input can be casefolded before the replacement: s.casefold().replace('hippo', 'giraffe'). If it can't be casefolded in advance because the case actually matters, then ​it doesn't

[issue44773] case_insensitive kwarg in str.replace()

2021-07-29 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: -pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue44773] case_insensitive kwarg in str.replace()

2021-07-29 Thread Nimboss
Change by Nimboss : -- title: case_insensitive kwarg to str.replace() -> case_insensitive kwarg in str.replace() ___ Python tracker ___ ___