[Python-ideas] adding a casefold() method to str

Benjamin Peterson benjamin at python.org
Sun Jan 8 18:47:24 CET 2012

Steven D'Aprano <steve at ...> writes:
> or should str.casefold() only apply simple folding, with the others 
> combinations relegated to a function in a module somewhere?

Yes, I think so. str does not have any other features dependent on locale.
Section 3.3 defines "Default casefolding" which is what the casefold() method
should use.

More information about the Python-ideas mailing list