another dynamic language I've used provides the '~=' operator precisely for this purpose (pun intended). So with real numbers, you use 'if u~=v:' PEP? 'a ~= b' operator equivalent to 'a-epsilon <= b <= a+epsilon'