[New-bugs-announce] [issue15834] 2to3 benchmark not working under Python 3

Brett Cannon report at bugs.python.org
Sat Sep 1 00:27:20 CEST 2012

New submission from Brett Cannon:

2to3 isn't (ironically) translating lib2to3 so that it can run under Python 3:

File "/Users/bcannon/Developer/repo/benchmarks_py3k/lib/2to3/lib2to3/fixes/fix_operator.py", line 89, in _check_method
    method = getattr(self, "_" + results["method"][0].value.encode("ascii"))

Might need to let Python 3 use its stdlib copy of lib2to3. Otherwise will need to come up with a way to have two copies of a library, one for Python 2 and another for Python 3, and then copy the right thing. Maybe a lib3 directory that is only copied over by make_perf3.sh?

assignee: collinwinter
components: Benchmarks
messages: 169587
nosy: brett.cannon, collinwinter, pitrou
priority: normal
severity: normal
stage: needs patch
status: open
title: 2to3 benchmark not working under Python 3

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list