Feature or enhancement
Proposal:
As the Comparing Strings chapter reads, calling str.lower to normalize strings is only good for ASCII characters. When it comes to other Unicode ranges, it becomes much more complicated.
Yet, the current implementation keeps using lower to normalize strings.
So, I suggest the change of ConfigParser.optionxform in favor of str.casefold or even unicodedata.normalize.
It might break some code. However, I can't imagine how a sane person would miss such a behavior as optionxform currently conducts. I'd expect everyone unhappy with the usage of str.lower to overwrite optionxform a long time ago. Therefore, I'm afraid the change I suggest will not break some code but correct it.
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response
Feature or enhancement
Proposal:
As the Comparing Strings chapter reads, calling
str.lowerto normalize strings is only good for ASCII characters. When it comes to other Unicode ranges, it becomes much more complicated.Yet, the current implementation keeps using
lowerto normalize strings.So, I suggest the change of
ConfigParser.optionxformin favor ofstr.casefoldor evenunicodedata.normalize.It might break some code. However, I can't imagine how a sane person would miss such a behavior as
optionxformcurrently conducts. I'd expect everyone unhappy with the usage ofstr.lowerto overwriteoptionxforma long time ago. Therefore, I'm afraid the change I suggest will not break some code but correct it.Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response