Closed wjandrea closed 1 year ago
It seems like PythonTutor is getting the class name from instance.__class__ instead of type(instance).
instance.__class__
type(instance)
permanent link
Visualizer screenshot:
Python 3 and 2 are both affected.
Code is modified from this Stack Overflow answer.
NVM. I just saw this under Unsupported features:
Advanced language features or subtleties that only experts need to know (this is a tool for teaching novices)
It seems like PythonTutor is getting the class name from
instance.__class__
instead oftype(instance)
.permanent link
Visualizer screenshot:
Python 3 and 2 are both affected.
Code is modified from this Stack Overflow answer.