xcsp3team / pycsp3

A Python Library for modeling combinatorial constrained problems
https://www.pycsp.org
MIT License
60 stars 9 forks source link

Variable name "values" should be avoided #37

Closed al2048 closed 1 year ago

al2048 commented 1 year ago

Examples Auctions.py, SetCovering.py and SetPacking.py use a variable named "values" which collides with the pycsp3.values() function when including solving.

xcsp3team commented 1 year ago

The local variables "values" have been renamed in these three models. A new version on Pypi will be posted soon.

Note sure that we can anticipate such colliding problems (or by analyzing the code of the model?)