{"title":"Python 3.4 Ruby\u306eDir.chdir(path) {...}\u69d8\u306e\u51e6\u7406","version":"1.0","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","author_name":"potisan","image_url":null,"description":"\u306f\u3058\u3081\u306b Python 3.4\uff083\uff1f\uff09\u306e__enter__\u3001__exit__\u3092\u4f7f\u3046\u3068Ruby\u306eDir.chdir(path) {...}\u306e\u69d8\u306b\u30d6\u30ed\u30c3\u30af\u3092\u629c\u3051\u305f\u3089\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u5143\u306b\u623b\u3059\u69d8\u306a\u51e6\u7406\u3082\u7c21\u5358\u306b\u66f8\u3051\u307e\u3059\u3002\u307e\u305f\u3001contextlib.contextmanager\u30c7\u30b3\u30ec\u30fc\u30bf\u30fc\uff083.4\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff09\u3092\u4f7f\u3046\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u77ed\u3044\u30b3\u30fc\u30c9\u3067\u3042\u308c\u3070\u5f8c\u8005\u306e\u65b9\u304c\u8aad\u307f\u3084\u3059\u304f\u66f8\u3051\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002 \u899a\u66f8\u307e\u3067\u306b\u3002 12\u67084\u65e5\uff1apodhmo\u3055\u3093\u304b\u3089\u30a2\u30c9\u30d0\u30a4\u30b9\u3092\u9802\u3044\u305f\u306e\u3067\u8ffd\u8a18\u3057\u307e\u3057\u305f\u3002 __enter__/__exit__\u3092\u4f7f\u3046\u65b9\u6cd5 chdir.py #coding: utf-8 import os #with\u69cb\u2026","blog_title":"potisan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e1\u30e2","width":"100%","author_url":"https://blog.hatena.ne.jp/potisan/","published":"2014-12-04 00:00:00","type":"rich","categories":["Python 3"],"height":"190","url":"https://potisan-programming-memo.hatenablog.jp/entry/2014/12/04/000000","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2014%2F12%2F04%2F000000\" title=\"Python 3.4 Ruby\u306eDir.chdir(path) {...}\u69d8\u306e\u51e6\u7406 - potisan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e1\u30e2\" 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://potisan-programming-memo.hatenablog.jp/"}