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

Public Member Functions

def __eq__ (self, other)
 
def __lt__ (self, other)
 

Static Public Attributes

 year = attrib(type=int)
 
 minor = attrib(type=int)
 
 micro = attrib(type=int)
 
 releaselevel = attrib(type=str)
 

Detailed Description

A version object that can be compared to tuple of length 1--4:

>>> attr.VersionInfo(19, 1, 0, "final")  <= (19, 2)
True
>>> attr.VersionInfo(19, 1, 0, "final") < (19, 1, 1)
True
>>> vi = attr.VersionInfo(19, 2, 0, "final")
>>> vi < (19, 1, 1)
False
>>> vi < (19,)
False
>>> vi == (19, 2,)
True
>>> vi == (19, 2, 1)
False

.. versionadded:: 19.2

Member Function Documentation

◆ __eq__()

def __eq__ (   self,
  other 
)

◆ __lt__()

def __lt__ (   self,
  other 
)

Field Documentation

◆ micro

micro = attrib(type=int)
static

◆ minor

minor = attrib(type=int)
static

◆ releaselevel

releaselevel = attrib(type=str)
static

◆ year

year = attrib(type=int)
static

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