def _code(function):
    """Return the byte code for a function.

    If this Python interpreter does not supply the byte code for functions,
    then this function returns NaN so that all functions compare unequal.
    """
    return (function.__code__.co_code
            if hasattr(function, '__code__') else float('nan'))