GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||
GeezerVison is showing github.com — Segfault when an optional value is passed to a Python-implemented function · Issue #113 · cel-expr/cel-python Open DescriptionWhat happens Passing a CEL optional to a function whose overload has a Python Reproduce import sys from cel_expr_python import cel from cel_expr_python.ext import ext_optional def show(x): return "ok" env = cel.NewEnv( variables={"m": cel.Type.DYN}, extensions=[ext_optional.ExtOptional()], functions=[cel.FunctionDecl("show", [ cel.Overload("show_any", cel.Type.STRING, [cel.Type("any")], impl=show), ])], ) act = env.Activation({"m": {"a": 1}}) print(env.compile("show(m)").eval(act).value(), flush=True) # ok print(env.compile(sys.argv[1]).eval(act).value(), flush=True)
Expected An evaluation error, as the list case already gives, or the optional handed to Likely cause
Versions cel-expr-python 0.1.3 from PyPI, and ActivityMetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions | ||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |