Skip to content

Commit 960d1cb

Browse files
committed
Introspection
1 parent 80fc7f5 commit 960d1cb

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2090,9 +2090,9 @@ Introspection
20902090

20912091
### Variables
20922092
```python
2093-
<list> = dir() # Returns names of variables in current scope.
2094-
<dict> = locals() # Returns dict of local variables. Also vars().
2095-
<dict> = globals() # Returns dict of global variables.
2093+
<list> = dir() # Returns names of variables in current scope.
2094+
<dict> = locals() # Returns dict of local variables. Also vars().
2095+
<dict> = globals() # Returns dict of global variables.
20962096
```
20972097

20982098
### Attributes

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1830,9 +1830,9 @@
18301830
LogicOp = enum.Enum(<span class="hljs-string">'LogicOp'</span>, {<span class="hljs-string">'AND'</span>: op.and_, <span class="hljs-string">'OR'</span> : op.or_})
18311831
last_el = op.methodcaller(<span class="hljs-string">'pop'</span>)(&lt;list&gt;)
18321832
</code></pre>
1833-
<div><h2 id="introspection"><a href="#introspection" name="introspection">#</a>Introspection</h2><p><strong>Inspecting code at runtime.</strong></p><div><h3 id="variables">Variables</h3><pre><code class="python language-python hljs">&lt;list&gt; = dir() <span class="hljs-comment"># Returns names of variables in current scope.</span>
1834-
&lt;dict&gt; = locals() <span class="hljs-comment"># Returns dict of local variables. Also vars().</span>
1835-
&lt;dict&gt; = globals() <span class="hljs-comment"># Returns dict of global variables.</span>
1833+
<div><h2 id="introspection"><a href="#introspection" name="introspection">#</a>Introspection</h2><p><strong>Inspecting code at runtime.</strong></p><div><h3 id="variables">Variables</h3><pre><code class="python language-python hljs">&lt;list&gt; = dir() <span class="hljs-comment"># Returns names of variables in current scope.</span>
1834+
&lt;dict&gt; = locals() <span class="hljs-comment"># Returns dict of local variables. Also vars().</span>
1835+
&lt;dict&gt; = globals() <span class="hljs-comment"># Returns dict of global variables.</span>
18361836
</code></pre></div></div>
18371837

18381838

0 commit comments

Comments
 (0)