lucene-ruby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <yo...@apache.org>
Subject Re: Solr-ruby crashing "(eval):1: Illegal octal digit"
Date Fri, 19 Oct 2007 19:21:58 GMT
On 10/19/07, Erik Hatcher <erik@ehatchersolutions.com> wrote:
> Any objections to changing Solr's Ruby response writer to prefixing
> integers with "0d"?

I think it would look nicer to simply strip leading zeros... they
aren't valid in JSON, and Python treats it as an octal constant (will
be illegal in python 3, like ruby, I think).

Since "integer" is meant to be a legacy type that may have existing
zero padded numbers, I guess this should be done in the response
writer (in the base text writer or JSON writer).

-Yonik

Mime
View raw message