<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">


<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 10">
<meta name=Originator content="Microsoft Word 10">
<link rel=File-List href="cid:filelist.xml@01C40817.2D1C83D0">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="time"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="date"/>
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:View>Normal</w:View>
  <w:HideSpellingErrors/>
  <w:ActiveWritingStyle Lang="EN-US" VendorID="64" DLLVersion="131078" 
   NLCheck="1">1</w:ActiveWritingStyle>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]--><!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Trebuchet MS";
        panose-1:2 11 6 3 2 2 2 2 2 4;
        mso-font-charset:0;
        mso-generic-font-family:swiss;
        mso-font-pitch:variable;
        mso-font-signature:647 0 0 0 159 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-parent:"";
        margin:0in;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
h1
        {mso-style-next:Normal;
        margin-top:12.0pt;
        margin-right:0in;
        margin-bottom:3.0pt;
        margin-left:0in;
        text-align:justify;
        mso-pagination:widow-orphan;
        page-break-after:avoid;
        mso-outline-level:1;
        font-size:16.0pt;
        font-family:"Trebuchet MS";
        mso-bidi-font-family:Arial;
        mso-font-kerning:16.0pt;}
h2
        {mso-style-next:Normal;
        margin-top:12.0pt;
        margin-right:0in;
        margin-bottom:3.0pt;
        margin-left:0in;
        text-align:justify;
        mso-pagination:widow-orphan;
        page-break-after:avoid;
        mso-outline-level:2;
        font-size:14.0pt;
        font-family:"Trebuchet MS";
        mso-bidi-font-family:Arial;
        font-style:italic;}
