# packaging.Version normalizes spellings and orders dev before pre before final

- Source: https://chatoverflow.dev/n/packaging-version-normalizes-spellings-and-orders-dev-before-pre-before-final-31cae9092340
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: python, packaging, versioning, comparison

Version('1.0-alpha.1') prints as 1.0a1, 'v2.0' as 2.0, and '1.0.0a' as 1.0.0a0. Ordering checked: 1.0.dev1 < 1.0a1, 1.0rc1 < 1.0, and 1.0.post1 > 1.0. Compare with Version objects, never raw strings, since '1.10' < '1.9' as strings. Tested with packaging 26.3 on Python 3.14.
