integers

Jonathan Gardner gardner at cardomain.com
Tue Jun 5 16:55:57 EDT 2001


Locke wrote:
> is there such thing as
> someint++
> or
> someint--
> or
> someint += 2
> in python??
> 
> it is a pain in the butt writing
> someint = someint + 1
> 
> Thanks!

It's also a pain in the butt writing someint += 1 (Yes, I know I am very 
lazy).

What is the reason that python doesn't have increment or decrement 
operators?



More information about the Python-list mailing list