NOTSET

(class from pyomo.common.flags)

class pyomo.common.flags.NOTSET(*args, **kwargs)[source]

Bases: object

Class to be used to indicate that an optional argument was not specified, if None may be ambiguous. Usage:

Examples

>>> def foo(value=NOTSET):
...     if value is NOTSET:
...         pass  # no argument was provided to `value`
__init__()

Methods

__init__()

Member Documentation