Hash of None varies per-machine

Thomas Bellman bellman at lysator.liu.se
Sat Apr 4 06:25:40 CEST 2009


Steven D'Aprano <steve at REMOVE-THIS-cybersource.com.au> wrote:

> You can hash numbers no matter how big they are.

> >>> hash(float('inf'))
> 314159

Cute.  And hash(float('-inf')) is -271828...


-- 
Thomas Bellman,   Lysator Computer Club,   Linköping University,  Sweden
"God is real, but Jesus is an integer."      !  bellman @ lysator.liu.se
                                             !  Make Love -- Nicht Wahr!



More information about the Python-list mailing list