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

> Should "a = set([1,2])" be equivalent to "a = set(); a.add(1); a.add(2)"?

Why should it be? Adding elements one-by-one is slow and shouldn't be forced on the language model level.



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

Search: