integers

Boyd Roberts boyd at insultant.net
Wed Jun 6 13:20:38 CEST 2001


"Locke" <osu-nntp at portzer0.virtualave.=NOSPAM!!!=net> a écrit dans le message news:
9fjd8q$qb6$1 at charm.magnus.acs.ohio-state.edu...
> 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