<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>waraby0ginger</author_name>
  <author_url>https://blog.hatena.ne.jp/waraby0ginger/</author_url>
  <blog_title>ゆくゆくは有へと</blog_title>
  <blog_url>https://iuk.hateblo.jp/</blog_url>
  <categories>
    <anon>python</anon>
  </categories>
  <description>メタクラス関連で__new__の使い方はよくみるけど、クラスレベルでの使い方がぐぐってもあんまりなし。 というところに、以下の記事のコメントでやってることが面白かったので、似たことを検証がてらメモ。 qiita.com class A(): def __new__(cls, value): print(&quot;generate by A.__new__&quot;) cls.X = 50 return object.__new__(cls) def __init__(self, value): self.a = value def hello(self): return 'hello' class B(): …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fiuk.hateblo.jp%2Fentry%2F2016%2F11%2F15%2F054219&quot; title=&quot;__new__ がわからん - ゆくゆくは有へと&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>2016-11-15 05:42:19</published>
  <title>__new__ がわからん</title>
  <type>rich</type>
  <url>https://iuk.hateblo.jp/entry/2016/11/15/054219</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
