A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/attachments/20100910/f1091e85/attachment.html below:

<div dir="ltr"><br>
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">There&#39;s a slight inconsistency. The names a code object explicitly<br>

calls out as free variables (i.e. references to cells in outer scopes)<br>


are only a subset of the full set of free variables (every referenced<br>
name that isn&#39;t a local variable or an attribute).<br>
<br>
&gt;&gt;&gt; from dis import show_code<br>
&gt;&gt;&gt; def outer():<br>
...   x, y = 1, 2<br>
...   def inner():<br>
...     print (x, y, a, b, c.e)<br>
...   return inner<br>
...<br>
&gt;&gt;&gt; f = outer()<br>
&gt;&gt;&gt; show_code(f)<br></blockquote></div><br>Nick, did you know that dis.show_code is neither exported by default from the dis module, nor it&#39;s documented in its help() or .rst documentation? Neither is code_info(), which is used by show_code(). I wonder if this is intentional.<br>

<br>Eli<br><br></div>



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4