This is a pre-release version (latest). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy latest / numpy / _core / _string_helpers / english_lower

function

numpy._core._string_helpers:english_lower

source: build-install/usr/lib/python3.14/site-packages/numpy/_core/_string_helpers.py :16

Signature

def   english_lower ( s )

Summary

Apply English case rules to convert ASCII strings to all lower case.

Extended Summary

This is an internal utility function to replace calls to str.lower() such that we can avoid changing behavior with changing locales. In particular, Turkish has distinct dotted and dotless variants of the Latin letter "I" in both lowercase and uppercase. Thus, "I".lower() != "i" in a "tr" locale.

Parameters

s : str

Returns

lowered : str

Examples

from numpy._core.numerictypes import english_lower
english_lower('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_')
english_lower('')

Aliases

  • numpy._core._string_helpers.english_lower