<?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>
  </categories>
  <description>いまさら言うのもなんだが、Python3ではファイルのsoftspaceが廃止されている。これはprintステートメントでテキストを出力するとき、先頭にスペースを付加するかどうかのフラグだ。Python2ではprintステートメントの最後に , をつけると print &quot;a&quot;, # 改行文字を出力しない print &quot;b&quot;, # 改行文字を出力しない print &quot;c&quot; # 改行文字を出力する とすると、 a b cのように改行文字を出力せず、文字の前に適切にスペースを付けて出力するようになっていた。この動作を管理しているのがファイルオブジェクトのsoftspaceフラグで、 import s…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fatsuoishimoto.hatenablog.com%2Fentry%2F20110411%2F1302480386&quot; title=&quot;Python2のsoftspace - 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-04-11 09:06:26</published>
  <title>Python2のsoftspace</title>
  <type>rich</type>
  <url>https://atsuoishimoto.hatenablog.com/entry/20110411/1302480386</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
