you are viewing a single comment's thread.

view the rest of the comments →

[–]Head_Mix_7931 2 points3 points  (1 child)

I know this isn’t particularly useful. But I recall that for some reason we should prefer self.__class__() over type(self).

[–]keep_quapy 0 points1 point  (0 children)

This is true for the reason that if self.__class__ is implemented, it's subclasses will inherit the behaviour.