| Home | Trees | Index | Help |
|
|---|
| Module paludis :: Class VersionSpec |
|
object--+ |instance--+ | VersionSpec
A VersionSpec represents a version number (for example, 1.2.3b-r1).
See example_version_spec| Method Summary | |
|---|---|
__init__(string) | |
__cmp__(...)
| |
__reduce__(...)
| |
__str__(...)
| |
| VersionSpec |
This is used by the ~> operator. |
| VersionSpec |
Remove the revision part. |
| string |
Revision part only (or "r0"). |
| Inherited from instance | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
| Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
| Property Summary | |
|---|---|
has_scm_part: [ro] bool Do we have an -scm part? | |
has_try_part: [ro] bool Do we have a -try part? | |
is_scm: [ro] bool Are we an -scm package, or something pretending to be
one? | |
| Class Variable Summary | |
|---|---|
int |
__instance_size__ = 24 |
| Method Details |
|---|
__init__(string)
__init__(string)
|
bump()This is used by the ~> operator. It returns a VersionSpec where the next to last number is one greater (e.g. 5.3.1 => 5.4). Any non number parts are stripped (e.g. 1.2.3_alpha4-r5 => 1.3).
|
remove_revision()Remove the revision part.
|
revision_only()Revision part only (or "r0").
|
| Property Details |
|---|
has_scm_part[ro] bool Do we have an -scm part?
|
has_try_part[ro] bool Do we have a -try part?
|
is_scm[ro] bool Are we an -scm package, or something pretending to be one?
|
| Class Variable Details |
|---|
__instance_size__
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Mon Aug 4 19:40:18 2008 | http://epydoc.sf.net |