From: David M. C. <co...@ph...> - 2006-07-24 23:11:15
|
On Mon, Jul 24, 2006 at 04:03:13PM -0700, Andrew Straw wrote: > Sasha wrote: > > >On 7/24/06, Andrew Straw <str...@as...> wrote: > > > >>BTW, Fernando, all this is so that we can still have the svn revision > >>number in __version__, but so that it doesn't screw up sorting. > > > >Sorting __version__ is screwed up regardless of svn revision number: > > > >>>>'1.9' < '1.10' > >>>> > >>>> > >False > > > Not if you parse __version__ with something that understands version > numbers. ...and we've already got something for that: distutils.version.LooseVersion (or StrictVersion). -- |>|\/|< /--------------------------------------------------------------------------\ |David M. Cooke http://arbutus.physics.mcmaster.ca/dmc/ |co...@ph... |