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

Hello Frank,

> python -c 'print 40/48' gives me '0', but this is version <3. Is 
> version 3 really changing this?
Yup. See http://legacy.python.org/dev/peps/pep-0238/ and
https://docs.python.org/3.1/tutorial/introduction.html#numbers

I think in python the issue was the *variables* are also typed so that eg:

a = 12
b = 13
c = b/c
print c

outputs 0 so that eg in function calls like:

def fun(a,b):
  return a/b

one can get unexpected results if a user passed in 12, 13 rather than
12.,13.

Yours,
Roland


- -- 
My email is as private as my paper mail. I therefore support encrypting
and signing email messages. Get my PGP key from http://keys.gnupg.net.

- -- 
My email is as private as my paper mail. I therefore support encrypting
and signing email messages. Get my PGP key from http://keys.gnupg.net.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlQQpUQACgkQTiFSTN7SboXjTQCeOHM7W+/858fLVMAq0LVF2nz8
04sAn1TlJxDaKwr5/p2c3FwvJ/NtVCaL
=HZb5
-----END PGP SIGNATURE-----
_______________________________________________
Users mailing list
[email protected]
http://cactuscode.org/mailman/listinfo/users

Reply via email to