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/2015-August/141340.html below:

[Python-Dev] django_v2 benchmark compatibility fix for Python 3.6

[Python-Dev] django_v2 benchmark compatibility fix for Python 3.6 [Python-Dev] django_v2 benchmark compatibility fix for Python 3.6R. David Murray rdmurray at bitdance.com
Tue Aug 25 16:51:58 CEST 2015
On Tue, 25 Aug 2015 13:11:37 -0000, "Papa, Florin" <florin.papa at intel.com> wrote:
> My name is Florin Papa and I work in the Server Languages Optimizations Team at Intel Corporation.
> 
> I would like to submit a patch that solves compatibility issues of the django_v2 benchmark in the Grand Unified Python Benchmark. The django_v2 benchmark uses inspect.getargspec(), which is deprecated and was removed in Python 3.6. Therefore, it crashes with the message "ImportError: cannot import name 'getargspec'" when using the latest version of Python on the default branch.
> 
> The patch modifies the benchmark to use inspect.signature() when Python version is 3.6 or above and keep using inspect.getargspec() otherwise.

Note that Papa has submitted the patch to the tracker:

    http://bugs.python.org/issue24934

I'm not myself sure how we are maintaining that repo
(https://hg.python.org/benchmarks), but it does seem like the bug
tracker is the right place for such a patch.

--David
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