Ignore:
Timestamp:
05/15/06 14:43:58 (8 years ago)
Author:
xi
Message:

Dynamically determine the inf and nan values. Should fix #14.
Thanks to Scott Daniels for the report and the patch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pyyaml/trunk/lib/yaml/constructor.py

    r147 r168  
    232232            return sign*int(value) 
    233233 
    234     inf_value = 1e300000 
     234    inf_value = 1e300 
     235    while repr(inf_value) != repr(inf_value*inf_value): 
     236        inf_value *= inf_value 
    235237    nan_value = inf_value/inf_value 
    236238 
Note: See TracChangeset for help on using the changeset viewer.