pickle broken: can't handle NaN or Infinity under win32
Ivan Van Laningham
ivanlan at pauahtun.org
Wed Jun 22 23:22:45 EDT 2005
Hi All--
Tim Peters wrote:
> Across platforms with a 754-conforming
> libm, the most portable way is via using atan2(!):
>
> >>> pz = 0.0
> >>> mz = -pz
> >>> from math import atan2
> >>> atan2(pz, pz)
> 0.0
> >>> atan2(mz, mz)
> -3.1415926535897931
>
Never fails. Tim, you gave me the best laugh of the day.
Metta,
Ivan
----------------------------------------------
Ivan Van Laningham
God N Locomotive Works
http://www.andi-holmes.com/
http://www.foretec.com/python/workshops/1998-11/proceedings.html
Army Signal Corps: Cu Chi, Class of '70
Author: Teach Yourself Python in 24 Hours
More information about the Python-list
mailing list