Boyd Roberts boyd at
Wed Jun 6 07:20:38 EDT 2001

"Locke" <osu-nntp at portzer0.virtualave.=NOSPAM!!!=net> a écrit dans le message news:
9fjd8q$qb6$1 at
> is there such thing as
> someint++
> or
> someint--
> or
> someint += 2
> in python??
> it is a pain in the butt writing
> someint = someint + 1

the real reason it's in C is that the PDP-11 had autoincrement and
autodecrement instructions and it stayed 'cos it's easy to type.

More information about the Python-list mailing list