c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #00793
[Bug 644267] Re: safe_eval() incompatible with python2.7's bytecode
There are more of such opcodes missing, [[ some_string[2:] ]] wont work
either: https://bugs.launchpad.net/bugs/662493
--
safe_eval() incompatible with python2.7's bytecode
https://bugs.launchpad.net/bugs/644267
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP OpenObject.
Status in OpenObject Server: New
Bug description:
openerp-server 5.0.14 when run on python 2.7 is basically useless (when using addons), due to the changes in low-level python 2.7 opcodes. The safe_eval() function in bin/tools/safe_eval.py doesn't expect the new opcodes and fails on virtually every operation. The attached patch adds the four missing py2.7 opcodes to safe_eval and fixes the problem.