{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkwatch.hatenadiary.org%2Fentry%2F20100410%2F1270851205\" title=\" Python \u3067\u73fe\u5728\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u3068\u884c\u756a\u53f7\u3092\u8abf\u3079\u308b\u3002 - k\u306a\u3093\u3068\u304b\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"kwatch","title":" Python \u3067\u73fe\u5728\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u3068\u884c\u756a\u53f7\u3092\u8abf\u3079\u308b\u3002","description":"Python \u3067\u306f\u3001\u73fe\u5728\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u8868\u3059 __file__ \u306f\u3042\u308b\u3051\u3069\u3001\u884c\u756a\u53f7\u3092\u8868\u3059 __line__ \u304c\u306a\u3044\u3002\u73fe\u5728\u306e\u884c\u756a\u53f7\u3092\u8abf\u3079\u305f\u304b\u3063\u305f\u3089\u3001\u30b9\u30bf\u30c3\u30af\u30d5\u30ec\u30fc\u30e0\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u89e6\u308b\u5fc5\u8981\u304c\u3042\u308b\u307f\u305f\u3044\u3002\u4ee5\u4e0b\u304c\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3002__LINE__ and __FILE__ functionality in Python? - Python answers \u3092\u53c2\u8003\u306b\u3002 /tmp$ cat -n hoge.py 1 import inspect 2 3 def location(depth=0): 4 frame = inspect.currentframe(depth+1) 5 return (frame.\u2026","categories":["python"],"blog_url":"https://kwatch.hatenadiary.org/","provider_url":"https://hatena.blog","blog_title":"k\u306a\u3093\u3068\u304b\u306e\u65e5\u8a18","url":"https://kwatch.hatenadiary.org/entry/20100410/1270851205","image_url":null,"author_url":"https://blog.hatena.ne.jp/kwatch/","provider_name":"Hatena Blog","type":"rich","published":"2010-04-10 07:13:25","height":"190","width":"100%","version":"1.0"}