r/Python • • Apr 29 '20

Discussion Tab vs Spaces

Post image
702 Upvotes

72 comments sorted by

View all comments

0

u/[deleted] Apr 30 '20

[deleted]

-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.

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.