You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6f1c8aa
Browse filesBrowse the repository at this point in the historyBrowse files
Philip Guo
committed
Merge branch 'master' of github.com:pgbovine/OnlinePythonTutor
# Frequently Asked Questions from users of Online Python Tutor
3
2
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.
6
4
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