Jun-23-2024, 06:52 AM
(Jun-23-2024, 01:54 AM)Skaperen Wrote: many time capture a block of code (^u4^k^y in emacs, to capture 4 lines) and drop it (^y in emacs, in each place) in a few other places. those 4 lines modify 4 local variables.
exec()
looks like the way to go. Just put the 4 lines in a Python string and exec()
that string.
« We can solve any problem by introducing an extra level of indirection »