memesearch
Python Infinity Hash Surprise

Python Infinity Hash Surprise

Download Find similar pictures
Text on the meme
>>> inf = float("infinity") >>> inf inf >>> hash(inf) 314159 >>> hash(-inf) -314159 >>>
What it means

A Python interactive shell shows that positive and negative infinity have hash values of 314159 and -314159. The joke is that Python uses digits of pi for infinity’s hash, creating an unexpectedly mathematical programming detail that works as a nerdy reaction to something boundless or absurd. EN: A Python interactive shell shows that positive and negative infinity have hash values of 314159 and -314159. The joke is that Python uses digits of pi for infinity’s hash, creating an unexpectedly mathematical programming detail that works as a nerdy reaction to something boundless or absurd.

Objects
Tags
Source
Type
image
Size
720×277 · 13.5 KiB
Mood
nerdy, absurd
Language
en
Added