<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_trace.py, branch v2.5.2</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_trace.py?h=v2.5.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_trace.py?h=v2.5.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2008-02-04T23:51:55Z</updated>
<entry>
<title>No need to emit co_lnotab item when both offsets are zeros.</title>
<updated>2008-02-04T23:51:55Z</updated>
<author>
<name>Amaury Forgeot d'Arc</name>
<email>amauryfa@gmail.com</email>
</author>
<published>2008-02-04T23:51:55Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=bc212104e48eaaf2038c0a3f9dc2e1304a039a8b'/>
<id>urn:sha1:bc212104e48eaaf2038c0a3f9dc2e1304a039a8b</id>
<content type='text'>
r60579 broke a test test_compile, which seems to test an "implementation detail" IMO.

Also test that this correction does not impact the debugger.
</content>
</entry>
<entry>
<title>backport of r60575 (issue #1750076): Debugger did not step on every iteration of a while statement.</title>
<updated>2008-02-04T22:34:57Z</updated>
<author>
<name>Amaury Forgeot d'Arc</name>
<email>amauryfa@gmail.com</email>
</author>
<published>2008-02-04T22:34:57Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=316f8a8d3c965d2e1809b1b90677733478184c89'/>
<id>urn:sha1:316f8a8d3c965d2e1809b1b90677733478184c89</id>
<content type='text'>
The mapping between bytecode offsets and source lines (lnotab) did not contain
an entry for the beginning of the loop.

Now it does, and the lnotab can be a bit larger:
in particular, several statements on the same line generate several entries.
However, this does not bother the settrace function, which will trigger only
one 'line' event.

The lnotab seems to be exactly the same as with python2.4.
</content>
</entry>
<entry>
<title>Backport for issue1265 (pdb bug with "with" statement).</title>
<updated>2007-11-13T22:43:05Z</updated>
<author>
<name>Amaury Forgeot d'Arc</name>
<email>amauryfa@gmail.com</email>
</author>
<published>2007-11-13T22:43:05Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c572dc3752871a48127db1fb3c8bc20889d2be34'/>
<id>urn:sha1:c572dc3752871a48127db1fb3c8bc20889d2be34</id>
<content type='text'>
When an unfinished generator-iterator is garbage collected, PyEval_EvalFrameEx
is called with a GeneratorExit exception set.  This leads to funny results
if the sys.settrace function itself makes use of generators.
A visible effect is that the settrace function is reset to None.
Another is that the eventual "finally" block of the generator is not called.

It is necessary to save/restore the exception around the call to the trace
function.

This happens a lot with py3k: isinstance() of an ABCMeta instance runs
    def __instancecheck__(cls, instance):
        """Override for isinstance(instance, cls)."""
        return any(cls.__subclasscheck__(c)
                   for c in {instance.__class__, type(instance)})
which lets an opened generator expression each time it returns True.

And the problem can be reproduced in 2.5 with pure python code.
</content>
</entry>
<entry>
<title>Bug #1191458: tracing over for loops now produces a line event</title>
<updated>2006-08-04T04:58:47Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2006-08-04T04:58:47Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4ffedadb1032a4310e756d476310d056ad209310'/>
<id>urn:sha1:4ffedadb1032a4310e756d476310d056ad209310</id>
<content type='text'>
on each iteration.  I'm not positive this is the best way to handle
this.  I'm also not sure that there aren't other cases where
the lnotab is generated incorrectly.  It would be great if people
that use pdb or tracing could test heavily.

Also:
 * Remove dead/duplicated code that wasn't used/necessary
   because we already handled the docstring prior to entering the loop.
 * add some debugging code into the compiler (#if 0'd out).
</content>
</entry>
<entry>
<title>Generate line number table entries for except handlers.</title>
<updated>2006-04-04T14:26:39Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2006-04-04T14:26:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ed40ea115966cfa771a698bfed8f7fc663220e27'/>
<id>urn:sha1:ed40ea115966cfa771a698bfed8f7fc663220e27</id>
<content type='text'>
Re-enable all the tests in test_trace.py except one.  Still not sure that these tests test what they used to test, but they pass.  One failing test seems to be caused by undocumented line number table behavior in Python 2.4.
</content>
</entry>
<entry>
<title>Disable some tests in anticipation of merging ast-branch to the head</title>
<updated>2005-10-20T14:27:21Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2005-10-20T14:27:21Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=bc2a62fcfd28f28d3470f94f45578c79fa39290a'/>
<id>urn:sha1:bc2a62fcfd28f28d3470f94f45578c79fa39290a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Port from the Python 2.4 branch, patches for SF bug # 900092,</title>
<updated>2005-08-15T18:14:19Z</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>2005-08-15T18:14:19Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e2eca0b709451e6956d7c84658e9c29037be7c0c'/>
<id>urn:sha1:e2eca0b709451e6956d7c84658e9c29037be7c0c</id>
<content type='text'>
hotshot.stats.load.
</content>
</entry>
<entry>
<title>The fix in ceval.c 2.386 allows iteration-by-iteration line tracing even in</title>
<updated>2004-03-22T19:30:39Z</updated>
<author>
<name>Armin Rigo</name>
<email>arigo@tunes.org</email>
</author>
<published>2004-03-22T19:30:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=706933821c88508299a292e8bb20bf22a9f6364b'/>
<id>urn:sha1:706933821c88508299a292e8bb20bf22a9f6364b</id>
<content type='text'>
single-line loops.
</content>
</entry>
<entry>
<title>Fix (really) for tight loop line events</title>
<updated>2004-03-22T19:23:46Z</updated>
<author>
<name>Nicholas Bastin</name>
<email>nick.bastin@gmail.com</email>
</author>
<published>2004-03-22T19:23:46Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ee6c9b8613336912bea827b607f7454c5368cd57'/>
<id>urn:sha1:ee6c9b8613336912bea827b607f7454c5368cd57</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Test for tight loop line event fix, SF bug #765624</title>
<updated>2004-03-22T19:21:47Z</updated>
<author>
<name>Nicholas Bastin</name>
<email>nick.bastin@gmail.com</email>
</author>
<published>2004-03-22T19:21:47Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=fa7bec7e837e99aaa77009d324935c0ffca6891d'/>
<id>urn:sha1:fa7bec7e837e99aaa77009d324935c0ffca6891d</id>
<content type='text'>
</content>
</entry>
</feed>
