From 691c38dcfb497c7f559801999d405af6a53a5054 Mon Sep 17 00:00:00 2001 From: konstin Date: Tue, 22 Nov 2022 22:37:08 +0100 Subject: [PATCH] PEP 440: Make example clearer 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) --- pep-0440.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pep-0440.txt b/pep-0440.txt index 05ef4df2006..df6edc94cfc 100644 --- a/pep-0440.txt +++ b/pep-0440.txt @@ -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