Python handles globals badly.
Marko Rauhamaa
marko at pacujo.net
Fri Sep 11 00:34:11 EDT 2015
Ian Kelly <ian.g.kelly at gmail.com>:
> You can use tabs *or* spaces. If you want to mix the two, then there
> would need to be some official decision made about how many spaces
> compose a tab, and then everybody who wants to use tabs would have to
> configure their editors to conform to that decision, or risk breaking
> their code. Some people like to indent two spaces. Some people like to
> indent four spaces. On the other hand, the de facto standard for
> terminal tab width is eight spaces. However, virtually nobody prefers
> eight spaces of indentation. So the question is which standard are you
> going to adopt, and which groups are you going to upset?
Indentation preferences and the interpretation of TABs are two separate
things.
For example, in the default emacs configuration, the C indentation
levels go like this:
SPC SPC
SPC SPC SPC SPC
SPC SPC SPC SPC SPC SPC
TAB
TAB SPC SPC
etc. The TAB *key* is a command that makes emacs indent with a mix of
spaces and TABs.
Marko
More information about the Python-list
mailing list