Debian version number.
This class is designed to be reasonably transparent and allow you to
write code like:
The comparison will be done according to Debian rules, so '1.2' will
compare lower.
Properties:
| Method Summary |
| |
__init__(self,
ver)
Parse a string or number into the three components. |
| |
__cmp__(self,
other)
Compare two Version classes. |
| |
__repr__(self)
Return a debugging representation of the object. |
| |
__str__(self)
Return the class as a string for printing. |
| |
getWithoutEpoch(self)
Return the version without the epoch. |
| |
is_native(self)
|
| Inherited from object |
| |
__delattr__(...)
x.__delattr__('name') <==> del x.name |
| |
__getattribute__(...)
x.__getattribute__('name') <==> x.name |
| |
__hash__(x)
x.__hash__() <==> hash(x) |
| |
__new__(T,
S,
...)
T.__new__(S, ...) -> a new object with type S, a subtype of T |
| |
__reduce__(...)
helper for pickle |
| |
__reduce_ex__(...)
helper for pickle |
| |
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value |