Simon Willison’s Weblog

Subscribe

17th March 2024

TIL Programmatically comparing Python version strings — I found myself wanting to compare the version numbers `0.63.1`, `1.0` and the `1.0a13` in Python code, in order to mark a `pytest` test as skipped if the installed version of Datasette was pre-1.0.

This is a beat by Simon Willison, posted on 17th March 2024.

Monthly briefing

Sponsor me for $10/month and get a curated email digest of the month's most important LLM developments.

Pay me to send you less!

Sponsor & subscribe