Did I find the right examples for you? yes no

All Samples(24)  |  Call(1)  |  Derive(11)  |  Import(12)

        def hashable(x):
    try:
        hash(x)
        return True
    except TypeError:
        return False
        


src/l/o/logpy-HEAD/logpy/variable.py   logpy(Download)
from contextlib import contextmanager
from .util import hashable
from .dispatch import dispatch
 
_global_logic_variables = set()
def isvar(o):
    return not not _glv and hashable(o) and o in _glv
 
 
@contextmanager