Skip to content

Commit

Permalink
fixed missing output
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Pilgrim committed Sep 20, 2010
1 parent 20fea4d commit 5dd2f37
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions advanced-iterators.html
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,7 @@ <h2 id=eval>Evaluating Arbitrary Strings As Python Expressions</h2>
File "&lt;string>", line 1, in &lt;module>
NameError: name 'x' is not defined</samp>
<a><samp class=p>>>> </samp><kbd class=pp>eval("x * 5", {"x": x}, {})</kbd> <span class=u>&#x2461;</span></a>
<samp class=p>25</span>
<samp class=p>>>> </samp><kbd class=pp>import math</kbd>
<a><samp class=p>>>> </samp><kbd class=pp>eval("math.sqrt(x)", {"x": x}, {})</kbd> <span class=u>&#x2462;</span></a>
<samp class=traceback>Traceback (most recent call last):
Expand Down

0 comments on commit 5dd2f37

Please sign in to comment.