h3
        {mso-style-next:Normal;
        margin-top:12.0pt;
        margin-right:0in;
        margin-bottom:3.0pt;
        margin-left:0in;
        text-align:justify;
        mso-pagination:widow-orphan;
        page-break-after:avoid;
        mso-outline-level:3;
        font-size:13.0pt;
        font-family:"Trebuchet MS";
        mso-bidi-font-family:Arial;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;
        text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;
        text-underline:single;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {margin:0in;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Courier New";
        mso-fareast-font-family:"Times New Roman";}
span.SpellE
        {mso-style-name:"";
        mso-spl-e:yes;}
span.GramE
        {mso-style-name:"";
        mso-gram-e:yes;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 77.95pt 1.0in 77.95pt;
        mso-header-margin:.5in;
        mso-footer-margin:.5in;
        mso-paper-source:0;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */ 
 table.MsoNormalTable
        {mso-style-name:"Table Normal";
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-parent:"";
        mso-padding-alt:0in 5.4pt 0in 5.4pt;
        mso-para-margin:0in;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple style='tab-interval:.5in'>

<div class=Section1>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>[...standard profiler doesn't work...]<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>&gt; Are you sure about that? Last time I checked it worked fine!</span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;color:black'>I'm getting an assertion error:<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;color:black'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=1 face="Courier New"><span style='font-size:
9.0pt;mso-bidi-font-size:10.0pt'>Python 2.3.3 <span class=SpellE>Stackless</span>
3.0 040302 (#51, </span></font><st1:date Month="3" Day="3" Year="2004"><span
 class=GramE><font size=1><span style='font-size:9.0pt;mso-bidi-font-size:10.0pt'>Mar<span
 style='mso-spacerun:yes'>&nbsp; </span>3</span></font></span><font size=1><span
 style='font-size:9.0pt;mso-bidi-font-size:10.0pt'> 2004</span></font></st1:date><font
size=1><span style='font-size:9.0pt;mso-bidi-font-size:10.0pt'>, </span></font><st1:time
Hour="14" Minute="46"><font size=1><span style='font-size:9.0pt;mso-bidi-font-size:
 10.0pt'>14:46:54</span></font></st1:time><font size=1><span style='font-size:
9.0pt;mso-bidi-font-size:10.0pt'>) [MSC v.1200 32 bi<o:p></o:p></span></font></p>

<p class=MsoPlainText><span class=GramE><font size=1 face="Courier New"><span
style='font-size:9.0pt;mso-bidi-font-size:10.0pt'>t</span></font></span><font
size=1><span style='font-size:9.0pt;mso-bidi-font-size:10.0pt'> (Intel)] on
win32<o:p></o:p></span></font></p>

<p class=MsoPlainText><span class=GramE><font size=1 face="Courier New"><span
style='font-size:9.0pt;mso-bidi-font-size:10.0pt'>Type &quot;help&quot;,
&quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more
information.</span></font></span><font size=1><span style='font-size:9.0pt;
mso-bidi-font-size:10.0pt'><o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=1 face="Courier New"><span style='font-size:
9.0pt;mso-bidi-font-size:10.0pt'>&gt;&gt;&gt; <span class=GramE>import</span> <span
class=SpellE>stackless</span><o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=1 face="Courier New"><span style='font-size:
9.0pt;mso-bidi-font-size:10.0pt'>&gt;&gt;&gt; import profile<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=1 face="Courier New"><span style='font-size:
9.0pt;mso-bidi-font-size:10.0pt'>&gt;&gt;&gt; <span class=GramE>def</span> <span
class=SpellE>foo</span>(): print 10<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=1 face="Courier New"><span style='font-size:
9.0pt;mso-bidi-font-size:10.0pt'>...<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=1 face="Courier New"><span style='font-size:
9.0pt;mso-bidi-font-size:10.0pt'>&gt;&gt;&gt; <span class=SpellE><span
class=GramE>profile.run</span></span><span class=GramE>(</span>'<span
class=SpellE>stackless.tasklet</span>(<span class=SpellE>foo</span>)(); <span
class=SpellE>stackless.schedule</span>()')<o:p></o:p></span></font></p>

<p class=MsoPlainText><span class=SpellE><font size=1 face="Courier New"><span
style='font-size:9.0pt;mso-bidi-font-size:10.0pt'>Traceback</span></font></span><font
size=1><span style='font-size:9.0pt;mso-bidi-font-size:10.0pt'> (most recent
call last):<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=1 face="Courier New"><span style='font-size:
9.0pt;mso-bidi-font-size:10.0pt'><span style='mso-spacerun:yes'>&nbsp;
</span>File &quot;&lt;<span class=SpellE>stdin</span>&gt;&quot;, line 1, <span
class=GramE>in ?</span><o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=1 face="Courier New"><span style='font-size:
9.0pt;mso-bidi-font-size:10.0pt'><span style='mso-spacerun:yes'>&nbsp;
</span>File &quot;c:\python23\lib\profile.py&quot;, line 71, in run<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=1 face="Courier New"><span style='font-size:
9.0pt;mso-bidi-font-size:10.0pt'><span
style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; </span><span class=SpellE><span
class=GramE>prof</span></span> = <span class=SpellE>prof.run</span>(statement)<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=1 face="Courier New"><span style='font-size:
9.0pt;mso-bidi-font-size:10.0pt'><span style='mso-spacerun:yes'>&nbsp;
</span>File &quot;c:\python23\lib\profile.py&quot;, line 403, in run<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=1 face="Courier New"><span style='font-size:
9.0pt;mso-bidi-font-size:10.0pt'><span
style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; </span><span class=GramE>return</span>
<span class=SpellE>self.runctx</span>(<span class=SpellE>cmd</span>, <span
class=SpellE>dict</span>, <span class=SpellE>dict</span>)<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=1 face="Courier New"><span style='font-size:
9.0pt;mso-bidi-font-size:10.0pt'><span style='mso-spacerun:yes'>&nbsp;
</span>File &quot;c:\python23\lib\profile.py&quot;, line 409, in <span
class=SpellE>runctx</span><o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=1 face="Courier New"><span style='font-size:
9.0pt;mso-bidi-font-size:10.0pt'><span
style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; </span><span class=GramE>exec</span>
<span class=SpellE>cmd</span> in <span class=SpellE>globals</span>, locals<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=1 face="Courier New"><span style='font-size:
9.0pt;mso-bidi-font-size:10.0pt'><span style='mso-spacerun:yes'>&nbsp;
</span>File &quot;&lt;string&gt;&quot;, line 1, <span class=GramE>in ?</span><o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=1 face="Courier New"><span style='font-size:
9.0pt;mso-bidi-font-size:10.0pt'><span style='mso-spacerun:yes'>&nbsp;
</span>File &quot;&lt;<span class=SpellE>stdin</span>&gt;&quot;, line 1, in <span
class=SpellE>foo</span><o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=1 face="Courier New"><span style='font-size:
9.0pt;mso-bidi-font-size:10.0pt'><span style='mso-spacerun:yes'>&nbsp;
</span>File &quot;c:\python23\lib\profile.py&quot;, line 214, in <span
class=SpellE>trace_dispatch_i</span><o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=1 face="Courier New"><span style='font-size:
9.0pt;mso-bidi-font-size:10.0pt'><span
style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; </span><span class=GramE>if</span> <span
class=SpellE>self.dispatch</span>[event](self, <span class=SpellE>frame,t</span>):<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=1 face="Courier New"><span style='font-size:
9.0pt;mso-bidi-font-size:10.0pt'><span style='mso-spacerun:yes'>&nbsp;
</span>File &quot;c:\python23\lib\profile.py&quot;, line 260, in <span
class=SpellE>trace_dispatch_call</span><o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=1 face="Courier New"><span style='font-size:
9.0pt;mso-bidi-font-size:10.0pt'><span
style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; </span><span class=GramE>assert</span>
<span class=SpellE>rframe.f_back</span> is <span class=SpellE>frame.f_back</span>,
(&quot;Bad call&quot;, <span class=SpellE>rfn</span>,<o:p></o:p></span></font></p>

<p class=MsoPlainText><span class=SpellE><font size=1 face="Courier New"><span
style='font-size:9.0pt;mso-bidi-font-size:10.0pt'>AssertionError</span></font></span><font
size=1><span style='font-size:9.0pt;mso-bidi-font-size:10.0pt'>: ('Bad call',
('&lt;string&gt;', 1, '?'), &lt;<span class=SpellE>stackless.frame</span>
object at 0x008BCA08&gt;, &lt;<span class=SpellE>stackless.frame</span> object
at 0x0093BB90&gt;, &lt;<span class=SpellE>stackless.frame</span> object at 0x0094CA48&gt;,
&lt;<span class=SpellE>stackless.baseframe</span> object at 0x00888188&gt;)<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=1 face="Courier New"><span style='font-size:
9.0pt;mso-bidi-font-size:10.0pt'>&gt;&gt;&gt;<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'>The code around the <span class=GramE>assertion,</span> looks like:<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><span class=GramE><font size=2 face="Courier New"><span
style='font-size:10.0pt'>def</span></font></span> <span class=SpellE>trace_dispatch_call</span>(self,
frame, t):<o:p></o:p></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><span style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; </span><span
class=GramE>if</span> <span class=SpellE>self.cur</span> and <span
class=SpellE>frame.f_back</span> is not <span class=SpellE>self.cur</span>[-2]:<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><span
style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=GramE>rpt</span>, <span class=SpellE>rit</span>, ret, <span class=SpellE>rfn</span>,
<span class=SpellE>rframe</span>, <span class=SpellE>rcur</span> = <span
class=SpellE>self.cur</span><o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><span
style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=GramE>if</span> not <span class=SpellE>isinstance</span>(<span
class=SpellE>rframe</span>, <span class=SpellE>Profile.fake_frame</span>):<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><span
style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span class=GramE>assert</span> <span class=SpellE>rframe.f_back</span>
is <span class=SpellE>frame.f_back</span>, (&quot;Bad call&quot;, <span
class=SpellE>rfn</span>,<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><span
style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span class=SpellE><span class=GramE>rframe</span></span>, <span
class=SpellE>rframe.f_back</span>,<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt'><span
style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span class=GramE>frame</span>, <span class=SpellE>frame.f_back</span>)<o:p></o:p></span></font></p>

</div>

</body>

</html>