A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2011-April/110839.html below:

[Python-Dev] Status of json (simplejson) in cpython

[Python-Dev] Status of json (simplejson) in cpython [Python-Dev] Status of json (simplejson) in cpythonNick Coghlan ncoghlan at gmail.com
Mon Apr 18 05:07:29 CEST 2011
On Mon, Apr 18, 2011 at 10:19 AM, Vinay Sajip <vinay_sajip at yahoo.co.uk> wrote:
> It's quite likely that I've failed to turn off the stdlib json speedups (though
> I attempted to turn them off for both encoding and decoding), which would
> explain the big disparity in the non-speedup case. Perhaps someone with more
> familiarity with stdlib json speedup internals could take a look to see what
> I've missed? I perhaps can't see the forest for the trees.

Consider trying:

import sys
sys.modules["_json"] = 0 # Block the C extension
import json

in a fresh interpreter.

(This is the same dance test.support.import_fresh_module() uses
internally to get unaccelerated modules for testing purposes)

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4