I would like to add some methods to a class definition at runtime. However, when running the following code, I get some surprising (to me) results.I would like to add some methods to a class def
I would like to add some methods to a class definition at runtime. However, when running the following code, I get some surprising (to me) results.I would like to add some methods to a class def