On 16/12/2025 22:19, Left Right via Python-list wrote:
Well the fact is an editor that does not automate indenting blocks to
one degree or another will make Python much more difficult to learn and
use, and his experience with Python will not be positive. The editor
not making Python indenting easy to manage is in reality the problem the
original poster appears to be having. Since Python uses white space as
structure, there's no real good way around this, other than using an
editor that makes that easier. Thus it's totally appropriate to suggest
a better tool.
No. Again. This is not your place. Not anyone else's to suggest users
switch their editor to anything else. What you do is just being a jerk
by not admitting the problem with Python and blaming it on the user.
It's Python designers that made bad choices that made Python difficult
to use in a simple text editor. The authors of the simple text editor
have done the right thing by making it simple.
Perhaps you are too used to the way Python looks, and see "nothing
wrong" with it. But to an outsider this thread reads similar to how a
corporate "customer satisfaction" department would try to dismiss
customer's complaints by blaming them on the customer misusing the
product, while it was obviously the product's fault.
The right thing to say is that, unfortunately, Python is this way and
due to technical problems will not be fixed. No fixes are planned. If
the user prefers to use their editor, they may choose a different
language (I mentioned Prolog earlier as an example, but there are
plenty more languages with more palatable grammar), or they will have
to learn to live with the problem. The user or their equipment is not
the cause of the problem.
Some programming languages use braces {...}, others use words begin...end, and
so on.
However, even in those languages, indentation is still recommended to make the
structure of the code clearer.
No-one's stopping you from using a simple text editor. It's just that an editor
that can auto-indent and has syntax colouring will make your life easier and
let you spot mistakes quicker.
--
https://mail.python.org/mailman3//lists/python-list.python.org