Bug#606382: peak.util.assembler: better support for Python 2.7
Hi Jakub (2010.12.08_21:57:48_+0200)
affects 606382 turbojson
thanks
> | * Support for backward emulation of Python 2.7's JUMP_IF_TRUE_OR_POP
> | and JUMP_IF_FALSE_OR_POP instructions on earlier Python versions; these
> | emulations are also used in BytecodeAssembler's internal code
> | generation, for maximum performance on 2.7+ (with no change to
> | performance on older versions).
Missing this is causing turbojson to be unusable with Python 2.7, and
FTBFS when it is default (as on Ubuntu):
| ...
| File "/usr/lib/pymodules/python2.7/peak/util/assembler.py", line 221, in TryExcept
| next_test.JUMP_IF_FALSE, Code.POP_TOP, # remove condition
| AttributeError: 'Label' object has no attribute 'JUMP_IF_FALSE'
https://launchpad.net/ubuntu/+source/turbojson/1.3.1-1/+build/2471816/+files/buildlog_ubuntu-oneiric-i386.turbojson_1.3.1-1_FAILEDTOBUILD.txt.gz
SR
--
Stefano Rivera
http://tumbleweed.org.za/
H: +27 21 465 6908 C: +27 72 419 8559 UCT: x3127
Reply to: