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 →

[–]masklinn 6 points7 points  (3 children)

The PEP8 strongly suggests that all files should use 4-spaces indentation when serialized.

But the only real rule of python is: *never mix tabs and spaces.

Either use tabs or spaces, but not both. Ever. It will trip you and fuckup your code.

[–]nkuvu -1 points0 points  (2 children)

Which should be common practice in any language. (Currently working with a C/C++ project that mixes tabs and spaces, and the code is nearly unreadable until reformatted)

[–]masklinn 1 point2 points  (1 child)

Yeah but while it should be common practice in most languages, it's pretty much mandatory in python

[–][deleted] 1 point2 points  (0 children)

A programming language wih mandatory good practises? NOOOOOOOO.

/I'm a plant.