2010-02-13から1日間の記事一覧
def __getattr__(self, name): if spam(name): return egg raise AttributeError("'{0.__class__.__name__} object has no attribute '{1}''" .format(self, name)) といったコードは、委譲!委譲!委譲!を実践すると良く書きますが、 毎回、"'{0.__class__…
def __getattr__(self, name): if spam(name): return egg raise AttributeError("'{0.__class__.__name__} object has no attribute '{1}''" .format(self, name)) といったコードは、委譲!委譲!委譲!を実践すると良く書きますが、 毎回、"'{0.__class__…