<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mzp</author_name>
  <author_url>https://blog.hatena.ne.jp/mzp/</author_url>
  <blog_title>みずぴー日記</blog_title>
  <blog_url>https://mzp.hatenadiary.org/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>Pythonのイテレータは、itertools — Functions creating iterators for efficient looping — Python 3.7.3 documentationみたいなモジュールがあるくらいだし、わりと遅延リストの代わりに使える。 でも、やっぱりイテレータはイテレータであって、遅延リストじゃない。例えば、同じイレレータをizipすると結果が変になっちゃう。 &gt;&gt;&gt; from itertools import * &gt;&gt;&gt; f = open('test') &gt;&gt;&gt; list(izip(f,f)) [('1\n', '2\n'), ('3\n', '…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmzp.hatenadiary.org%2Fentry%2F20090807%2Fiter&quot; title=&quot;iteratorは遅延リストの代わりにはならないよ - みずぴー日記&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>2009-08-07 00:00:00</published>
  <title>iteratorは遅延リストの代わりにはならないよ</title>
  <type>rich</type>
  <url>https://mzp.hatenadiary.org/entry/20090807/iter</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
