Reply to post: Re: Python whitespace

Official: Perl the most hated programming language, say devs

seanb-uk

Re: Python whitespace

It's not having to type whitespace, it's the lack of a visible difference between tabs and spaces. It's not possible to tell whether the code is correctly lined up - are there four spaces or one tab? Critical to the Python interpreter, invisible to humans.

You really do have wrangle your text editor to stick to one format, and be very, very careful when pasting in code from another source. I've lost count of the number of times I've had to run an editor's "convert tabs to spaces" function to reveal why my code isn't working.

In the end I've just set my editor to show whitespace, which I think is ugly but sadly necessary.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon

Biting the hand that feeds IT © 1998–2019