[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

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

2023-09-05 Thread Dom Grigonis
I like the idea of eliminating it if it was possible. This is one of my most common syntax errors (although mostly after function signature) and I am not C/C++ programmer. I am not sure about the core technical issues, but readability of code, such as: a = 1 while a < 5: a += 1 , would suffer: