This content refers to an unreleased development version of PyMVPA
To provide the most recent news and documentation www.pymvpa.org reflects the development 2.0 series (renamed 0.6 series) of PyMVPA. If you are interested in the documentation of the previous stable 0.4 series of PyMVPA, please visit v04.pymvpa.org.

mvpa2.misc.support.SmartVersion

Inheritance diagram of SmartVersion

class mvpa2.misc.support.SmartVersion(vstring=None)

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

parse(vstring)

Previous topic

mvpa2.misc.support.MapOverlap

Next topic

mvpa2.misc.support.StringType

NeuroDebian

NITRC-listed