MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/gahjjm/tab_vs_spaces/fp86se6/?context=3
r/Python • u/[deleted] • Apr 29 '20
72 comments sorted by
View all comments
Show parent comments
-8
International Agreement dictates that "tab" means "round up to the next multiple of 8 spaces".
Python2 allowed tabs to be used as International Agreement provides.
Unfortunately, some people configure their editors to violate this, leading to problems, so Python3 decided to make the error deterministic.
1 u/billsil May 02 '20 International Agreement dictates that "tab" means "round up to the next multiple of 8 spaces".Not in Python 2. It means whatever is local. 1 u/o11c May 02 '20 Nope. See https://docs.python.org/2.7/reference/lexical_analysis.html#indentation 1 u/billsil May 02 '20 So teach me...seriously I'm not going to read it.
1
Not in Python 2. It means whatever is local.
1 u/o11c May 02 '20 Nope. See https://docs.python.org/2.7/reference/lexical_analysis.html#indentation 1 u/billsil May 02 '20 So teach me...seriously I'm not going to read it.
Nope. See https://docs.python.org/2.7/reference/lexical_analysis.html#indentation
1 u/billsil May 02 '20 So teach me...seriously I'm not going to read it.
So teach me...seriously I'm not going to read it.
-8
u/o11c Apr 30 '20
International Agreement dictates that "tab" means "round up to the next multiple of 8 spaces".
Python2 allowed tabs to be used as International Agreement provides.
Unfortunately, some people configure their editors to violate this, leading to problems, so Python3 decided to make the error deterministic.