Great to know! Thank you

On Fri, May 3, 2013 at 1:31 PM, Niphlod <niph...@gmail.com> wrote:

> a little correction..... serializers.py in trunk now "inverts" the order
> of imports
> it tries simplejson (cause newer versions of simplejson as an external
> module are always faster than the standard json shipped with python from
> 2.6 on)
> then uses json
> then uses contrib.simplejson
> However, if you want to be "uber-compatible" it's best to use always what
> Alan suggested (using serializers) so you can "lean" on the "smart-import"
> that it does by default.
>
>
> On Friday, May 3, 2013 3:46:32 AM UTC+2, Alan Etkin wrote:
>>
>> Ouch. I must have used old version of web2py than.
>>> I always imported simplejson as "import simplejson as json"
>>> I totally forgot to replicate my setup before terminating my linode
>>> server.
>>>
>>
>> Maybe you had simplejson installed in your old o.s., so you could simply
>> import it directly.
>>
>> You could do this instead:
>>
>> >>> from serializers import json_parser as json
>>
>> It tries json stdlib, then an installed simplejson, and as fallback the
>> module included in contrib.
>>
>>  --
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/qRO3Lzm9hWs/unsubscribe?hl=en.
> To unsubscribe from this group and all its topics, send an email to
> web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to