Skip to content

Commit 400582c

Browse files
authored
Merge pull request #1959 from notatallshaw/clarify-case-sensitivity-on-arbitary-equality
Specify arbitrary equality case insensitivity.
2 parents 20b5e04 + 97a72c5 commit 400582c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

source/specifications/version-specifiers.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,8 +1016,9 @@ Arbitrary equality
10161016

10171017
Arbitrary equality comparisons are simple string equality operations which do
10181018
not take into account any of the semantic information such as zero padding or
1019-
local versions. This operator also does not support prefix matching as the
1020-
``==`` operator does.
1019+
local versions. The comparison MUST treat ASCII letters case-insensitively, e.g.
1020+
by lowercasing, and is unspecified for non-ASCII text. This operator also does
1021+
not support prefix matching as the ``==`` operator does.
10211022

10221023
The primary use case for arbitrary equality is to allow for specifying a
10231024
version which cannot otherwise be represented by this specification. This operator is
@@ -1271,3 +1272,4 @@ History
12711272
- August 2014: This specification was approved through :pep:`440`.
12721273
- May 2025: Clarify that development releases are a form of pre-release when
12731274
they are handled.
1275+
- Nov 2025: Make arbitrary equality case insensitivity explicit.

0 commit comments

Comments
 (0)