<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Include/Python.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/Python.h?h=2.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Include/Python.h?h=2.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2002-01-12T11:13:24Z</updated>
<entry>
<title>Include &lt;unistd.h&gt; in Python.h. Fixes #500924.</title>
<updated>2002-01-12T11:13:24Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2002-01-12T11:13:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0d21e644096c700d9cf87038e736dd5ae0f738af'/>
<id>urn:sha1:0d21e644096c700d9cf87038e736dd5ae0f738af</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Stop defining NDEBUG in Python.h, because it can interfere with</title>
<updated>2001-12-04T20:06:11Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-12-04T20:06:11Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5defb1736d36ea44bbb8f613cd0031d68816819b'/>
<id>urn:sha1:5defb1736d36ea44bbb8f613cd0031d68816819b</id>
<content type='text'>
extensions that #include Python.h.  See (rejected) patch 487634 for
more detail.  I'll open a new bug report for the rest needed here.
</content>
</entry>
<entry>
<title>Include the weakref object interface.</title>
<updated>2001-10-05T21:55:19Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-10-05T21:55:19Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=19bc578a0907844cb94fe6f727fa5158736086fa'/>
<id>urn:sha1:19bc578a0907844cb94fe6f727fa5158736086fa</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge of descr-branch back into trunk.</title>
<updated>2001-08-02T04:15:00Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-08-02T04:15:00Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6d6c1a35e08b95a83dbe47dbd9e6474daff00354'/>
<id>urn:sha1:6d6c1a35e08b95a83dbe47dbd9e6474daff00354</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Repair more now-obsolete references to config.h.</title>
<updated>2001-07-26T21:34:59Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-07-26T21:34:59Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=76f373d081a38ed49d56540298123bd1e0bcd0cd'/>
<id>urn:sha1:76f373d081a38ed49d56540298123bd1e0bcd0cd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Patch #411138: Rename config.h to pyconfig.h.  Closes bug #231774.</title>
<updated>2001-07-26T13:41:06Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2001-07-26T13:41:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4f1cd8bdcbd20bb0acdbe9e240f28c09dd38370f'/>
<id>urn:sha1:4f1cd8bdcbd20bb0acdbe9e240f28c09dd38370f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Part way to allowing "from __future__ import generators" to communicate</title>
<updated>2001-07-16T02:29:45Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-07-16T02:29:45Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5ba58662817b708a453020f0425fe4747ea6d5cb'/>
<id>urn:sha1:5ba58662817b708a453020f0425fe4747ea6d5cb</id>
<content type='text'>
that info to code dynamically compiled *by* code compiled with generators
enabled.  Doesn't yet work because there's still no way to tell the parser
that "yield" is OK (unlike nested_scopes, the parser has its fingers in
this too).
Replaced PyEval_GetNestedScopes by a more-general
PyEval_MergeCompilerFlags.  Perhaps I should not have?  I doubted it was
*intended* to be part of the public API, so just did.
</content>
</entry>
<entry>
<title>Python.h:  Don't attempt to redefine NDEBUG if it's already defined.</title>
<updated>2001-07-15T18:38:47Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-07-15T18:38:47Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0d5dd68692e8e7a4ebe16cf0902de6a778ea5200'/>
<id>urn:sha1:0d5dd68692e8e7a4ebe16cf0902de6a778ea5200</id>
<content type='text'>
Others:  Remove redundant includes of assert.h.
</content>
</entry>
<entry>
<title>Define NDEBUG when Py_DEBUG undefined, to disable the assert macro.</title>
<updated>2001-07-15T16:58:05Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-07-15T16:58:05Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b2c075bec452f66155d447ed9a1ae1a6479502a8'/>
<id>urn:sha1:b2c075bec452f66155d447ed9a1ae1a6479502a8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Iterators phase 1.  This comprises:</title>
<updated>2001-04-20T19:13:02Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-04-20T19:13:02Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=59d1d2b434e8cf79e8b1321f148254c68f56c1f7'/>
<id>urn:sha1:59d1d2b434e8cf79e8b1321f148254c68f56c1f7</id>
<content type='text'>
new slot tp_iter in type object, plus new flag Py_TPFLAGS_HAVE_ITER
new C API PyObject_GetIter(), calls tp_iter
new builtin iter(), with two forms: iter(obj), and iter(function, sentinel)
new internal object types iterobject and calliterobject
new exception StopIteration
new opcodes for "for" loops, GET_ITER and FOR_ITER (also supported by dis.py)
new magic number for .pyc files
new special method for instances: __iter__() returns an iterator
iteration over dictionaries: "for x in dict" iterates over the keys
iteration over files: "for x in file" iterates over lines

TODO:

documentation
test suite
decide whether to use a different way to spell iter(function, sentinal)
decide whether "for key in dict" is a good idea
use iterators in map/filter/reduce, min/max, and elsewhere (in/not in?)
speed tuning (make next() a slot tp_next???)
</content>
</entry>
</feed>
