/from_lambda

Decompile a Python lambda function into an expression tree

Primary LanguagePythonMIT LicenseMIT

Ad hoc lambda decompiler

This is an experiment.

Bytecode of a Python lambda function is parsed into an expression tree. An expression tree can be converted to a string, which can be compiled back into a lambda function.

Only a subset of Python expressions is supported.