Skip to content

Instantly share code, notes, and snippets.

View rdswift's full-sized avatar

Bob Swift rdswift

  • Stony Plain, Alberta, Canada
View GitHub Profile
@baileyparker
baileyparker / persistent_decorator.py
Last active January 25, 2018 18:47
MetaBrainz chatbox voting plugin cleanup for codereview.stackexchange.com
from functools import wraps
from inspect import ismethod
class PersistentDecorator(object):
def __init__(self, decorated_object, save):
self._decorated_object = decorated_object
self._save = save
def __getattribute__(self, attr):