<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Include/iterobject.h, branch 2.2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Include/iterobject.h?h=2.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Include/iterobject.h?h=2.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2002-10-04T12:35:17Z</updated>
<entry>
<title>Backport patch (also pointed out in SF #607253):</title>
<updated>2002-10-04T12:35:17Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2002-10-04T12:35:17Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ea2b436d50906f09102c0826985054003d5dc28b'/>
<id>urn:sha1:ea2b436d50906f09102c0826985054003d5dc28b</id>
<content type='text'>
date: 2002/03/30 08:57:12;  author: loewis;
Patch #536908: Add missing #include guards/extern "C".
</content>
</entry>
<entry>
<title>Mondo changes to the iterator stuff, without changing how Python code</title>
<updated>2001-04-23T14:08:49Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-04-23T14:08:49Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=213c7a6aa5889f42495352199715a1c1a0833a00'/>
<id>urn:sha1:213c7a6aa5889f42495352199715a1c1a0833a00</id>
<content type='text'>
sees it (test_iter.py is unchanged).

- Added a tp_iternext slot, which calls the iterator's next() method;
  this is much faster for built-in iterators over built-in types
  such as lists and dicts, speeding up pybench's ForLoop with about
  25% compared to Python 2.1.  (Now there's a good argument for
  iterators. ;-)

- Renamed the built-in sequence iterator SeqIter, affecting the C API
  functions for it.  (This frees up the PyIter prefix for generic
  iterator operations.)

- Added PyIter_Check(obj), which checks that obj's type has a
  tp_iternext slot and that the proper feature flag is set.

- Added PyIter_Next(obj) which calls the tp_iternext slot.  It has a
  somewhat complex return condition due to the need for speed: when it
  returns NULL, it may not have set an exception condition, meaning
  the iterator is exhausted; when the exception StopIteration is set
  (or a derived exception class), it means the same thing; any other
  exception means some other error occurred.
</content>
</entry>
<entry>
<title>Adding iterobject.[ch], which were accidentally not added.  Sorry\!</title>
<updated>2001-04-20T21:06:46Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-04-20T21:06:46Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=05311481d470fe59e9a23d9c165e09f0e3a4ee2e'/>
<id>urn:sha1:05311481d470fe59e9a23d9c165e09f0e3a4ee2e</id>
<content type='text'>
</content>
</entry>
</feed>
