<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>atsuoishimoto</author_name>
  <author_url>https://blog.hatena.ne.jp/atsuoishimoto/</author_url>
  <blog_title>atsuoishimoto's diary</blog_title>
  <blog_url>https://atsuoishimoto.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>APUE</anon>
  </categories>
  <description>3.1 標準入力ファイルがシーク可能で有るかどうかを調べる import os try: os.lseek(0,0,os.SEEK_CUR) except OSError: print &quot;cannot seek&quot; else: print &quot;seek OK&quot; lseek()が失敗すると、OSError例外が発生する。 3.2 lseek()でファイル内部に間隙を作成する import os, stat, sys def creat(filename, mode): return os.open(filename, os.O_WRONLY | os.O_CREAT | os.O_TRUNC, mo…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fatsuoishimoto.hatenablog.com%2Fentry%2F20110310%2F1299715993&quot; title=&quot;Pythonで学ぶ「詳解 UNIXプログラミング」(その3) 第3章 ファイル入出力 - atsuoishimoto&amp;#39;s diary&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-03-10 09:13:13</published>
  <title>Pythonで学ぶ「詳解 UNIXプログラミング」(その3) 第3章 ファイル入出力</title>
  <type>rich</type>
  <url>https://atsuoishimoto.hatenablog.com/entry/20110310/1299715993</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
