<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ryuichi1208</author_name>
  <author_url>https://blog.hatena.ne.jp/ryuichi1208/</author_url>
  <blog_title>地方エンジニアの学習日記</blog_title>
  <blog_url>https://ryuichi1208.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>この記事は「渡部 Advent Calendar 2025」の9日目の記事です。 概要 Python における 例外処理 は非常に便利で強力なツールですが、効率的な利用が求められます。特に、性能が重要なアプリケーションにおいて、例外がパフォーマンスに与える影響は無視できません。この記事では、Python の例外処理が持つ「オーバーヘッド」について掘り下げ、その性能への影響と最適化方法を考えます。 例外処理とは？ まず、Python における 例外処理 の基本的な仕組みをおさらいします。 try: # 正常な処理 result = 10 / 2 except ZeroDivisionError:…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fryuichi1208.hateblo.jp%2Fentry%2F2025%2F12%2F09%2F000000&quot; title=&quot;【Python】例外のオーバーヘッド - 地方エンジニアの学習日記&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>2025-12-09 00:00:00</published>
  <title>【Python】例外のオーバーヘッド</title>
  <type>rich</type>
  <url>https://ryuichi1208.hateblo.jp/entry/2025/12/09/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
