Skip to content

Commit

Permalink
440: Extend example to clarify 1.dev0 < 1.0.15 (#2108)
Browse files Browse the repository at this point in the history
>>> from packaging.version import Version
    >>> Version("1.dev0") > Version("1.0.15")
    False
  • Loading branch information
abitrolly authored Dec 23, 2021
1 parent cb8b62e commit b072483
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pep-0440.txt
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,7 @@ shared prefix, ordering MUST be by the value of the numeric component.

The following example covers many of the possible combinations::

1.dev0
1.0.dev456
1.0a1
1.0a2.dev456
Expand All @@ -693,6 +694,7 @@ The following example covers many of the possible combinations::
1.0+5
1.0.post456.dev34
1.0.post456
1.0.15
1.1.dev1


Expand Down

0 comments on commit b072483

Please sign in to comment.