Package mvpa :: Package misc :: Module support :: Class SmartVersion

[hide private]
[frames] | no frames]

# Class SmartVersion

source code

A bit evolved comparison of versions

The reason for not using python's distutil.version is that it seems to have no clue about somewhat common conventions of using '-dev' or 'dev' or 'rc' suffixes for upcoming releases (so major version does contain upcoming release already).

So here is an ad-hoc and not as nice implementation

Instance Methods | [hide private]

parse(self, vstring) | source code

__str__(self) | source code

__cmp__(self, other) | source code

Inherited from `distutils.version.Version`: `__init__`, `__repr__`