From a703204b82a262985243dbe1994581860eb62f6f Mon Sep 17 00:00:00 2001 From: konsti Date: Fri, 22 Sep 2023 23:23:38 +0200 Subject: [PATCH] PEP 440: Make examples clearer (#2898) The PEP 440 version matching examples are confusing to read and the `1.1a1` in `== 1.1.*` is dependent on whether the user requested pre-releases or not, which I've clarified (https://github.com/pypa/packaging/issues/617) --- peps/pep-0440.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peps/pep-0440.rst b/peps/pep-0440.rst index 86a82ea1e..4cc287bf3 100644 --- a/peps/pep-0440.rst +++ b/peps/pep-0440.rst @@ -919,7 +919,7 @@ following clauses would match or not as shown:: == 1.1 # Not equal, so 1.1a1 does not match clause == 1.1a1 # Equal, so 1.1a1 matches clause - == 1.1.* # Same prefix, so 1.1a1 matches clause + == 1.1.* # Same prefix, so 1.1a1 matches clause if pre-releases are requested An exact match is also considered a prefix match (this interpretation is implied by the usual zero padding rules for the release segment of version