<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>methane</author_name>
  <author_url>https://blog.hatena.ne.jp/methane/</author_url>
  <blog_title>methaneのブログ</blog_title>
  <blog_url>https://methane.hatenablog.jp/</blog_url>
  <categories>
    <anon>python</anon>
  </categories>
  <description>Python では、下らない問題は、賢く綺麗に解決しようとせずに、 Python 本体が持っている柔軟さを使って強引に解決する方が楽な場合があります。 問題ごとに綺麗な仕組みを作ってしまうと、新しく Python を覚えるひとは無数にある下らない問題の数だけ用意された仕組みを覚えないといけなくなってしまうからです。今日は下らない問題の例として、配布するモジュールにバージョン番号をもたせる場合について考えてみます。 # mymodule/__init__.py __version__ = '0.0.1' さて、 setup スクリプトを書きます。 # setup.py from distutil…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmethane.hatenablog.jp%2Fentry%2F20120401%2F1333260681&quot; title=&quot; バージョン番号を２度書かないために - methaneのブログ&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>2012-04-01 15:11:21</published>
  <title> バージョン番号を２度書かないために</title>
  <type>rich</type>
  <url>https://methane.hatenablog.jp/entry/20120401/1333260681</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
