{"provider_url":"https://hatena.blog","url":"https://atsuoishimoto.hatenablog.com/entry/2016/12/26/093610","blog_title":"atsuoishimoto's diary","description":"\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u30d1\u30b9 \u30d7\u30ed\u30c8\u30b3\u30eb pathlib \u306fPython3.4\u3067\u5c0e\u5165\u3055\u308c\u305f\u304c\u3001pathlib\u3067\u8868\u73fe\u3055\u308c\u308b\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9\u306f\u3001 open() \u3084os.path.* \u306a\u3069\u306e\u3001\u65e2\u5b58\u306e\u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u95a2\u9023\u95a2\u6570\u3067\u306f\u4f7f\u7528\u3067\u304d\u306a\u3044\u305f\u3081\u3001\u3042\u307e\u308a\u4fbf\u5229\u306b\u306f\u4f7f\u3048\u3066\u3044\u306a\u304b\u3063\u305f\u3002 Python3.6\u304b\u3089\u306f\u3001pathlib.Path \u306a\u3069\u306e\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9\u3092\u3042\u3089\u308f\u3059\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u7279\u6b8a\u30e1\u30bd\u30c3\u30c9 __fspath__() \u304c\u5b9f\u88c5\u3055\u308c\u305f\u3002\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u5f15\u6570\u3068\u3057\u3066\u53d7\u3051\u53d6\u308b\u3001open() \u306a\u3069\u306e\u95a2\u6570\u306f\u3001__fspath__()\u3092\u547c\u3073\u51fa\u3057\u3066\u3001\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9\u3092\u53d6\u5f97\u3059\u308b\u3088\u3046\u306b\u5909\u66f4\u3055\u308c\u305f\u3002 >>> import pathlib >>> spam \u2026","published":"2016-12-26 09:36:10","author_name":"atsuoishimoto","author_url":"https://blog.hatena.ne.jp/atsuoishimoto/","type":"rich","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fatsuoishimoto.hatenablog.com%2Fentry%2F2016%2F12%2F26%2F093610\" title=\"Python 3.6\u306e\u6982\u8981 (\u305d\u306e5 - \u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u30d1\u30b9 \u30d7\u30ed\u30c8\u30b3\u30eb) - atsuoishimoto&#39;s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://atsuoishimoto.hatenablog.com/","image_url":null,"categories":[],"width":"100%","height":"190","version":"1.0","title":"Python 3.6\u306e\u6982\u8981 (\u305d\u306e5 - \u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u30d1\u30b9 \u30d7\u30ed\u30c8\u30b3\u30eb)"}