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

Tuples are integer-indexed and contiguous in Python, you can't index them with strings, and you can't have sparse arrays.


I'm not sure how sparse arrays are relevant here?

But in any case, I guess I have to agree that integer indexing arguably counts as key-value pairs? It's definitely not the the first thing that comes to mind for me when describing them.


I'm arguing that key-value pairs are not a good way to think about tuples.


I'm definitely not going to disagree with you there.




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

Search: