fix Issue 10004 - tuple comparison with side-effect should work
Merge pull request #1947 from 9rnsr/fix10004

Issue 10004 - tuple comparison with side-effect should work