<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Python/exceptions.c, 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/Python/exceptions.c?h=2.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python/exceptions.c?h=2.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2002-09-23T21:19:44Z</updated>
<entry>
<title>Backported 1.39 and 1.40 from trunk:</title>
<updated>2002-09-23T21:19:44Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2002-09-23T21:19:44Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2992e13268d5ae307755ff00778221396d09db27'/>
<id>urn:sha1:2992e13268d5ae307755ff00778221396d09db27</id>
<content type='text'>
1.39:
Fix SF bug 610610 (reported by Martijn Pieters, diagnosed by Neal Norwitz).

The switch in Exception__str__ didn't clear the error if
PySequence_Size() raised an exception.  Added a case -1 which clears
the error and falls through to the default case.

1.40:
Two more cases of switch(PySequence_Size()) without checking for case -1.
(Same problem as last checkin for SF bug 610610)
Need to clear the error and proceed.
</content>
</entry>
<entry>
<title>Patch #50002: Display line information for bad \x escapes:</title>
<updated>2002-03-03T21:32:01Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2002-03-03T21:32:01Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=59509f511ed8eacbefecc4357c69036fc036effe'/>
<id>urn:sha1:59509f511ed8eacbefecc4357c69036fc036effe</id>
<content type='text'>
- recognize "SyntaxError"s by the print_file_and_line attribute.
- add the syntaxerror attributes to all exceptions in compile.c.
Fixes #221791
</content>
</entry>
<entry>
<title>Use PyOS_snprintf instead of sprintf.</title>
<updated>2001-11-28T20:24:33Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-11-28T20:24:33Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=05bd787c6cd55f29d43465de621778221e0fc46e'/>
<id>urn:sha1:05bd787c6cd55f29d43465de621778221e0fc46e</id>
<content type='text'>
Just being sure.  The old code looks like it was safe, but there's no
harm in double-checking.
</content>
</entry>
<entry>
<title>weakref.ReferenceError becomes a built-in exception now that weak ref objects</title>
<updated>2001-10-05T21:50:08Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-10-05T21:50:08Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=bb9fa21cfe7a8343698ce5e26e845b4e0c877d6a'/>
<id>urn:sha1:bb9fa21cfe7a8343698ce5e26e845b4e0c877d6a</id>
<content type='text'>
are moving into the core; with these changes, it will be possible for the
exception to be raised without the weakref module ever being imported.
</content>
</entry>
<entry>
<title>Introduce OverflowWarning -- to be issued when short int operations</title>
<updated>2001-08-23T02:56:07Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-08-23T02:56:07Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ae347b33befbbf9068473f373def1620f2bab805'/>
<id>urn:sha1:ae347b33befbbf9068473f373def1620f2bab805</id>
<content type='text'>
are overflowing and a long int operation is substituted.
</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>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>
<entry>
<title>Make some private symbols static.</title>
<updated>2001-04-14T17:55:09Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-04-14T17:55:09Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f68d8e52e7ce833d123de034a4f123ec710a639f'/>
<id>urn:sha1:f68d8e52e7ce833d123de034a4f123ec710a639f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>SyntaxError__init__():  Be a little more robust when picking apart the</title>
<updated>2001-02-28T21:52:10Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-02-28T21:52:10Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9da7f3b4f44eb4e2c9782f9f73da5e46dc1b9f96'/>
<id>urn:sha1:9da7f3b4f44eb4e2c9782f9f73da5e46dc1b9f96</id>
<content type='text'>
    location information for the SyntaxError -- do not do more than we
    need to, stopping as soon as an exception has been raised.
</content>
</entry>
<entry>
<title>SF patch 404928: Support for next Cygwin gcc (2.95.2-8)</title>
<updated>2001-02-28T16:44:18Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-02-28T16:44:18Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5687ffe0c56a827b538589fc46e79dfacfd857f3'/>
<id>urn:sha1:5687ffe0c56a827b538589fc46e79dfacfd857f3</id>
<content type='text'>
</content>
</entry>
</feed>
