Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Help to identify python module (preprocessor?) "python -m dg"

Tags:

python

On the background of this image image you can find some code, that looks like written in extended python dialect, which have to be processed with “python -m dg” to get “normal” python code. Google has no results for “python -m dg” query, and yandex.ru has only one page in cache, which briefly mention one example

python  -m dg  <<< 'sum $ map int $ str 2 ** 1000'

which seems to be equivalent of

sum(map(int, str(2**1000)))

Do you know what this is all about? I want to take a look at this tool, but can't find any links…

like image 810
Alex Laskin Avatar asked Sep 11 '11 15:09

Alex Laskin


1 Answers

dg is a custom language, that compiles to CPython 3.4 (or latest) bytecode.

Link to project on GitHub: https://github.com/pyos/dg

like image 189
Display Name Avatar answered Sep 24 '22 04:09

Display Name