Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Python uses spaces by definition, as their syntax is indentation-based. That's why.
-
Voxera115857yConsider this.
Indentation in python determines what belongs to which scope.
If you mix spaces and tabs and have two rows after each other.
One with 4 spaces and one with 2 tabs.
How should python decide scope?
Different editors and programmers prefer different visual tab length
Some use 2 chars and some 4.
Without enforcing spaces it would make the code hard to read and in an editor that auto converts to spaces could break the code without any visible clue to the developer.
Related Rants
I guess I don't have to say anything 😒
😡😠😡😠
Why even complain about tabs....
undefined
pylint
rpi3
vs code
python