RubyのConfigatron風のオブジェクトをPythonで - uasiの日記風

screenshot

MOONGIFT: » 設定項目をオブジェクト的に設定、取得する「Configatron」:オープンソースを毎日紹介 これは便利だ。ただタイトルを見ても何のことやら分かりづらいと思うので例を挙げる。 たとえば何かのアプリケーションの設定を書くとき、普通にHashを使うと: # Ruby conf_hash = {} conf_hash[:foo] = 'bar' conf_hash[:user] = {} conf_hash[:user][:name] = 'Yasu' conf_hash[:user][:blog] = 'http://www.example.com/' 面...

http://d.hatena.ne.jp/uasi/20080907/1220734683

configurationいいね

http://b.hatena.ne.jp/entry/http://d.hatena.ne.jp/uasi/20080907/1220734683