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

I'm really sorry, but this ticked off my code-review OCD and I couldn't help myself.

You could use "Bla bla bla {0}, because {0} and {0}".format("women") to avoid using a tuple of "women". Or, if you're stuck with old Python, just use %(noun)s three times and format with {"noun": "women"}.



That made me laugh!

I was hoping the compiler inside everybody's brain would be able to detect this minor inefficiencies and correct them on the fly. And yes, I was using Python2.7, I wanted to use 3.0 but the sexist libraries haven't been updated. (Just joking).

But thanks for pointing that out!




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

Search: