Skip to content

Instantly share code, notes, and snippets.

@probablytom
probablytom / pdsf3.py
Last active May 19, 2020 08:45
A Python3 compatible Asp implementation
class AspectHooks:
pre_rules = list()
around_rules = list()
post_rules = list()
def __enter__(self, *args, **kwargs):
self.old_import = __import__
import builtins
@probablytom
probablytom / pdsf.py
Created June 2, 2020 09:13
PyDySoFu version 3
from inspect import isfunction, isclass, ismethod
import re
import builtins
from functools import wraps, partial, reduce
from copy import deepcopy
import ast
import copy
import inspect