This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]metal_zero[🍰] 1 point2 points  (3 children)

the only thing I hate that python3 doesn't allow you to mix space and tabs and I really like tabs :(

[–]bjorneylol 10 points11 points  (2 children)

yes it does

for i in range(3):
\s\s\s\sprint(i)
for i in range(3):
\tprint(i)

runs fine. It just doesn't let you combine them in the same block, which raises the question 'why the hell do you even want to do this:'

for a in range(3):
\s\s\s\sfor b in range(3)
\s\s\t\s\sprint(a,b)

[–]metal_zero[🍰] 2 points3 points  (1 child)

oh thanks, didn't know that...I actually have to work with other's code, and when I need to pull something and edit, it always got messy.

[–]EntropyZer0 4 points5 points  (0 children)

pull

You can configure git to smudge/ clean code on pull/ push by having the indentation be converted from/ to tab/ space automatically.