2 ms·
I do use python for work from time to time (not every day, but probably every week) and I still occasionally have problems with whitespace. It's one of the most
by smsm42 14y ago
I do use python for work from time to time (not every day, but probably every week) and I still occasionally have problems with whitespace. It's one of the most annoying things with Python, especially if editing somebody else's code or working in foreign environment (another machine, etc.) where tools aren't configured in your standard way.
- andybak 14y agoPEP8: "Use 4 spaces per indentation level." If you're getting code from someone else in your company which doesn't, just hit them round the head with PEP8 until they learn.
- smsm42 14y agoIt's easy to write a PEP, it's less easy to configure every editor in existence to use exactly 4 spaces, especially when normal humans prefer hitting tab once instead of hitting space 4 times.