Hacker News new | past | comments | ask | show | jobs | submit login

>Same thing passed to list and set constructors (which you'd never do because we have the special comprehension syntax for those

I do this all the time (for set) because it works even in python 2.6. Also dict((key, value) for foo in bar). In fact, I think it was a bad idea to add special comprehension syntax for sets and dicts.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: