[pypy-dev] fastjson module

Maciej Fijalkowski fijall at gmail.com
Wed Jun 5 12:16:13 CEST 2013


On Wed, Jun 5, 2013 at 4:58 PM, Antonio Cuni <anto.cuni at gmail.com> wrote:
> Hi,
>
>
> On 06/05/2013 07:26 AM, Maciej Fijalkowski wrote:
>>
>> Hi anto
>>
>> if this is for speeding up json, call the module _json, as CPython
>> does (I don't care if the API is similar or not, as long as it's used
>> by json lib)
>
>
>
> yes, it is for speeding up json, but I called it differently precisely
> because the API is different (basically, my _fastjson offers a drop-in
> replacement for "json.loads", while cpython's _json offers only some of the
> functions to implement it)
>
> I think it's better to name it differently because I can imagine there are
> programs around which do things like "from _json import scanstring" for
> their own purposes, and they would be broken by our
> _json-which-is-not-really-_json module.
>
> What do the others think?

maybe they should stop doing that instead ;-) (note that from json
import scanstring also works and in fact is preferred. from _json
import scanstring would fail on pypy regardless)


More information about the pypy-dev mailing list