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

Public Member Functions

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

Data Fields

 vstring
 
 version
 

Static Public Attributes

 component_re
 

Detailed Description

Version numbering for anarchists and software realists.
Implements the standard interface for version number classes as
described above.  A version number consists of a series of numbers,
separated by either periods or strings of letters.  When comparing
version numbers, the numeric components will be compared
numerically, and the alphabetic components lexically.  The following
are all valid version numbers, in no particular order:

    1.5.1
    1.5.2b2
    161
    3.10a
    8.02
    3.4j
    1996.07.12
    3.2.pl0
    3.1.1.6
    2g6
    11g
    0.960923
    2.2beta29
    1.13++
    5.5.kw
    2.0b1pl0

In fact, there is no such thing as an invalid version number under
this scheme; the rules for comparison are simple and predictable,
but may not always give the results you want (for some definition
of "want").

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  vstring = None 
)

Reimplemented from Version.

Member Function Documentation

◆ __repr__()

def __repr__ (   self)

Reimplemented from Version.

◆ __str__()

def __str__ (   self)

◆ parse()

def parse (   self,
  vstring 
)

Field Documentation

◆ component_re

component_re
static

◆ version

version

◆ vstring

vstring

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