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

Odd, since python is all about using the best way and not variants, that you would want to have some with braces and some without braces.


Sure, being "pythonic" is about having one best way.

But you're taking it to a level for snark that really isn't warranted. I can think of at least 4 ways to iterate a list. It's about doing something the easiest/best way for the circumstance.




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

Search: