You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use boolean instead of 0/1 for condition check #93991
In Lib/filecmp.py, line 160, we use a variable ok to check a condition. We use 0/1 to denote false/true here. A better coding style is using False/True.
Pitch
First, using True/False itself is a better coding style.
Second, if 1 is slower than if True (although the difference is small).
Activity
[-]Use boolean instead of 0/1 for condition[/-][+]Use boolean instead of 0/1 for condition check[/+]pythongh-93991: Changed condition check to boolean instream of 0/1
gh-93991: Use boolean instead of 0/1 for condition check (GH-93992)
Revert 30935 defer bpo45162 to 312 (#94285)