Skip to content

Instantly share code, notes, and snippets.

Avatar

Structure and Interpretation of Computer Programs metaperl

View GitHub Profile
View exception_handler.py
class _ExceptionHandlerBase:
def __init__(self, handler_map):
self._handler_map = handler_map
def __call__(self, func):
def wrapper(*args, **kwargs):
with self:
func(*args, **kwargs)
return wrapper
@hrldcpr
hrldcpr / tree.md
Last active August 21, 2023 17:51
one-line tree in python
View tree.md