Repository navigation
Editor v0.1.24: literal displays without steps, the run file as __main__ - #35
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps
glpython-editorfrom v0.1.23 to v0.1.24 (glpython-edu/glpython-editor@a8cabe2). Onlypackage.jsonand the lock change.What learners get
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].-xwithx = 7is one step, to-7.__main__. After ▶, in the REPL, in «Tests» and in the visualizer,import __main__; __main__.xsees the file's variables.if __name__ == "__main__":keeps working, and so doessys._getframe(1).f_globals.Checks
Locally,
build,lintandtest:browserpass.lintshows the 7coi-serviceworkerwarnings that are also onmain.Manual tests (desktop, and iPad with an external keyboard)
baum = ["+", ["*", 2, ["-", 7, -3]], ["/", ["+", 1, 2], 3]]in Ersetzung and in Kasten. There is 1 step.n = 2andw = ["+", 1, ["*", n, 3]]. Line 2 shows one substitution, then the assignment.x = 2,import __main__,print(__main__.x). It prints2. Then__main__.xin the REPL also gives2.🤖 Generated with Claude Code