<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>API Migration on 每日拍拍</title>
    <link>https://dailypypy.org/tags/api-migration/</link>
    <description>Recent content in API Migration on 每日拍拍</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh-tw</language>
    <copyright>© 2026 每日拍拍</copyright>
    <lastBuildDate>Sat, 17 Oct 2026 10:06:00 +0800</lastBuildDate><atom:link href="https://dailypypy.org/tags/api-migration/index.xml" rel="self" type="application/rss+xml" />
    <follow_challenge>
      <feedId>155076163427069952</feedId>
      <userId>154825760438254592</userId>
    </follow_challenge>
    
    
    <item>
      <title>Python warnings 實戰：棄用通知、篩選規則與 CI 防線</title>
      <link>https://dailypypy.org/learn/python-warnings-deprecation-ci/</link>
      <pubDate>Sat, 17 Oct 2026 10:06:00 +0800</pubDate>
      
      <guid>https://dailypypy.org/learn/python-warnings-deprecation-ci/</guid>
      <description>&lt;!---
1440x768
prompt: masterpiece, best quality, highres, clean anime illustration, japanese anime style, soft shading, flat color design, 1girl, black hair, green eyes, white off-shoulder shirt, black short skirt, low angle medium full shot, standing with arms crossed loosely, thoughtful serious focused look with a subtle reassuring smile, looking at viewer, pastel lilac and pale celadon background, neat composition, detailed eyes, cute and smart vibe, minimal background, polished illustration, no text
negative prompt: worst quality, bad eye, bad hand, extra limbs, manga, multiple views, monochrome, text, signature
dedup note: This is a warning-policy and API-migration follow-up to ../python-pytest/ and ../python-logging/. It does not repeat fixtures, handlers, or context-manager construction. ../python-contextlib/ only demonstrated redirecting one warning to stderr; this post focuses on categories, caller attribution, filter precedence, warning contracts and CI enforcement.
source check: Python 3.14 warnings documentation, PEP 565, PEP 702, pytest warning-capture documentation and logging.captureWarnings reviewed on 2026-10-17. Examples target Python 3.14; warnings.deprecated requires 3.13+.
verification: Python 3.14.3 / pytest 9.1.1; eight Python blocks parsed, standalone examples executed, four contract tests passed with and without strict filters, eight extra filter/decorator/logging assertions passed, and the unexpected-warning CI probe failed as intended. Maximum current-source character 5-gram Jaccard is 0.03273 versus python-contextvars; the only shared scope is a short concurrency caveat. Cover DAILYPYPY_00138_.png from prompt 7624a8f2-ff54-4e14-a04f-9f1d38ee68be verified as PNG 1440x768 and visually inspected.
publication note: Required randomized date retained; past publishDate permits the morning release with buildFuture=false.
---&gt;

&lt;h2 class=&#34;relative group&#34;&gt;一. 前言：警告不是「還沒壞，所以不用管」 
    &lt;div id=&#34;一-前言警告不是還沒壞所以不用管&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700&#34;
            style=&#34;text-decoration-line: none !important;&#34; href=&#34;#%e4%b8%80-%e5%89%8d%e8%a8%80%e8%ad%a6%e5%91%8a%e4%b8%8d%e6%98%af%e9%82%84%e6%b2%92%e5%a3%9e%e6%89%80%e4%bb%a5%e4%b8%8d%e7%94%a8%e7%ae%a1&#34; aria-label=&#34;定位點&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;
&lt;p&gt;嗨，我是拍拍君！你有沒有遇過這種升級流程？&lt;/p&gt;</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://dailypypy.org/learn/python-warnings-deprecation-ci/featured.png" />
    </item>
    
  </channel>
</rss>
