[Python-Dev] [Python-checkins] cpython: add str.casefold() (closes #13752)

Éric Araujo merwok at netwok.org
Tue Jan 17 18:26:05 CET 2012


Hi,
> changeset: d4669f43d05f
> user: Benjamin Peterson <benjamin at python.org>
> date: Sat Jan 14 13:23:30 2012 -0500
> summary:
> add str.casefold() (closes #13752)

> diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
> --- a/Doc/library/stdtypes.rst
> +++ b/Doc/library/stdtypes.rst
> @@ -1002,6 +1002,14 @@
> rest lowercased.
>>> +.. method:: str.casefold()
> +
> + Return a casefolded copy of the string. Casefolded strings may be 
> used for
> + caseless matching. For example, ``"MASSE".casefold() == 
> "maße".casefold()``.
> +
> + .. versionadded:: 3.3

I think this method requires at least a link to relevant definitions
(Unicode website or Wikipedia), and at best a bit more explanation (for
example, it is not locale-dependent, even though the example above is
only meaningful for German).
Cheers


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /