We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b82183b commit a36f152Copy full SHA for a36f152
3 files changed
doc/data/messages/s/singleton-comparison/bad.py
@@ -0,0 +1,3 @@
1
+game_won = True
2
+if game_won == True: # [singleton-comparison]
3
+ print("Game won !")
doc/data/messages/s/singleton-comparison/good.py
+if game_won:
doc/data/messages/s/singleton-comparison/related.rst
@@ -0,0 +1 @@
+* `PEP 285 – Adding a bool type <https://peps.python.org/pep-0285/>`_
0 commit comments