

@dispatch(DateTimeTruncate)
def _print_python(expr, leaves=None):
    (child, scope) = print_python(leaves, expr._child)
    scope['truncate'] = pydatetime.truncate
    return (('truncate(%s, %s, "%s")' % (child, expr.measure, scope.unit)), scope)

dataset/ETHPy150Open blaze/blaze/blaze/compute/pyfunc.py _print_python/VarMisuse@56/80 `expr`->`scope`