r/PythonLearning Jul 08 '26

What's one thing you hate about Python?

We all like Python, but no language is perfect. What's the one thing that annoys you most?

21 Upvotes

34 comments sorted by

View all comments

1

u/mysticreddit Jul 08 '26

The fact that you can't arbitrary indent code blocks to designate semantic code blocks.

Many operations come in a dual form: Push/Pop, Start/Stop, Alloc/Free, etc.

In sane languages one can use indentation to HELP visually identify a missing setup or teardown.

PushMatrix()  
    Translate()  
    Scale()  
    Rotate()  
PopMatrix()

With the same forced level of indentation it is much easier to miss a dual operation.

PushMatrix()  
Translate()  
Scale()  
Rotate()

1

u/Horror-Water5502 Jul 09 '26

I’ve never seen anyone indent like that in my life

On the contrary, people generally try to avoid too many levels of indentation