Unnecessary executions

Open
#247 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@AbdallahS is already working on this.

Since Apr 15, 2026.

Assessment

This issue has not been assessed yet.

Description

In the grounding, rules are created stating:
_execution_exec("c0"),error(statement(pythonError),"(Statement(symbol=<StatementWarning.pythonError: 'pythonError'>), NameError(\"name 'x' is not defined\"))")):-_execution_mapped("c0"),()).

when using a statement_python and the variable is clearly declared as input for the execution_declare.

A similar error is:

TypeError(\"'>=' not supported between instances of 'NoneType' and 'int'\"))")

As apparently None is some kind of default.

This is technically not wrong but could probably be improved.

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.