Package linda :: Module dpkgver :: Class DpkgVersion
[hide private]

Class DpkgVersion

source code

object --+
         |
        DpkgVersion

Debian version number.

This class is designed to be reasonably transparent and allow you to write code like:
>>> s.version >= '1.100-1'

The comparison will be done according to Debian rules, so '1.2' will compare lower.

Properties:

Instance Methods [hide private]
 
__init__(self, ver)
Parse a string or number into the three components.
source code
 
getWithoutEpoch(self)
Return the version without the epoch.
source code
 
__str__(self)
Return the class as a string for printing.
source code
 
__repr__(self)
Return a debugging representation of the object.
source code
 
__cmp__(self, other)
Compare two Version classes.
source code
 
is_native(self) source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

Properties [hide private]
  without_epoch
Return the version without the epoch.

Inherited from object: __class__

Method Details [hide private]

__init__(self, ver)
(Constructor)

source code 
Parse a string or number into the three components.
Overrides: object.__init__

__str__(self)
(Informal representation operator)

source code 
Return the class as a string for printing.
Overrides: object.__str__

__repr__(self)
(Representation operator)

source code 
Return a debugging representation of the object.
Overrides: object.__repr__

Property Details [hide private]

without_epoch

Return the version without the epoch.
Get Method:
linda.dpkgver.DpkgVersion.getWithoutEpoch(self) - Return the version without the epoch.