Changed the statement float('inf') to 1e300 for portability.
This change fixes bug #6873 (https://gna.org/bugs/?func=detailitem&item_id=6873).
Authored by: bugman 2006-09-05
Parent: [r2554]
Child: [r2556]