Simon Willison
Read post

Programmatically comparing Python version strings

Learn how to compare version strings in Python programmatically using the packaging.version package. See an example of how to use it to mark a pytest test as skipped based on the version of Datasette.

    #python#datasette
Mar 17, 2024•3m read time•From til.simonwillison.net
Post cover image
Table of contents
Related
19 Impressions
Simon Willison's image
Simon Willison

Simon Willison's blog offers a mix of technical tutorials, data analysis projects, and reflections o...

215 Followers

•

1.4K Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard