(messed up CC on last email, re-sending to list)

On Sat, Apr 5, 2008 at 7:01 PM, Robert Brewer <[EMAIL PROTECTED]> wrote:

> Re: Representation of Fractional Numbers, there are two solutions. If you
> return decimals, people using JS on the other end are going to call
> float(d). If you return floats, people not using JS on the other end are
> going to go use a different library. I suggest the former is more acceptable
> than the latter for a stdlib offering. Allowing the caller of parse() to
> choose would be even better.


I don't understand what you mean, here. generate ([decimal.Decimal ('1.1')])
-> '[1.1]', so a JavaScript user calling eval() on it would get a standard
JavaScript float object without having to call float() explicitly.
_______________________________________________
Web-SIG mailing list
Web-SIG@python.org
Web SIG: http://www.python.org/sigs/web-sig
Unsubscribe: 
http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com

Reply via email to