Skip to content

Editor v0.1.24: literal displays without steps, the run file as __main__ - #35

Merged
cedricvogel-leo merged 1 commit into
mainfrom
chore/editor-v0.1.24
Nov 5, 2026
Merged

cedricvogel-leo merged 1 commit into
mainfrom
chore/editor-v0.1.24

Conversation

@cedricvogel-leo

Copy link
Copy Markdown
Collaborator

Bumps glpython-editor from v0.1.23 to v0.1.24 (glpython-edu/glpython-editor@a8cabe2). Only package.json and the lock change.

What learners get

  • P40, glpython-editor#48: in the visualizer, a list, tuple, set or dict written with only literals is already a value and has no steps. This includes negative numbers and any depth of nesting: baum = ["+", ["*", 2, ["-", 7, 3]], …] is one step, the assignment. Displays with names, calls or operators only have steps for the parts that change: [1 + 2, 3, 4] → [3, 3, 4]. Unpacking in a display now gives Python's value: [*b, 2] was [[1], 2].
  • Follow-up, glpython-editor#50: -x with x = 7 is one step, to -7.
  • P37, glpython-editor#49: the run file is the module __main__. After ▶, in the REPL, in «Tests» and in the visualizer, import __main__; __main__.x sees the file's variables. if __name__ == "__main__": keeps working, and so does sys._getframe(1).f_globals.

Checks

Locally, build, lint and test:browser pass. lint shows the 7 coi-serviceworker warnings that are also on main.

Manual tests (desktop, and iPad with an external keyboard)

  1. Visualize baum = ["+", ["*", 2, ["-", 7, -3]], ["/", ["+", 1, 2], 3]] in Ersetzung and in Kasten. There is 1 step.
  2. Visualize n = 2 and w = ["+", 1, ["*", n, 3]]. Line 2 shows one substitution, then the assignment.
  3. ▶ x = 2, import __main__, print(__main__.x). It prints 2. Then __main__.x in the REPL also gives 2.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cedricvogel-leo
cedricvogel-leo merged commit 21a7ff4 into main Nov 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant