| > They call it like that, but it depends on the programmer as always. There are different styles, but in general they are concise, and I like them. perl use various sigils to remain concise, while other languages take a lot of room on the screen: too many letters in the usual function names, not enough sigils within the language. It's like if everything was in binary or hex, instead of using the full range of ASCII: while technically possible, it may be harder to fit into your head Python has one sub-style I dislike the most: using tabs for indentation, because how much EXTRA room they use on the screen. It must not just be me, as there are solutions for coloring the spaces (I forked https://github.com/csdvrx/indent-rainbow to focus on black-and-white and using spaces instead of tabs) I use space to limit the issue, but I can't make python less verbose. > it gives you all the tools to shoot yourself in the foot and take away the leg with it. python isn't innocent either: I recently traced a issue where exit(0) wasn't working to a threading problem, making a bad use of atexit. |
I don’t know a single Python project that does it. You can’t mix space and tabs for indentation.
4 spaces is the default for Python formatters like black, ruff (not sure whether it is configurable—never tried to change).
Big indent is a feature—deep nesting is a code smell.