yaru22 wrote:
In the exercise in my book, it asks me to try print "%u" % (-5)
I'm wondering what this %u mean?
Looks like there is *no* difference between '%u' and '%d' in Python.
Python 2.4.3 source code:
from stringobject.c, formatint function....
if (x < 0 && type == 'u') {
type = 'd';
}
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (MingW32)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org
iD8DBQFEiO6brgn0plK5qqURApDpAKCu4v6Q9AC1VUIU2bX1be LuC1pMMgCfQbIM
duEz2HjDy5ZvnQi6Ii1VwUY=
=tk7r
-----END PGP SIGNATURE-----