<html><head><style type="text/css" media="screen">Body{font-family: Verdana;font-size:.75em;}h4{font-size:.9em;}a{color: #3a62a6;}.digest .toc {margin-bottom: 15px; padding-bottom:8px; border-bottom: 1px solid #ccc;}.digest .tocItem {margin-bottom: 15px;}.tocItem a{color:#000;text-decoration: none;}.tocItem a:hover{color: #3a62a6;text-decoration: underline;}.topic{padding-bottom: 8px;margin-bottom: 20px; border-bottom: 1px solid #ccc;}.topicHeader{margin-bottom:10px;}.topicTitle{font-weight: bold;}.replies p{margin:0;padding:0;}.replies hr{width: 15%;text-align: left;margin: 0 auto 5px 0;border: none 0;border-top: 1px solid #ccc;height: 1px;}.reply{margin-bottom: 6px;padding-bottom: 4px;}.anchorMarker{color: #3a62a6;}.footer{color: gray;}</style></head><body><div class="digest"><p>Hi ironpython,</p><p>Here's your Daily Digest of new issues for project "<a href="http://ironpython.codeplex.com/">IronPython</a>".</p><p>In today's digest:</p><h4>ISSUES</h4><div class="toc"><div class="tocItem"><a href="#toc_issue_1">1. <span class="tocTitle">[New issue] f_locals in sys.exc_info()</span> <span class="anchorMarker">↓</span></a></div></div><h4>ISSUES</h4><div class="topic"><a name="toc_issue_1"></a><div class="topicHeader"><span class="topicTitle">1. [New issue] f_locals in sys.exc_info()</span> <a href="http://ironpython.codeplex.com/workitem/34029">view online</a></div><p>User ericreynolds has proposed the issue:</p><p>"The following code gives different results in Python compared with IronPython because sys.exc_info().tb_frame.f_locals seems to be the locals dictionary of the current frame rather than the frame where the exception was thrown.<br />
<pre><code>import sys

def f():
    a = 1
    b = 2
    1/0

try:
    f()
except:
    exc_type, exc_value, tb = sys.exc_info()
    if tb is not None:
        prev = tb
        curr = tb.tb_next
        while curr is not None:
            prev = curr
            curr = curr.tb_next
        print prev.tb_frame.f_locals</code></pre>

In Python:<br />
<pre><code>{'a': 1, 'b': 2}</code></pre>

In IronPython 2.7.3 (2.7.0.40) on .NET 4.0.30319.296 (32-bit):<br />
<pre><code>{'__name__': '__main__', '__file__': 'ExcTest.py', '__doc__': None, '__builtins__': <module '__builtin__' (built-in)>, 'sys': <module 'sys'
(built-in)>, 'f': <function f at 0x000000000000002B>, 'exc_type': <type 'exceptions.ZeroDivisionError'>, 'exc_value': ZeroDivisionError('Att
empted to divide by zero.',), 'tb': <traceback object at 0x000000000000002C>, 'prev': <traceback object at 0x000000000000002D>, 'curr': None
}</code><"</p></div><div class="footer"><p>You are receiving this email because you subscribed to notifications on CodePlex.</p><p>To report a bug, request a feature, or add a comment, visit <a href="http://ironpython.codeplex.com/workitem/list/basic">IronPython Issue Tracker</a>. You can <a href="http://ironpython.codeplex.com/subscriptions/workitem/project/edit">unsubscribe or change your issue notification settings</a> on CodePlex.com.</p></div></div></body></html>