[ python-Bugs-1255395 ] float('-inf')

SourceForge.net noreply at sourceforge.net
Wed Aug 10 14:35:57 CEST 2005


Bugs item #1255395, was opened at 2005-08-10 02:15
Message generated for change (Comment added) made by mwh
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1255395&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Windows
Group: Platform-specific
Status: Open
Resolution: None
Priority: 5
Submitted By: Steven Bird (stevenbird)
Assigned to: Nobody/Anonymous (nobody)
Summary: float('-inf')

Initial Comment:
Python 2.4.1 on Windows raises "ValueError: invalid
literal for float(): -inf", though this works just fine
on unix distributions of Python 2.4.1.


----------------------------------------------------------------------

>Comment By: Michael Hudson (mwh)
Date: 2005-08-10 13:35

Message:
Logged In: YES 
user_id=6656

At most, this is a feature request (why did you think it would work?).

Floating point to string (and vice versa) conversions are done by the C 
library implementation, and sadly they are no consistent (you'll notice that 
printing an infinite value on windows doesn't print out 'inf' either).

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1255395&group_id=5470


More information about the Python-bugs-list mailing list