pythonでprototype.js的な実装をしてみた #!/usr/bin/env python # -*- coding: utf-8 -*- import sys class Prototype: # Abstract Class def __init__(self): self.__dict__ = {} def __setattr__(self, key, value): self.__dict__[key] = value def __getattr__(self, key): return self.__dict__[key] def prototype(self, dict): for k in dict: v = dict[k] self.__setattr__(k, v) class Function: def __init__(): return None clas