<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>XaroCydeykn</author_name>
  <author_url>https://blog.hatena.ne.jp/XaroCydeykn/</author_url>
  <blog_title>何かを書き留める何か</blog_title>
  <blog_url>https://xaro.hatenablog.jp/</blog_url>
  <categories>
    <anon>Effective Python</anon>
    <anon>Python</anon>
  </categories>
  <description>『Effective Python』の続き。リファクタリング！ Effective Python › The Bookwww.effectivepython.com Pythonの辞書は便利だなあと思いつつ、次から次へと湧いてくる仕様変更・追加機能に対応していくと酷い目に合う。 生徒の成績を管理するコンテナを作るという題材で、継ぎ足し継ぎ足しで作られたのが次のコード。 class WeightedGradebook(object): def __init__(self): self._grades = {} def add_student(self, name): self._grades[n…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxaro.hatenablog.jp%2Fentry%2F2015%2F07%2F11%2F024200&quot; title=&quot;『Effective Python』Item 22: 辞書やタプルで保持するよりもヘルパークラスを使おう - 何かを書き留める何か&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-07-11 02:42:00</published>
  <title>『Effective Python』Item 22: 辞書やタプルで保持するよりもヘルパークラスを使おう</title>
  <type>rich</type>
  <url>https://xaro.hatenablog.jp/entry/2015/07/11/024200</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
