Why does Python's hash of infinity have the digits of π?
Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 5
--
Chapters
00:00 Question
00:24 Accepted answer (Score 49)
00:56 Answer 2 (Score 228)
06:10 Answer 3 (Score 13)
06:54 Thank you
--
Full question
https://stackoverflow.com/questions/5622...
Question links:
[pi]: https://en.wikipedia.org/wiki/Pi
Accepted answer links:
[defined as a constant]: https://github.com/python/cpython/blob/3...
Answer 2 links:
[_PyHASH_INF]: https://github.com/python/cpython/blob/a...
[by Tim Peters in 2000]: https://github.com/python/cpython/commit...
[is also available]: https://docs.python.org/3/library/sys.ht...
[with PyPy]: https://tio.run/##NYwxCsAgDEV3T9FRh7r0QO...
[hash]: https://docs.python.org/3/library/functi...
[tp_hash]: https://docs.python.org/3/c-api/typeobj....
[is]: https://github.com/python/cpython/blob/a...
[defined]: https://github.com/python/cpython/blob/a...
[has]: https://github.com/python/cpython/blob/a...
[defined as]: https://github.com/python/cpython/blob/a...
[Tim Peters]: https://en.wikipedia.org/w/index.php?tit...
[39dce293]: https://github.com/python/cpython/commit...
[http://sourceforge.net/bugs/?func=detail...]: http://sourceforge.net/bugs/?fun
[e]: https://en.wikipedia.org/wiki/e_(mathema...)
[By Mark Dickinson in Apr 2010]: https://github.com/python/cpython/commit...
[also]: https://github.com/python/cpython/commit...
[By Mark Dickinson in Apr 2010]: https://github.com/python/cpython/commit...
[also]: https://github.com/python/cpython/commit...
[By Mark Dickinson in May 2010]: https://github.com/python/cpython/commit...
[issue 8188]: https://bugs.python.org/issue8188
[its current implementation]: https://docs.python.org/3/library/stdtyp...
[By Raymond Hettinger in Jan 2011]: https://github.com/python/cpython/commit...
[here]: https://docs.python.org/3/whatsnew/3.2.h...
[By Stefan Krah in Mar 2012]: https://github.com/python/cpython/commit...
[By Christian Heimes in Nov 2013]: https://github.com/python/cpython/commit...
Answer 3 links:
[it's -314159 now]: https://docs.python.org/3/library/stdtyp...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #math #hash #floatingpoint #pi
#avk47
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 5
--
Chapters
00:00 Question
00:24 Accepted answer (Score 49)
00:56 Answer 2 (Score 228)
06:10 Answer 3 (Score 13)
06:54 Thank you
--
Full question
https://stackoverflow.com/questions/5622...
Question links:
[pi]: https://en.wikipedia.org/wiki/Pi
Accepted answer links:
[defined as a constant]: https://github.com/python/cpython/blob/3...
Answer 2 links:
[_PyHASH_INF]: https://github.com/python/cpython/blob/a...
[by Tim Peters in 2000]: https://github.com/python/cpython/commit...
[is also available]: https://docs.python.org/3/library/sys.ht...
[with PyPy]: https://tio.run/##NYwxCsAgDEV3T9FRh7r0QO...
[hash]: https://docs.python.org/3/library/functi...
[tp_hash]: https://docs.python.org/3/c-api/typeobj....
[is]: https://github.com/python/cpython/blob/a...
[defined]: https://github.com/python/cpython/blob/a...
[has]: https://github.com/python/cpython/blob/a...
[defined as]: https://github.com/python/cpython/blob/a...
[Tim Peters]: https://en.wikipedia.org/w/index.php?tit...
[39dce293]: https://github.com/python/cpython/commit...
[http://sourceforge.net/bugs/?func=detail...]: http://sourceforge.net/bugs/?fun
[e]: https://en.wikipedia.org/wiki/e_(mathema...)
[By Mark Dickinson in Apr 2010]: https://github.com/python/cpython/commit...
[also]: https://github.com/python/cpython/commit...
[By Mark Dickinson in Apr 2010]: https://github.com/python/cpython/commit...
[also]: https://github.com/python/cpython/commit...
[By Mark Dickinson in May 2010]: https://github.com/python/cpython/commit...
[issue 8188]: https://bugs.python.org/issue8188
[its current implementation]: https://docs.python.org/3/library/stdtyp...
[By Raymond Hettinger in Jan 2011]: https://github.com/python/cpython/commit...
[here]: https://docs.python.org/3/whatsnew/3.2.h...
[By Stefan Krah in Mar 2012]: https://github.com/python/cpython/commit...
[By Christian Heimes in Nov 2013]: https://github.com/python/cpython/commit...
Answer 3 links:
[it's -314159 now]: https://docs.python.org/3/library/stdtyp...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #math #hash #floatingpoint #pi
#avk47