When run as
python -m main
the expected output is
[abu] patched dolly
[main] Abu
That's because we are patching the dolly
module and the Dolly
class is now the Abu
class.
import typing as _t | |
from collections import defaultdict | |
from enum import Enum | |
from random import choice | |
class TileColor(Enum): | |
GRAY = 0 | |
YELLOW = 1 | |
GREEN = 2 |
# Use as | |
# | |
# import deps | |
# | |
# deps.install(dict(requests="2.28.1")) | |
# | |
import json | |
import os | |
import site |
When run as
python -m main
the expected output is
[abu] patched dolly
[main] Abu
That's because we are patching the dolly
module and the Dolly
class is now the Abu
class.
class Map(dict): | |
"""Element of a free module over a ring.""" | |
def __add__(self, other): | |
m = Map(self) | |
for k, v in other.items(): | |
n = m.setdefault(k, v.__class__()) + v | |
if not n and k in m: | |
del m[k] | |
continue |
CXXFLAGS := \ | |
-O0 -g -Wall \ | |
-march=native -mtune=native \ | |
-I/usr/local/opt/libunwind-headers/include | |
ifeq ($(shell uname), Linux) | |
LDFLAGS := -lunwind | |
endif | |
TARGETS := \ |