[Python-ideas] Revise using the colon ( : )

2023-09-06 Thread Stephen J. Turnbull
Morteza Mirzakhan writes: > In my opinion, using a colon after keywords such as `if`, `elif`, > `else`, `for`, `while`, `try`, `except`, and `finally` is quite > unnecessary. Sure, but that would be a different language. I like the formality of the colon, and it helps in visually parsing the

[Python-ideas] Revise using the colon ( : )

2023-09-05 Thread Morteza Mirzakhan
Dear Python Developers, I would like to share my thoughts on the use of the colon mark “:” in Python code. In my opinion, using a colon after keywords such as `if`, `elif`, `else`, `for`, `while`, `try`, `except`, and `finally` is quite unnecessary. Using mandatory indentation in Python to