<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>morchin</author_name>
  <author_url>https://blog.hatena.ne.jp/morchin/</author_url>
  <blog_title>プログラミング日記</blog_title>
  <blog_url>https://morchin.hatenadiary.org/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>追記(2007/8/2): namespace function object (NFO) アプローチに改名。 今月25日に使ったテクニックに名前が付いていないので適当に付けた。どこかに付けている人がいそうだが、とりあえず自分の記憶用にメモ。クロージャと組み合わせると便利かも。もし、適切な名前があったり、既にドキュメント化されていたり、使ってみて問題ある場合は教えて欲しい。 テクニックとしては、関数の内部でダミーの関数を作成し、それに属性を関連付けるというもの。以下の2つの機能が実現可能。 ネストした名前空間を越えて属性がアクセス可能 関数の外側に関数内部の属性を公開可能 # 1. def f…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmorchin.hatenadiary.org%2Fentry%2F20070801%2Fp2&quot; title=&quot; commonly accessible instance attributes in function (CAIAF) テクニック - プログラミング日記&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>2007-08-01 00:00:00</published>
  <title> commonly accessible instance attributes in function (CAIAF) テクニック</title>
  <type>rich</type>
  <url>https://morchin.hatenadiary.org/entry/20070801/p2</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
