On this page
  1. locale.strcoll
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

locale.strcoll

Prev: locale.str | Up: locale | Next: locale.strxfrm
Rel: locale.atof, locale.atoi, locale.currency, locale.Error
Ref: docs.python.org — locale.strcoll
Tags: #public #python3 #stdlib #locale


Import

import locale
from locale import strcoll

Signature & Overview

locale.strcoll(os1, os2, /)

Compares two strings according to the locale.

Usage

import locale

assert locale.strcoll("a", "b") < 0

Gotchas

REPL Inspect

from locale import strcoll
help(strcoll)

Linked from

Related notes