File size: 589 Bytes
71687cf | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # Copyright (C) 2012 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
"""Common constants."""
from ..auxlib import NULL
# Use this NULL object when needing to distinguish a value from None
# For example, when parsing json, you may need to determine if a json key was given and set
# to null, or the key didn't exist at all. There could be a bit of potential confusion here,
# because in python null == None, while here I'm defining NULL to mean 'not defined'.
NULL = NULL
# Custom "trace" logging level for output more verbose than debug logs (logging.DEBUG == 10).
TRACE = 5
|