<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Objects/iterobject.c, branch v2.4.4</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/'/>
<entry>
<title>SF patch #1020188:  Use Py_CLEAR where necessary to avoid crashes</title>
<updated>2004-09-01T07:02:44+00:00</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-09-01T07:02:44+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=75ccea3777f77f001102493170490874166eb3b2'/>
<id>75ccea3777f77f001102493170490874166eb3b2</id>
<content type='text'>
(Contributed by Dima Dorfman)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(Contributed by Dima Dorfman)
</pre>
</div>
</content>
</entry>
<entry>
<title>* Add unittests for iterators that report their length</title>
<updated>2004-04-12T18:10:01+00:00</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-04-12T18:10:01+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=7892b1c651d72a5bd08372f40309dec08a7065f0'/>
<id>7892b1c651d72a5bd08372f40309dec08a7065f0</id>
<content type='text'>
* Document the differences between them
* Fix corner cases covered by the unittests
* Use Py_RETURN_NONE where possible for dictionaries
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Document the differences between them
* Fix corner cases covered by the unittests
* Use Py_RETURN_NONE where possible for dictionaries
</pre>
</div>
</content>
</entry>
<entry>
<title>Make iterators length transparent where possible.</title>
<updated>2004-03-18T22:43:10+00:00</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-03-18T22:43:10+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=435bf58b7bc9df7dd8683c3fc72b5b7ca1316541'/>
<id>435bf58b7bc9df7dd8683c3fc72b5b7ca1316541</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Whitespace normalization.</title>
<updated>2003-06-25T13:12:18+00:00</updated>
<author>
<name>Walter Dörwald</name>
<email>walter@livinglogic.de</email>
</author>
<published>2003-06-25T13:12:18+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=03f6c54359e2a5777be3d41b21488b46f3fbed87'/>
<id>03f6c54359e2a5777be3d41b21488b46f3fbed87</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Renamed PyObject_GenericGetIter to PyObject_SelfIter</title>
<updated>2003-03-17T19:46:11+00:00</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-03-17T19:46:11+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=1da1dbf4586afbd6b5d5c3cf244a1a3ea0f4382b'/>
<id>1da1dbf4586afbd6b5d5c3cf244a1a3ea0f4382b</id>
<content type='text'>
to more accurately describe what the function does.

Suggested by Thomas Wouters.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
to more accurately describe what the function does.

Suggested by Thomas Wouters.
</pre>
</div>
</content>
</entry>
<entry>
<title>Created PyObject_GenericGetIter().</title>
<updated>2003-03-17T08:24:35+00:00</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-03-17T08:24:35+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=01538269643175877f516d09f429a2ae28136da6'/>
<id>01538269643175877f516d09f429a2ae28136da6</id>
<content type='text'>
Factors out the common case of returning self.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Factors out the common case of returning self.
</pre>
</div>
</content>
</entry>
<entry>
<title>Squash a few calls to the hideously expensive PyObject_CallObject(o,a)</title>
<updated>2002-08-16T17:01:09+00:00</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2002-08-16T17:01:09+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=84b2bed4359e27070fe2eac4b464d4a1bc6e150d'/>
<id>84b2bed4359e27070fe2eac4b464d4a1bc6e150d</id>
<content type='text'>
-- replace then with slightly faster PyObject_Call(o,a,NULL).  (The
difference is that the latter requires a to be a tuple; the former
allows other values and wraps them in a tuple if necessary; it
involves two more levels of C function calls to accomplish all that.)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
-- replace then with slightly faster PyObject_Call(o,a,NULL).  (The
difference is that the latter requires a to be a tuple; the former
allows other values and wraps them in a tuple if necessary; it
involves two more levels of C function calls to accomplish all that.)
</pre>
</div>
</content>
</entry>
<entry>
<title>Moved special case for tuples from iterobject.c to</title>
<updated>2002-08-09T01:30:17+00:00</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2002-08-09T01:30:17+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=48923c5533865173894bb4b1d8f9851430f49f8b'/>
<id>48923c5533865173894bb4b1d8f9851430f49f8b</id>
<content type='text'>
tupleobject.c. Makes the code in iterobject.c cleaner
and speeds-up the general case by not checking for
tuples everytime.   SF Patch #592065.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
tupleobject.c. Makes the code in iterobject.c cleaner
and speeds-up the general case by not checking for
tuples everytime.   SF Patch #592065.
</pre>
</div>
</content>
</entry>
<entry>
<title>Make StopIteration a sink state.  This is done by clearing out the</title>
<updated>2002-07-16T20:24:46+00:00</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2002-07-16T20:24:46+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=613bed3726af921be64900bd0cb8209193873411'/>
<id>613bed3726af921be64900bd0cb8209193873411</id>
<content type='text'>
object references (it_seq for seqiterobject, it_callable and
it_sentinel for calliterobject) when the end of the list is reached.

Also remove the next() methods -- one is supplied automatically by
PyType_Ready() because the tp_iternext slot is set.  That's a good
thing, because the implementation given here was buggy (it never
raised StopIteration).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
object references (it_seq for seqiterobject, it_callable and
it_sentinel for calliterobject) when the end of the list is reached.

Also remove the next() methods -- one is supplied automatically by
PyType_Ready() because the tp_iternext slot is set.  That's a good
thing, because the implementation given here was buggy (it never
raised StopIteration).
</pre>
</div>
</content>
</entry>
<entry>
<title>SF 560736.  Optimize list iteration by filling the tp_iter slot.</title>
<updated>2002-05-31T21:40:38+00:00</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2002-05-31T21:40:38+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=14bd6de0ec6468487598f4ad4c14aa0a2742e641'/>
<id>14bd6de0ec6468487598f4ad4c14aa0a2742e641</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
