I made Python my language of choice because of its readability and simpleness, and not because of its speed. But it's always good to know what is the fastest sometimes when you don't want to write a module in C. So I was just wondering if there was a difference. There is, of a few percent. Anyway I will keep on using the 2% slower "i += 1" because for me that's less prone to errors because you write the variable only once, and that's more important than speed. -- http://mail.python.org/mailman/listinfo/python-list
- Re: relative speed of increment... Andreas Löscher
- Re: relative speed of increment... Chris Angelico
- Re: relative speed of increment... Terry Reedy
- Re: relative speed of increment... Steven D'Aprano
- Re: relative speed of increment... Christian Heimes
- Re: relative speed of increment... Stephen Hansen
- Re: relative speed of incremention ... Laurent
- Re: relative speed of incremention ... Steven D'Aprano
- Re: relative speed of incremention syntaxes ... Hans Mulder
- Re: relative speed of incremention syntaxes (or "i=i... Nobody
- Re: relative speed of incremention syntaxes (or &quo... Laurent Payot
- Re: relative speed of incremention syntaxes (or &quo... Terry Reedy