{"categories":["python"],"blog_url":"https://ohtorii.hatenadiary.jp/","author_url":"https://blog.hatena.ne.jp/ohtorii/","version":"1.0","url":"https://ohtorii.hatenadiary.jp/entry/20110417/1303010148","image_url":null,"description":"\u4f8b\u5916\u304c\u767a\u751f\u3059\u308b\u306f\u305a\u306e\u306a\u3044\u884c\u3067\u306a\u305c\u304b\u4f8b\u5916\u304c\u767a\u751f\u3057\u305f\u6642\u306e\u539f\u56e0\u3092\u30e1\u30e2\u3057\u3066\u304a\u304d\u307e\u3059\u3002 _g_foo = \"123\" def bar(): global _g_foo print _g_foo #<-- typeerror: an integer is required print _g_foo \u306e\u884c\u3067\u4f8b\u5916\u767a\u751f\u3002 _g_foo \u306f\u5b58\u5728\u3057\u3066\u3044\u308b\u3057\u3001\u5024\u3092\u66f8\u304d\u63db\u3048\u305f\u899a\u3048\u3082\u7121\u3044\u306e\u306b\u4f8b\u5916\u304c\u767a\u751f\u30fb\u30fb\u30fb\u8b0e\u3060\u3002 \u74b0\u5883 Python 2.7.1 SWIG 1.3.40 \u539f\u56e0 SWIG \u304c\u81ea\u52d5\u751f\u6210\u3057\u305f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9(.cpp)(.py)\u5074\u3067 Python \u306e\u4f8b\u5916\u304c\u767a\u751f\u3059\u308b\u3068\u3001\u304a\u304b\u3057\u306a\u884c\u756a\u304c\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u3067\u3059\u3002\u81ea\u5206\u304c\u306f\u307e\u3063\u305f\u3068\u2026","width":"100%","blog_title":"\u3068\u308a\u3042\u3048\u305a\u65e5\u8a18","height":"190","title":"Python\u306e\u30d0\u30c3\u30c9\u30ce\u30a6\u30cf\u30a6","author_name":"ohtorii","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","published":"2011-04-17 12:15:48","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fohtorii.hatenadiary.jp%2Fentry%2F20110417%2F1303010148\" title=\"Python\u306e\u30d0\u30c3\u30c9\u30ce\u30a6\u30cf\u30a6 - \u3068\u308a\u3042\u3048\u305a\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>"}