Skip to content

Commit eb68d8d

Browse files
committed
Update v3/docs/user-FAQ.md
1 parent f147cd1 commit eb68d8d

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

‎v3/docs/user-FAQ.md‎

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
1-
# Frequently Asked Questions
2-
## Online Python Tutor
1+
# Frequently Asked Questions from users of Online Python Tutor
32

4-
Email philip@pgbovine.net if you have a question that isn't addressed
5-
here.
3+
Email philip@pgbovine.net if you have a question that isn't addressed here.
64

5+
#### I thought all objects in Python are on the heap; why does Online Python Tutor render primitive values (e.g., numbers, strings) inside of stack frames?
6+
7+
This was a design decision made to keep the display less cluttered;
8+
if we were truly faithful to Python's semantics, that would result in far too many arrows (pointers) being drawn.
9+
However, note that since primitives are **immutable** and thus behave identically regardless of aliasing,
10+
it doesn't matter whether they're rendered in the stack or heap.
11+
12+
13+
#### Did you know that stepping through code with generators looks weird when "display frames of exited functions" is selected?
14+
15+
Yes, this is a known bug, but the fix isn't straightforward at the moment.

0 commit comments

Comments
 (0)