Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's funny, I've been a professional python dev for 8 years or so and I can't remember a single instance of whitespace having caused a bug.

The closest I can think of is:

  if something:
    ...handle something..
  elif something_else:
    ...handle something else..
  if other_thing:
    ...handle other thing...
  elif yet_another_thing:
    ...handle yet another thing...
  else:
    ...for everything else...
If I had a frustration with python it would be the prevalence of "who needs types when we have dicts". This situation has been somewhat improved by dataclasses but lots of our code predates them by many years.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: