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

my_dict is a dictionary while items() and friends return an iterable. Your proposed change would lead to ambiguity and confusion- what determines how we should iterate (what does it return, when is it done)? How would we define custom iterables?


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

Search: