i++ in Python?

Kalle Svensson kalle at lysator.liu.se
Thu Jul 18 18:45:55 EDT 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[OtisUsenet]
> Python newbie question.  How does one do something like this in
> Python:
> 
>     # assign the value of j to i and then increment j by 1
>     i = j++

i = j
j += 1

Peace,
  Kalle
- -- 
Kalle Svensson, http://www.juckapan.org/~kalle/
Student, root and saint in the Church of Emacs.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.6 <http://mailcrypt.sourceforge.net/>

iD8DBQE9N0UZdNeA1787sd0RAvrvAJ9gJ/RAWvYBGkc/GDKiRcVLlaQN0gCgo1ib
QxJ3iUwqOOjtRfeBGhO8CAA=
=Q1pJ
-----END PGP SIGNATURE-----





More information about the Python-list mailing list