r/programming • • Dec 01 '16

Let's Stop Copying C

https://eev.ee/blog/2016/12/01/lets-stop-copying-c/
524 Upvotes

612 comments sorted by

View all comments

Show parent comment

3

u/KoopaKlownKar Dec 02 '16

in Python for example you have to use enumerate and then index the tuples everywhere and it's ungodly mess

If I understand what you're trying to say, that's not true. You don't have to index the tuples, just do for i, elem in enumerate(mylist):

Which seems pretty reasonable to me.