Version Number Comparison Function

Robert Kern rkern at
Fri Mar 25 18:35:20 CET 2005

Keith wrote:
> distutils is one of the places I looked:
> But I didn't see the functions documented.  I am new to Python so I
> didn't know where else to look.

The source! I don't think they're documented elsewhere.

> Using distutils seems like it would be the most generic and supported
> way to compare version numbers.


Robert Kern
rkern at

"In the fields of hell where the grass grows high
  Are the graves of dreams allowed to die."
   -- Richard Harter

More information about the Python-list mailing list