(ASP) input value type: python

Open
#451 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Active
Tech stack
python
Domain
backend

Research direction

Start by reading the examples in the issue and tracing how val and python_eval handle input values in the Python project. The issue asks for examples of user input using val(python, X) and clarification of the intended use; done means the usage is explained with a relevant example.

Written by the indexing model from the issue text.

Description

constraint-handler 2

@wanko

add(val(int, 2), python_eval(val(str, "gcd(x,y)", ((x,val(int,15)),(y,val(int,20))))

and

add(val(int, 2), val(int, 5))

both look plausible to me.

add(val(int, 2), val(python, "5"))

does not.

What are the examples of user input where val(python, X) is used. Maybe I misunderstood.

Dominant language
Python
Stars
4
Forks
0
Avg merge
2d 9h
Merged PRs (30d)
19

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from potassco/constraint-handler

All issues in potassco/constraint-handler

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.