{"type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjournal.lampetty.net%2Fentry%2Fwp%2F433\" title=\"Python\u3067\u30e2\u30b8\u30e5\u30fc\u30eb\u5185\u306e\u30af\u30e9\u30b9\u3092\u62bd\u51fa\u3059\u308b - oinume journal\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/oinume/","image_url":null,"url":"https://journal.lampetty.net/entry/wp/433","title":"Python\u3067\u30e2\u30b8\u30e5\u30fc\u30eb\u5185\u306e\u30af\u30e9\u30b9\u3092\u62bd\u51fa\u3059\u308b","blog_url":"https://journal.lampetty.net/","author_name":"oinume","categories":["Python"],"blog_title":"oinume journal","provider_name":"Hatena Blog","version":"1.0","height":"190","published":"2011-11-26 00:11:45","width":"100%","description":"inspect\u3092\u4f7f\u3048\u3070\u7c21\u5358\u306b\u3067\u304d\u308b\u3002 class MyClass(object): pass def func(): pass \u306a\u611f\u3058\u306emymodule.py \u304c\u3042\u308b\u3068\u3057\u3066 #!/usr/bin/env python import inspect import mymodule for name, member in inspect.getmembers(mymodule): if inspect.isclass(member): print \"%s is class.\" % name \u307f\u305f\u3044\u306b\u3084\u308c\u3070 mymodule \u304b\u3089\u30af\u30e9\u30b9\u3060\u3051\u629c\u304d\u51fa\u305b\u308b\u3002 inspect\u3068\u3044\u3046\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u30ea\u30f3\u30af\u5148\u306e\u30de\u30cb\u2026"}