charlie derr wrote:

>... when I try to use this generated config file with 'config_list -i' somehow 
>the 
>floating point value gets truncated (in a very pythonic way -- no rounding up) 
>to an integer (though it still retains the floating 
>point notation).


There appears to be a bug in the validation of numeric values which
causes any floating point value of a 'standard' list attribute to be
replaced by int(value). This only affects bounce_score_threshold as
that is the only 'standard' list attribute which is a floating point
value. It also only affects config_list because of the way in which
config_list processes it's input.

Note that you can work around this by using

bounce_score_threshold = '0.75'

instead of

bounce_score_threshold = 0.75

in the input file to config_list. If the value is a string, the numeric
validatation code will work as intended and return the correct
floating point value.


>I discovered that I didn't actually need a floating point value there (1.0 was 
>just as good as 0.75 for my 
>purposes, so I simply used that), but since the documentation claims that a 
>floating point value is acceptable, this seemed worth 
>reporting.


Yes. As you discovered, a threshold of 1.0 is as good as 0.75, but this
is a bug and thanks for the report.

-- 
Mark Sapiro <[EMAIL PROTECTED]>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

------------------------------------------------------
Mailman-Users mailing list
[email protected]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&amp;file=faq01.027.htp

Reply via email to