Coding style and Python versions (was Re: Another itertool function?)
Aahz
aahz at pythoncraft.com
Mon Apr 28 09:55:09 EDT 2003
In article <b8hc64$6n2$1 at slb9.atl.mindspring.net>,
Andrew Dalke <adalke at mindspring.com> wrote:
>
> i = i + 1
I'm a little curious why you didn't write this as
i += 1
Any reason (i.e. still need to support 1.5.2) or just habit? If the
latter, why haven't you changed your habit?
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"In many ways, it's a dull language, borrowing solid old concepts from
many other languages & styles: boring syntax, unsurprising semantics,
few automatic coercions, etc etc. But that's one of the things I like
about it." --Tim Peters on Python, 16 Sep 93
More information about the Python-list
mailing list