Le 08/11/2018 à 15:45, Daniel Krenn a écrit :
On 2018-11-08 08:08, Vincent Delecroix wrote:
Python 3 introduced randomness in their base hashing functions. That
impact strings.

$ python -c 'print(hash("hello Daniel!"))'
-4203807413548925149
$ python -c 'print(hash("hello Daniel!"))'
7756578277334792321

I wasn't aware of this, thank you for letting me know.

Of course in a given Python session hash are coherent :-)
(and I guess it is also coherent among possible threads)

--
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to