<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>derwind</author_name>
  <author_url>https://blog.hatena.ne.jp/derwind/</author_url>
  <blog_title>らんだむな記憶</blog_title>
  <blog_url>https://randommemory.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>python - Getting Module from Type - Stack Overflow みたいな感じしかないかなぁ &gt;&gt;&gt; import numpy as np &gt;&gt;&gt; import inspect &gt;&gt;&gt; t = np.float32 &gt;&gt;&gt; mod = inspect.getmodule(t) &gt;&gt;&gt; a = mod.array([1, 2, 3]) &gt;&gt;&gt; type(a) &lt;class 'numpy.ndarray'&gt; そうか・・・。https://github.com/python/cpython/blob/v3.9.4/Lib/inspect.py#L727-L771 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frandommemory.hatenablog.com%2Fentry%2F2021%2F04%2F30%2F021456&quot; title=&quot;型からモジュールを取得したい - らんだむな記憶&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>2021-04-30 02:14:56</published>
  <title>型からモジュールを取得したい</title>
  <type>rich</type>
  <url>https://randommemory.hatenablog.com/entry/2021/04/30/021456</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
