comparison docs/rendered/pymonkey.html @ 148:0b1020c817b3

Added docs for context.get_stack().
author Atul Varma <varmaa@toolness.com>
date Sat, 29 Aug 2009 13:30:43 -0700
parents ab612d2ad96a
children aea82140758c
comparison
equal deleted inserted replaced
147:ebc0ff767290 148:0b1020c817b3
146 <p>JS contexts are weak-referencable.</p> 146 <p>JS contexts are weak-referencable.</p>
147 <dl class="method"> 147 <dl class="method">
148 <dt id="pymonkey.Context.get_runtime"> 148 <dt id="pymonkey.Context.get_runtime">
149 <tt class="descname">get_runtime</tt><big>(</big><big>)</big><a class="headerlink" href="#pymonkey.Context.get_runtime" title="Permalink to this definition">¶</a></dt> 149 <tt class="descname">get_runtime</tt><big>(</big><big>)</big><a class="headerlink" href="#pymonkey.Context.get_runtime" title="Permalink to this definition">¶</a></dt>
150 <dd>Returns the <a title="pymonkey.Runtime" class="reference" href="#pymonkey.Runtime"><tt class="xref docutils literal"><span class="pre">Runtime</span></tt></a> that the context belongs to.</dd></dl> 150 <dd>Returns the <a title="pymonkey.Runtime" class="reference" href="#pymonkey.Runtime"><tt class="xref docutils literal"><span class="pre">Runtime</span></tt></a> that the context belongs to.</dd></dl>
151
152 <dl class="method">
153 <dt id="pymonkey.Context.get_stack">
154 <tt class="descname">get_stack</tt><big>(</big><big>)</big><a class="headerlink" href="#pymonkey.Context.get_stack" title="Permalink to this definition">¶</a></dt>
155 <dd><p>Returns a dictionary containing information about the context&#8217;s
156 current stack.</p>
157 <p>The dictionary contains the following string keys:</p>
158 <table border="1" class="docutils">
159 <colgroup>
160 <col width="45%" />
161 <col width="55%" />
162 </colgroup>
163 <thead valign="bottom">
164 <tr><th class="head">key</th>
165 <th class="head">value</th>
166 </tr>
167 </thead>
168 <tbody valign="top">
169 <tr><td><tt class="xref docutils literal"><span class="pre">script</span></tt></td>
170 <td><a title="pymonkey.Script" class="reference" href="#pymonkey.Script"><tt class="xref docutils literal"><span class="pre">Script</span></tt></a> of the frame.
171 This may be <tt class="xref docutils literal"><span class="pre">None</span></tt> if the frame
172 isn&#8217;t a scripted frame.</td>
173 </tr>
174 <tr><td><tt class="xref docutils literal"><span class="pre">lineno</span></tt></td>
175 <td>Line number of the frame, if the
176 frame is scripted.</td>
177 </tr>
178 <tr><td><tt class="xref docutils literal"><span class="pre">pc</span></tt></td>
179 <td>Program counter of the frame; this
180 is an index into the bytecode of
181 the frame&#8217;s script, if the frame
182 is scripted.</td>
183 </tr>
184 <tr><td><tt class="xref docutils literal"><span class="pre">caller</span></tt></td>
185 <td>Dictionary containing information
186 about the stack frame of the
187 caller of this frame. If this frame
188 has no caller, this value is
189 <tt class="xref docutils literal"><span class="pre">None</span></tt>.</td>
190 </tr>
191 </tbody>
192 </table>
193 </dd></dl>
151 194
152 <dl class="method"> 195 <dl class="method">
153 <dt id="pymonkey.Context.new_object"> 196 <dt id="pymonkey.Context.new_object">
154 <tt class="descname">new_object</tt><big>(</big><span class="optional">[</span><em>private_obj</em><span class="optional">]</span><big>)</big><a class="headerlink" href="#pymonkey.Context.new_object" title="Permalink to this definition">¶</a></dt> 197 <tt class="descname">new_object</tt><big>(</big><span class="optional">[</span><em>private_obj</em><span class="optional">]</span><big>)</big><a class="headerlink" href="#pymonkey.Context.new_object" title="Permalink to this definition">¶</a></dt>
155 <dd>Creates a new <a title="pymonkey.Object" class="reference" href="#pymonkey.Object"><tt class="xref docutils literal"><span class="pre">Object</span></tt></a> instance and returns 198 <dd>Creates a new <a title="pymonkey.Object" class="reference" href="#pymonkey.Object"><tt class="xref docutils literal"><span class="pre">Object</span></tt></a> instance and returns