On 3/4/2011 12:07 AM, Chris Rebert wrote:
On Thu, Mar 3, 2011 at 9:05 PM, Dan Stromberg<drsali...@gmail.com> wrote:
On Thu, Mar 3, 2011 at 8:48 PM, Chris Rebert<c...@rebertia.com> wrote:
On Thu, Mar 3, 2011 at 8:41 PM, monkeys paw<mon...@joemoney.net> wrote:
Does python have an analogy to c/perl incrementer?
e.g.
i = 0
i++
i += 1
If you're doing this for a list index, use enumerate() instead.
There's been discussion of adding i++ to python, but it was felt that the
small number of saved keystrokes didn't justify the resulting bugs. I
agree.
Out of curiosity, what resulting bugs?
Cheers,
Chris
no bugs, just less keystrokes than: i = i + 1
This is in interger form, BTW.
--
http://mail.python.org/mailman/listinfo/python-list