<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ShineSpark</author_name>
  <author_url>https://blog.hatena.ne.jp/ShineSpark/</author_url>
  <blog_title>人生シーケンスブレイク</blog_title>
  <blog_url>https://shinespark.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>Pythonで以下のような破壊的ループをしようとすると、indexのズレが発生してすべての要素に対して処理が行われないケースがある。 (この例の処理ではリスト内包表記で充分代替可能だったりするが、あくまで例として単一処理にしている。) li = [ { &quot;id&quot;: &quot;D028xxxxx&quot;, &quot;is_im&quot;: True, &quot;user&quot;: &quot;USLACKBOT&quot;, &quot;created&quot;: 1397471294, &quot;is_user_deleted&quot;: False }, { &quot;id&quot;: &quot;D028xxxxx&quot;, &quot;is_im&quot;: True, &quot;user&quot;: &quot;U028xxxxx&quot;, &quot;created&quot;:…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshinespark.hatenablog.com%2Fentry%2F2015%2F11%2F04%2F013932&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>http://ecx.images-amazon.com/images/I/51fpQ3aaI8L.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-11-04 01:39:32</published>
  <title>Pythonで破壊的ループをする際はリスト全体のコピーをとる</title>
  <type>rich</type>
  <url>https://shinespark.hatenablog.com/entry/2015/11/04/013932</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
