[Python-Dev] New math functions

Raymond Hettinger python at rcn.com
Tue Feb 12 07:52:30 CET 2008


Was some thought given to possibly adding these as
float methods instead of as separate functions?

     float.isinf()
     float.isnan()

Also, it would be useful to have a new method, float.is_integer().  This would be better than the current approach where we make the 
test:  if x == floor(x).


Raymond 


More information about the Python-Dev mailing list