refactor correct usage of boolean and automate test/search for that

Issue #525 wontfix
Reimar Bauer created an issue

For better readable code we should use for boolean True or False and not 1 or 0 (any other from 1 different number). The integers used get casted automaticly so we don’t have an error.

But sometimes I read the codebase I see zorder=1, zorder=3 or Display(visible=0, size=(1280, 1024)). At some point this can give misleading ideas. We should have a clear separation.

Before this gets done we should have pytest or another option be able to analyze our usage.

Comments (4)

  1. Log in to comment