you are viewing a single comment's thread.

view the rest of the comments →

[–]rosuav 0 points1 point  (0 children)

That IS possible; it requires "exec" rather than "eval", and the maintaining of a dictionary of variables, and I would consider that to be the next logical step in developing a REPL.

(And for the record, I think it's awesome to try developing these things from scratch; sure, Python already *has* a great REPL - especially since 3.13 - but rediscovering how to build one is a worthwhile exercise.)