On Jun 7, 2010, at 06:12 , Florent Hivert wrote:
Hi there,
I've question concerning handling of hash value vs portability. Is
sage
developer guide manual one can read:
Here is the definition of __hash__ from the Python reference
manual.
Called for the key object for dictionary operations, and by the
built-in function hash(). Should return a 32-bit integer
usable as a
hash value for dictionary operations.
However with ipython (on a 64 bits machine):
In [1]: hash(None)
Out[1]: 140504985179472
which definitely does looks like a 32 bit value.
Just checking: you meant "does *not* look like", right?
Justin
--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
-----------
I'm beginning to like the cut of his jibberish.
-----------
--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org