OpenQuizz
Une application de gestion des contenus pédagogiques
StrictVersion Class Reference
Inheritance diagram for StrictVersion:
Collaboration diagram for StrictVersion:

Public Member Functions

def parse (self, vstring)
 
def __str__ (self)
 
- Public Member Functions inherited from Version
def __init__ (self, vstring=None)
 
def __repr__ (self)
 
def __eq__ (self, other)
 
def __lt__ (self, other)
 
def __le__ (self, other)
 
def __gt__ (self, other)
 
def __ge__ (self, other)
 

Data Fields

 version
 
 prerelease
 

Static Public Attributes

 version_re
 

Detailed Description

Version numbering for anal retentives and software idealists.
Implements the standard interface for version number classes as
described above.  A version number consists of two or three
dot-separated numeric components, with an optional "pre-release" tag
on the end.  The pre-release tag consists of the letter 'a' or 'b'
followed by a number.  If the numeric components of two version
numbers are equal, then one with a pre-release tag will always
be deemed earlier (lesser) than one without.

The following are valid version numbers (shown in the order that
would be obtained by sorting according to the supplied cmp function):

    0.4       0.4.0  (these two are equivalent)
    0.4.1
    0.5a1
    0.5b3
    0.5
    0.9.6
    1.0
    1.0.4a3
    1.0.4b1
    1.0.4

The following are examples of invalid version numbers:

    1
    2.7.2.2
    1.3.a4
    1.3pl1
    1.3c4

The rationale for this version numbering system will be explained
in the distutils documentation.

Member Function Documentation

◆ __str__()

def __str__ (   self)

◆ parse()

def parse (   self,
  vstring 
)

Field Documentation

◆ prerelease

prerelease

◆ version

version

◆ version_re

version_re
static

The documentation for this class was generated from the following file: