From 118bc9ded6426e2f0f915652214f7c1fe160cb28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 20 Aug 2024 14:56:50 +0200 Subject: [PATCH] PEP 639: Character ranges are treated locale-agnostic --- peps/pep-0639.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/peps/pep-0639.rst b/peps/pep-0639.rst index 6561f959c38..8556c016e7d 100644 --- a/peps/pep-0639.rst +++ b/peps/pep-0639.rst @@ -528,7 +528,8 @@ as specified below: - Special glob characters: ``*``, ``?``, ``**`` and character ranges: ``[]`` containing only the verbatim matched characters MUST be supported. - Within ``[...]``, the hyphen indicates a range (e.g. ``a-z``). + Within ``[...]``, the hyphen indicates a locale-agnostic range (e.g. ``a-z``, + order based on Unicode code points). Hyphens at the start or end are matched literally. - Path delimiters MUST be the forward slash character (``/``).