Skip to content

Instantly share code, notes, and snippets.

@polyvertex
polyvertex / mathexp.py
Last active February 16, 2016 15:07 — forked from miohtama/gist:34a83d870a14aa7e580d
Safe evaluation of math expressions in Python, using byte code verifier and eval()
""""
The orignal author: Alexer / #python.fi
"""
import opcode
import dis
import sys
import multiprocessing