gvwilson / sdxpy

Software Design by Example: a tool-based introduction with Python
https://third-bit.com/sdxpy/
Other
353 stars 53 forks source link

/vm - Section 25.2: Execution (2023-10-28) #253

Closed sback closed 10 months ago

sback commented 10 months ago

The code snippet from vm.py is repeated twice at the beginning of the section.

I think instead probably two different snippets were expected to be presented (maybe just __init__ in the first and initialize in the second?). Unfortunately I haven't had the time yet to look into how to build the book, so I cannot directly implement and test a solution for this, hence an open issue instead of a pull request.

A simple solution could be to just remove the duplicated first snippet and merge the text.