PyFrag
Public Member Functions | Public Attributes | List of all members
qmworks.utils.Maybe Class Reference

Public Member Functions

def __init__ (self, value)
 
def __bool__ (self)
 
def __format__ (self, spec)
 
def __str__ (self)
 

Public Attributes

 value
 

Detailed Description

Wrapper to allow formatted printing of variables that may contain either a value or None
Example: print("{:10.2f}".format(Maybe(None))

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