<div dir="ltr">I have come across this code and I tried to figure out what does it do<br>First, I do not understand the sign @... above the class method, what does it do?<br>Second, about the object in AnyWrapper(object), why do they declare "object" as the superclass?<br>
sometimes I saw (type) what the differences between "object" and "type"?<br><br><br>from ib.lib.overloading import overloaded<br><br>class AnyWrapper(object):<br> @overloaded<br> def error(self, e):<br>
raise NotImplementedError()<br> @error.register(object, str)<br> def error_0(self, strval):<br> raise NotImplementedError()<br><br>Thanks in advance<br><br>Aonlazio<br></div>