On 8/25/2015 10:51 AM, R. David Murray wrote:
On Tue, 25 Aug 2015 13:11:37 -0000, "Papa, Florin" 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:


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.

Is the django_v2 benchmark original to benchmarks, or a copy from django?

Terry Jan Reedy

Search Discussions

Discussion Posts


Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 6 | next ›
Discussion Overview
grouppython-dev @
postedAug 25, '15 at 1:11p
activeAug 26, '15 at 7:49a



site design / logo © 2018 Grokbase