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

Public Member Functions

def __new__ (cls)
 
def __repr__ (self)
 
def __bool__ (self)
 
def __len__ (self)
 

Detailed Description

Sentinel class to indicate the lack of a value when ``None`` is ambiguous.

``_Nothing`` is a singleton. There is only ever one of it.

.. versionchanged:: 21.1.0 ``bool(NOTHING)`` is now False.

Member Function Documentation

◆ __bool__()

def __bool__ (   self)

◆ __len__()

def __len__ (   self)

◆ __new__()

def __new__ (   cls)

◆ __repr__()

def __repr__ (   self)

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