This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author MrSupertash
Recipients Jim.Jewett, Marc Richter, Mariatta, MrSupertash, benjamin.peterson, cheryl.sabella, docs@python, mark, rhettinger
Date 2020-08-24.13:48:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1598276910.56.0.53966239892.issue13828@roundup.psfhosted.org>
In-reply-to
Content
German example in casefolding is plain incorrect.

#Casefolding is similar to lowercasing but more aggressive because it is #intended to remove all case distinctions in a string. For example, the #German lowercase letter 'ß' is equivalent to "ss". Since it is already #lowercase, lower() would do nothing to 'ß'; casefold() converts it to #"ss".

It is not true that "ß" is equivalent to "ss" and has not been since an orthography reform in 1996. These are to be used in distinct use cases. "ß" after a diphthong or a long/open vowel. "ss" after a short/closed vowel. The documentation correctly describes (in this case) how Python handles the .casefold() for this letter, although the behavior itself is incorrect.

As mentioned before, in 2017 an official upper-case version of "ß" has been introduced into German orthography: "ẞ". The German example should be stated as current incorrect behavior in the documentation.

+1 to adding previously mentioned sentence: In addition to lowercasing, this function also expands ligatures, for example, "fi" becomes "fi".
History
Date User Action Args
2020-08-24 13:48:30MrSupertashsetrecipients: + MrSupertash, rhettinger, mark, benjamin.peterson, docs@python, Jim.Jewett, Marc Richter, Mariatta, cheryl.sabella
2020-08-24 13:48:30MrSupertashsetmessageid: <1598276910.56.0.53966239892.issue13828@roundup.psfhosted.org>
2020-08-24 13:48:30MrSupertashlinkissue13828 messages
2020-08-24 13:48:30MrSupertashcreate