{"description":"python\u3067\u66f8\u304d\u8fbc\u307f\u30fb\u8aad\u307f\u8fbc\u307f\u4e2d\u306e\u30d5\u30a1\u30a4\u30eb\u306bwrite\u3092\u3076\u3064\u3051\u308b\u3068\u30d5\u30a1\u30a4\u30eb\u304c\u58ca\u308c\u308b(\uff1f)\u3089\u3057\u3044\u3002 DB\u3068\u304b\u4f7f\u3048\u3070\u52dd\u624b\u306b\u6392\u4ed6\u304b\u3051\u3066\u304f\u308c\u308b\u3089\u3057\u3044\u3051\u3069\u3001\u307e\u3042python\u3060\u3051\u3067\u3084\u308b\u306a\u3089\u3069\u3046\u3057\u307e\u3057\u3087\u3063\u3066\u8a71\u3002 \u30fb\u89e3 fcntl.flock\u95a2\u6570\u3092\u4f7f\u3046 \u30fb\u53c2\u8003 \u516c\u5f0f\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9 fcntl --- fcntl \u304a\u3088\u3073 ioctl \u30b7\u30b9\u30c6\u30e0\u30b3\u30fc\u30eb \u2014 Python 3.7.4 \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8 \u30fb\u6ce8\u610f\u70b9 \u30ed\u30c3\u30af\u7372\u5f97\u306b\u5931\u6557\u3057\u305f\u5834\u5408\u306b\u6392\u51fa\u3055\u308c\u308b\u30a8\u30e9\u30fc\u304c\u3001 2\u7cfb\u30683\u7cfb\u3067\u9055\u3046\u306e\u3067\u6ce8\u610f\uff08IOError\u3068OSError\uff09\u3002 \u4e0b\u8a18\u306f2\u7cfb #!/usr/bin/python # -*- coding: utf-8 -*- #\u8aad\u307f\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftako-eng.hatenablog.com%2Fentry%2F2019%2F09%2F19%2F070800\" title=\"python2\u7cfb\u3067\u6392\u4ed6\u30ed\u30c3\u30af\u3059\u308b\u65b9\u6cd5 - blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://tako-eng.hatenablog.com/entry/2019/09/19/070800","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/tako_eng/","title":"python2\u7cfb\u3067\u6392\u4ed6\u30ed\u30c3\u30af\u3059\u308b\u65b9\u6cd5","provider_name":"Hatena Blog","blog_title":"blog","image_url":null,"blog_url":"https://tako-eng.hatenablog.com/","version":"1.0","published":"2019-09-19 07:08:00","categories":["\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0(python)"],"height":"190","author_name":"tako_eng","type":"rich","width":"100%"}