[Python-ideas] adding a casefold() method to str (original) (raw)
Benjamin Peterson benjamin at python.org
Sun Jan 8 18:47:24 CET 2012
- Previous message: [Python-ideas] adding a casefold() method to str
- Next message: [Python-ideas] A key parameter for heapq.merge
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message: [Python-ideas] adding a casefold() method to str
- Next message: [Python-ideas] A key parameter for heapq.merge
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]