<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>saitodevel01</author_name>
  <author_url>https://blog.hatena.ne.jp/saitodevel01/</author_url>
  <blog_title>saito’s blog</blog_title>
  <blog_url>https://saitodevel01.hatenadiary.org/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>言語ネタ</anon>
  </categories>
  <description>デコレータはPython2.4で追加された構文で、関数やメソッドのラッピングを行ないます。 @deco1 def foo() pass @deco2(args) def bar() pass このプログラムは以下のプログラムと等価です。 def foo() pass foo = deco1(foo) def bar() pass bar = deco2(args)(bar) この構文は静的メソッドやクラスメソッドの定義を分かりやすく書きたいという動機から追加されました。 静的メソッドやクラスメソッドの定義は、デコレータ導入以前では以下のように書かれていました。 class C(object):…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsaitodevel01.hatenadiary.org%2Fentry%2F20100814%2F1281775065&quot; title=&quot;高階関数としてのデコレータに関する考察 - saito’s blog&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>2010-08-14 17:37:45</published>
  <title>高階関数としてのデコレータに関する考察</title>
  <type>rich</type>
  <url>https://saitodevel01.hatenadiary.org/entry/20100814/1281775065</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
