Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(18)  |  Call(12)  |  Derive(0)  |  Import(6)

src/p/a/parakeet-0.23.2/parakeet/frontend/ast_conversion.py   parakeet(Download)
from ..syntax.helpers import (none, true, false, one_i64, zero_i64, zero_i24,  
                              is_python_constant, const)
from ..syntax.wrappers import build_untyped_prim_fn, build_untyped_expr_fn, build_untyped_cast_fn
 
 
  def translate_value_call(self, value, positional, keywords_dict= {}, starargs_expr = None):
    if value is sum:
      return mk_reduce_call(build_untyped_prim_fn(prims.add), positional, zero_i24)
 
    elif value is max:
      if len(positional) == 1:
        return mk_reduce_call(build_untyped_prim_fn(prims.maximum), positional)
    elif value is min:
      if len(positional) == 1:
        return mk_reduce_call(build_untyped_prim_fn(prims.minimum), positional)
      else:
        assert len(positional) == 2
 
  if isinstance(fn, Prim):
    fundef = build_untyped_prim_fn(fn)
  elif isinstance(fn, (Type, np.dtype, int, bool, long, float)):
    fundef = build_untyped_cast_fn(fn)

src/p/a/parakeet-HEAD/parakeet/frontend/ast_conversion.py   parakeet(Download)
from ..syntax.helpers import (none, true, false, one_i64, zero_i64, zero_i24,  
                              is_python_constant, const)
from ..syntax.wrappers import build_untyped_prim_fn, build_untyped_expr_fn, build_untyped_cast_fn
 
 
  def translate_value_call(self, value, positional, keywords_dict= {}, starargs_expr = None):
    if value is sum:
      return mk_reduce_call(build_untyped_prim_fn(prims.add), positional, zero_i24)
 
    elif value is max:
      if len(positional) == 1:
        return mk_reduce_call(build_untyped_prim_fn(prims.maximum), positional)
    elif value is min:
      if len(positional) == 1:
        return mk_reduce_call(build_untyped_prim_fn(prims.minimum), positional)
      else:
        assert len(positional) == 2
 
  if isinstance(fn, Prim):
    fundef = build_untyped_prim_fn(fn)
  elif isinstance(fn, (Type, np.dtype, int, bool, long, float)):
    fundef = build_untyped_cast_fn(fn)

src/p/a/parakeet-0.23.2/parakeet/type_inference/type_inference.py   parakeet(Download)
                              one_i64, zero_i64, none, true, false, 
                              gen_data_arg_names, unwrap_constant)
from ..syntax.wrappers import build_untyped_prim_fn, build_untyped_cast_fn
 
 
      expr = build_untyped_cast_fn(f)
    elif isinstance(f, prims.Prim):
      expr = build_untyped_prim_fn(f)
    else:
      expr = f 

src/p/a/parakeet-HEAD/parakeet/type_inference/type_inference.py   parakeet(Download)
                              one_i64, zero_i64, none, true, false, 
                              gen_data_arg_names, unwrap_constant)
from ..syntax.wrappers import build_untyped_prim_fn, build_untyped_cast_fn
 
 
      expr = build_untyped_cast_fn(f)
    elif isinstance(f, prims.Prim):
      expr = build_untyped_prim_fn(f)
    else:
      expr = f 

src/p/a/parakeet-0.23.2/parakeet/frontend/type_conv_decls.py   parakeet(Download)
def typeof_prim(p):
  from ..syntax.wrappers import  build_untyped_prim_fn
  untyped_fn = build_untyped_prim_fn(p)
  return make_closure_type(untyped_fn, ())
 

src/p/a/parakeet-HEAD/parakeet/frontend/type_conv_decls.py   parakeet(Download)
def typeof_prim(p):
  from ..syntax.wrappers import  build_untyped_prim_fn
  untyped_fn = build_untyped_prim_fn(p)
  return make_closure_type(untyped_fn, ())