<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Kishi</author_name>
  <author_url>https://blog.hatena.ne.jp/Kishi/</author_url>
  <blog_title>public static void main</blog_title>
  <blog_url>https://kishi.hatenadiary.org/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>メモ</anon>
  </categories>
  <description>以前、｢JavaのGCについてメモ - public static void main｣でGCについて調べたとき、RubyのGCの実装方法はわかったのですが、Pythonについて調べていなかったので、少し調べてみました。 ｢http://www.python.jp/doc/2.4/ext/refcounts.html｣によると、Pythonでは以下の二つの手法を使っています。 参照カウント法 ･･･ オブジェクトが自身がどれだけ参照されているかをカウントし、参照が0になったらメモリを解放。 Mark&amp;Sweep ･･･ ポインタを全走査し、参照されているオブジェクトに印付け（Mark）する。す…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkishi.hatenadiary.org%2Fentry%2F20080311%2F1205258960&quot; title=&quot;Pythonのガーベッジコレクションの話 - public static void main&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>2008-03-11 03:09:20</published>
  <title>Pythonのガーベッジコレクションの話</title>
  <type>rich</type>
  <url>https://kishi.hatenadiary.org/entry/20080311/1205258960</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
