Source code for pystdutils.python_utils

#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# date:        2019/10/12
# author:      he.zhiming
#

from __future__ import (absolute_import, unicode_literals)


[docs]def is_none(value): return value is None
[docs]def is_not_none(value): return not is_none(value)
[docs]def is_empty(value): if not value: return True else: return False
[docs]def is_not_empty(value): return not is_empty(value)
[docs]def shadow_equal(a, b): return a == b
[docs]def deep_equal(a, b): return a is b