How dynamic is Python?
OK, this lunchtimes experiment was Python. Created a class and produced an instance, then modified the class by adding a method - the instance did not have this method available. However, a new instance with the new class did.
I have no idea whether ths old class and its instances stay around, disappear with gabage collection etc.
No comments:
Post a Comment