Hi,

I would like to remove «safe_eval» for many reasons:

    - doesn't work on Python3
    - never be sure it was really safe
    - in the past there was issue between minor version of Python

So in some place it could be replaced by plain «eval» because there are
any security concern. In other place, it could be replaced by JSON or
PYSON strings. But there are one place where it can not, it is in the
module price_list. So I'm thinking about using «simpleeval» [1] which
looks like the right tool. I still need to find if it is possible to
make it use Decimal instead of float.

Is someone has a better idea?

[1] https://pypi.python.org/pypi/simpleeval
-- 
Cédric Krier - B2CK SPRL
Email/Jabber: [email protected]
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Attachment: pgpAc4D1flW7N.pgp
Description: PGP signature

Reply via email to